[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191001.090840.281037950909937158.davem@davemloft.net>
Date: Tue, 01 Oct 2019 09:08:40 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: lorenzo@...nel.org
Cc: netdev@...r.kernel.org, ilias.apalodimas@...aro.org,
lorenzo.bianconi@...hat.com
Subject: Re: [PATCH net] net: socionext: netsec: always grab descriptor lock
From: Lorenzo Bianconi <lorenzo@...nel.org>
Date: Tue, 1 Oct 2019 10:33:51 +0200
> Always acquire tx descriptor spinlock even if a xdp program is not loaded
> on the netsec device since ndo_xdp_xmit can run concurrently with
> netsec_netdev_start_xmit and netsec_clean_tx_dring. This can happen
> loading a xdp program on a different device (e.g virtio-net) and
> xdp_do_redirect_map/xdp_do_redirect_slow can redirect to netsec even if
> we do not have a xdp program on it.
>
> Fixes: ba2b232108d3 ("net: netsec: add XDP support")
> Tested-by: Ilias Apalodimas <ilias.apalodimas@...aro.org>
> Signed-off-by: Lorenzo Bianconi <lorenzo@...nel.org>
Applied and queued up for v5.3 -stable.
Powered by blists - more mailing lists