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
This commit is contained in:

committed by
Madan Koyyalamudi

parent
3c359399dc
commit
fcd8ef9da8
@@ -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,
|
||||
|
Reference in New Issue
Block a user