Re: [PATCH v3] kni: fix build with Linux 5.18

2022-06-05 Thread Andrew Rybchenko
On 6/5/22 10:54, Andrew Rybchenko wrote: From: Jiri Slaby 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 appropriat

[PATCH v3] kni: fix build with Linux 5.18

2022-06-05 Thread Andrew Rybchenko
From: Jiri Slaby 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. Cc: sta...@dpdk.org

[PATCH v3] kni: fix build with Linux 5.18

2022-06-05 Thread Jiri Slaby
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. There were other attempts to fix this: