Re: [PATCH net-next] mlx4: handle non-napi callers to napi_poll

2020-10-12 Thread Jakub Kicinski
On Mon, 12 Oct 2020 09:40:51 +0300 Tariq Toukan wrote: > On Mon, 12 Oct 2020 at 05:47, Jakub Kicinski wrote: > > > > On Thu, 8 Oct 2020 11:45:26 -0700 Jonathan Lemon wrote: > > > From: Jonathan Lemon > > > > > > netcons calls napi_poll with a budget of 0 to transmit packets. > > > Handle this b

Re: [PATCH net-next] mlx4: handle non-napi callers to napi_poll

2020-10-11 Thread Tariq Toukan
On Mon, 12 Oct 2020 at 05:47, Jakub Kicinski wrote: > > On Thu, 8 Oct 2020 11:45:26 -0700 Jonathan Lemon wrote: > > From: Jonathan Lemon > > > > netcons calls napi_poll with a budget of 0 to transmit packets. > > Handle this by: > > - skipping RX processing > > - do not try to recycle TX packet

Re: [PATCH net-next] mlx4: handle non-napi callers to napi_poll

2020-10-11 Thread Jakub Kicinski
On Thu, 8 Oct 2020 11:45:26 -0700 Jonathan Lemon wrote: > From: Jonathan Lemon > > netcons calls napi_poll with a budget of 0 to transmit packets. > Handle this by: > - skipping RX processing > - do not try to recycle TX packets to the RX cache > > Signed-off-by: Jonathan Lemon Tariq, Saeed

[PATCH net-next] mlx4: handle non-napi callers to napi_poll

2020-10-08 Thread Jonathan Lemon
From: Jonathan Lemon netcons calls napi_poll with a budget of 0 to transmit packets. Handle this by: - skipping RX processing - do not try to recycle TX packets to the RX cache Signed-off-by: Jonathan Lemon --- drivers/net/ethernet/mellanox/mlx4/en_rx.c | 3 +++ drivers/net/ethernet/mellanox