Просмотр исходного кода

qcacmn: use netif_rx() instead of netif_rx_ni()

In kernel 5.18, netif_rx_ni() is removed. So redefine netif_rx_ni
with netif_rx.

Change-Id: Ia0e43089f028f3bfa71d658d1e64ddeafd32d289
CRs-Fixed: 3298369
Rajesh Chauhan 2 лет назад
Родитель
Сommit
fcd8ef9da8
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      qdf/linux/src/i_qdf_nbuf.h

+ 12 - 0
qdf/linux/src/i_qdf_nbuf.h

@@ -41,6 +41,18 @@
 #include <qdf_nbuf_frag.h>
 #include "qdf_time.h"
 
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0))
+/* Since commit
+ *  baebdf48c3600 ("net: dev: Makes sure netif_rx() can be invoked in any context.")
+ *
+ * the function netif_rx() can be used in preemptible/thread context as
+ * well as in interrupt context.
+ *
+ * Use netif_rx().
+ */
+#define netif_rx_ni(skb) netif_rx(skb)
+#endif
+
 /*
  * Use socket buffer as the underlying implementation as skbuf .
  * Linux use sk_buff to represent both packet and data,