[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9515d1ae-cc06-7f70-ed75-aa3ba8005fe3@mellanox.com>
Date: Tue, 7 Feb 2017 10:23:09 +0200
From: Tariq Toukan <tariqt@...lanox.com>
To: Benjamin Poirier <bpoirier@...e.com>, <netdev@...r.kernel.org>
CC: Tariq Toukan <tariqt@...lanox.com>,
Yishai Hadas <yishaih@...lanox.com>,
<linux-rdma@...r.kernel.org>, Eric Dumazet <eric.dumazet@...il.com>
Subject: Re: [PATCH net v2] mlx4: Invoke softirqs after napi_reschedule
On 06/02/2017 8:14 PM, Benjamin Poirier wrote:
> mlx4 may schedule napi from a workqueue. Afterwards, softirqs are not run
> in a deterministic time frame and the following message may be logged:
> NOHZ: local_softirq_pending 08
>
> The problem is the same as what was described in commit ec13ee80145c
> ("virtio_net: invoke softirqs after __napi_schedule") and this patch
> applies the same fix to mlx4.
>
> Fixes: 07841f9d94c1 ("net/mlx4_en: Schedule napi when RX buffers allocation fails")
> Cc: Eric Dumazet <eric.dumazet@...il.com>
> Signed-off-by: Benjamin Poirier <bpoirier@...e.com>
> ---
> drivers/net/ethernet/mellanox/mlx4/en_rx.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/mellanox/mlx4/en_rx.c b/drivers/net/ethernet/mellanox/mlx4/en_rx.c
> index eac527e25ec9..cc003fdf0ed9 100644
> --- a/drivers/net/ethernet/mellanox/mlx4/en_rx.c
> +++ b/drivers/net/ethernet/mellanox/mlx4/en_rx.c
> @@ -514,8 +514,11 @@ void mlx4_en_recover_from_oom(struct mlx4_en_priv *priv)
> return;
>
> for (ring = 0; ring < priv->rx_ring_num; ring++) {
> - if (mlx4_en_is_ring_empty(priv->rx_ring[ring]))
> + if (mlx4_en_is_ring_empty(priv->rx_ring[ring])) {
> + local_bh_disable();
> napi_reschedule(&priv->rx_cq[ring]->napi);
> + local_bh_enable();
> + }
> }
> }
>
Reviewed-by: Tariq Toukan <tariqt@...lanox.com>
Thanks!
Powered by blists - more mailing lists