linux/drivers/net/ethernet/ti
Lorenzo Bianconi fdc13979f9 bpf, devmap: Move drop error path to devmap for XDP_REDIRECT
We want to change the current ndo_xdp_xmit drop semantics because it will
allow us to implement better queue overflow handling. This is working
towards the larger goal of a XDP TX queue-hook. Move XDP_REDIRECT error
path handling from each XDP ethernet driver to devmap code. According to
the new APIs, the driver running the ndo_xdp_xmit pointer, will break tx
loop whenever the hw reports a tx error and it will just return to devmap
caller the number of successfully transmitted frames. It will be devmap
responsibility to free dropped frames.

Move each XDP ndo_xdp_xmit capable driver to the new APIs:

- veth
- virtio-net
- mvneta
- mvpp2
- socionext
- amazon ena
- bnxt
- freescale (dpaa2, dpaa)
- xen-frontend
- qede
- ice
- igb
- ixgbe
- i40e
- mlx5
- ti (cpsw, cpsw-new)
- tun
- sfc

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Camelia Groza <camelia.groza@nxp.com>
Acked-by: Edward Cree <ecree.xilinx@gmail.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Shay Agroskin <shayagr@amazon.com>
Link: https://lore.kernel.org/bpf/ed670de24f951cfd77590decf0229a0ad7fd12f6.1615201152.git.lorenzo@kernel.org
2021-03-18 16:38:51 +01:00
..
am65-cpsw-ethtool.c
am65-cpsw-nuss.c net: ti: am65-cpsw-nuss: Add switchdev support 2021-02-11 17:52:13 -08:00
am65-cpsw-nuss.h net: ti: am65-cpsw-nuss: Add netdevice notifiers 2021-02-11 17:52:13 -08:00
am65-cpsw-qos.c net: ethernet: ti: am65-cpsw-qos: Demote non-conformant function header 2021-01-16 18:13:10 -08:00
am65-cpsw-qos.h
am65-cpsw-switchdev.c net: switchdev: pass flags and mask to both {PRE_,}BRIDGE_FLAGS attributes 2021-02-12 17:08:04 -08:00
am65-cpsw-switchdev.h net: ti: am65-cpsw-nuss: Add switchdev support 2021-02-11 17:52:13 -08:00
am65-cpts.c net: ethernet: ti: am65-cpts: Document am65_cpts_rx_enable()'s 'en' parameter 2021-01-16 18:13:14 -08:00
am65-cpts.h
cpmac.c
cpsw-common.c
cpsw-phy-sel.c
cpsw.c bpf, devmap: Move drop error path to devmap for XDP_REDIRECT 2021-03-18 16:38:51 +01:00
cpsw.h
cpsw_ale.c net: ti: cpsw_ale: add driver data for AM64 CPSW3g 2021-01-19 17:32:34 -08:00
cpsw_ale.h net: ethernet: ti: cpsw_ale: add cpsw_ale_vlan_del_modify() 2020-11-02 16:41:07 -08:00
cpsw_ethtool.c net: ethernet: ti: cpsw: disable PTPv1 hw timestamping advertisement 2020-11-02 14:17:51 -08:00
cpsw_new.c bpf, devmap: Move drop error path to devmap for XDP_REDIRECT 2021-03-18 16:38:51 +01:00
cpsw_priv.c bpf, devmap: Move drop error path to devmap for XDP_REDIRECT 2021-03-18 16:38:51 +01:00
cpsw_priv.h net: ethernet: ti: fix netdevice stats for XDP 2021-02-06 10:48:27 -08:00
cpsw_sl.c
cpsw_sl.h
cpsw_switchdev.c net: switchdev: pass flags and mask to both {PRE_,}BRIDGE_FLAGS attributes 2021-02-12 17:08:04 -08:00
cpsw_switchdev.h
cpts.c net: ethernet: ti: cpts: fix ethtool output when no ptp_clock registered 2020-12-28 13:32:34 -08:00
cpts.h
davinci_cpdma.c
davinci_cpdma.h
davinci_emac.c
davinci_mdio.c drivers: net: davinci_mdio: Use of_device_get_match_data() 2021-01-26 12:17:31 -06:00
k3-cppi-desc-pool.c
k3-cppi-desc-pool.h
Kconfig net: ti: am65-cpsw-nuss: Add devlink support 2021-02-11 17:52:13 -08:00
Makefile net: ti: am65-cpsw-nuss: Add switchdev support 2021-02-11 17:52:13 -08:00
netcp.h
netcp_core.c
netcp_ethss.c
netcp_sgmii.c
netcp_xgbepcsr.c
tlan.c
tlan.h