|
@@ -41,6 +41,18 @@
|
|
#include <qdf_nbuf_frag.h>
|
|
#include <qdf_nbuf_frag.h>
|
|
#include "qdf_time.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 .
|
|
* Use socket buffer as the underlying implementation as skbuf .
|
|
* Linux use sk_buff to represent both packet and data,
|
|
* Linux use sk_buff to represent both packet and data,
|