Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ upstream commit c98600d4bed6d15599e448990f2ba117ca938a2d ] Since commit 2655926aea9b (net: Remove netif_rx_any_context() and netif_rx_ni().) in 5.18, netif_rx_ni() no longer exists as netif_rx() can be called from any context. So define HAVE_NETIF_RX_NI for older releases and call the appropriate function in kni_net. netif_rx_ni() must be used on older kernel since netif_rx() might might lead to deadlocks or other problems there. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
- Loading branch information