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

2022-06-07 Thread Jiri Slaby
On 05. 06. 22, 10:22, Andrew Rybchenko wrote: On 6/1/22 09:53, Jiri Slaby wrote: 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 a

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

2022-06-06 Thread Andrew Rybchenko
On 6/6/22 08:59, Jiri Slaby wrote: On 05. 06. 22, 10:22, Andrew Rybchenko wrote: On 6/1/22 09:53, Jiri Slaby wrote: 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 H

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

2022-06-05 Thread Andrew Rybchenko
On 6/1/22 09:53, Jiri Slaby wrote: 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. T

[PATCH v4] 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: