linux_dsm_epyc7002/drivers/net/ethernet/socionext
Lorenzo Bianconi 55131dec2b net: socionext: netsec: always grab descriptor lock
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: ba2b232108 ("net: netsec: add XDP support")
Tested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-10-01 09:07:47 -07:00
..
Kconfig net: netsec: Use page_pool API 2019-07-01 19:27:08 -07:00
Makefile
netsec.c net: socionext: netsec: always grab descriptor lock 2019-10-01 09:07:47 -07:00
sni_ave.c net: socionext: ave: Avoid using netdev_err() before calling register_netdev() 2019-09-27 20:26:28 +02:00