sysprog21 / vwifi

A virtual wireless device driver for Linux
MIT License
203 stars 39 forks source link

Check kernel version for netif_rx_ni() #34

Closed quantabase13 closed 1 year ago

quantabase13 commented 1 year ago

According to this patch [1], kernel developers prepared to replace netif_rx_ni() with netif_rx(). They modified netif_rx() and implement netif_rx_ni() as a wrapper of netif_rx().

In the following patch [2], netif_rx_ni() was removed. This patch was mentioned in networking changes for 5.18.[3]

For the compatibility, I check kernel version before calling netif_rx_ni().

[1]https://lore.kernel.org/netdev/20220202122848.647635-4-bigeasy@linutronix.de/ [2]https://lore.kernel.org/netdev/20220306215753.3156276-10-bigeasy@linutronix.de/ [3]https://lore.kernel.org/netdev/20220323180738.3978487-1-kuba@kernel.org/

jserv commented 1 year ago

Thank @quantabase13 for contributing!

quantabase13 commented 1 year ago

Thank for your quick response and patience too.