linux/drivers/net
Vladimir Oltean 9d2b68cc10 net: enetc: add support for XDP_REDIRECT
The driver implementation of the XDP_REDIRECT action reuses parts from
XDP_TX, most notably the enetc_xdp_tx function which transmits an array
of TX software BDs. Only this time, the buffers don't have DMA mappings,
we need to create them.

When a BPF program reaches the XDP_REDIRECT verdict for a frame, we can
employ the same buffer reuse strategy as for the normal processing path
and for XDP_PASS: we can flip to the other page half and seed that to
the RX ring.

Note that scatter/gather support is there, but disabled due to lack of
multi-buffer support in XDP (which is added by this series):
https://patchwork.kernel.org/project/netdevbpf/cover/cover.1616179034.git.lorenzo@kernel.org/

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-03-31 14:57:44 -07:00
..
appletalk
arcnet net: arcnet: com20020 fix error handling 2021-03-14 14:17:48 -07:00
bonding net: bonding: remove repeated word 2021-03-30 16:56:39 -07:00
caif TTY/Serial driver changes for 5.12-rc1 2021-02-20 21:28:04 -08:00
can can: c_can: add support to 64 message objects 2021-03-30 11:14:53 +02:00
dsa net: mscc: ocelot: remove redundant dev_err call in vsc9959_mdio_bus_alloc() 2021-03-29 13:16:44 -07:00
ethernet net: enetc: add support for XDP_REDIRECT 2021-03-31 14:57:44 -07:00
fddi net: fddi: skfp: Mundane typo fixes throughout the file smt.h 2021-03-10 15:42:22 -08:00
fjes
hamradio module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
hippi
hyperv hv_netvsc: Add error handling while switching data path 2021-03-29 16:35:59 -07:00
ieee802154 ieee802154: hwsim: remove redundant initialization of variable res 2021-03-29 16:23:08 -07:00
ipa net: ipa: remove repeated words 2021-03-30 16:56:39 -07:00
ipvlan
mdio net: mdio: Remove redundant dev_err call in mdio_mux_iproc_probe() 2021-03-29 13:16:44 -07:00
mhi net: mhi: remove pointless conditional before kfree_skb() 2021-03-30 13:47:28 -07:00
netdevsim netdevsim: add FEC settings support 2021-03-31 14:15:23 -07:00
pcs net: pcs: add C37 SGMII AN support for intel mGbE controller 2021-03-15 12:53:12 -07:00
phy net: phy: remove repeated word 2021-03-30 16:56:39 -07:00
plip net: plip: Fix fall-through warnings for Clang 2021-03-10 12:45:15 -08:00
ppp ppp: deflate: Remove useless call "zlib_inflateEnd" 2021-03-30 16:59:30 -07:00
slip
team
usb net: usb: lan78xx: remove unused including <linux/version.h> 2021-03-25 16:55:33 -07:00
vmxnet3 vmxnet3: Update driver to use ethtool_sprintf 2021-03-17 11:42:31 -07:00
wan farsync: use DEFINE_SPINLOCK() for spinlock 2021-03-26 15:25:44 -07:00
wireguard wireguard: queueing: get rid of per-peer ring buffers 2021-02-23 15:59:34 -08:00
wireless mt76: mt7615: remove redundant dev_err call in mt7622_wmac_probe() 2021-03-28 18:04:13 -07:00
xen-netback Merge git://git.kernel.org:/pub/scm/linux/kernel/git/netdev/net 2021-03-09 17:15:56 -08:00
bareudp.c bareudp: allow UDP L4 GRO passthrou 2021-03-30 17:06:50 -07:00
dummy.c
eql.c
geneve.c geneve: allow UDP L4 GRO passthrou 2021-03-30 17:06:50 -07:00
gtp.c net: icmp: pass zeroed opts from icmp{,v6}_ndo_send before sending 2021-02-23 11:29:52 -08:00
ifb.c
Kconfig netdevsim: Add dummy psample implementation 2021-03-14 15:00:43 -07:00
LICENSE.SRC
loopback.c Revert "net-loopback: set lo dev initial state to UP" 2021-02-11 13:10:44 -08:00
macsec.c
macvlan.c
macvtap.c
Makefile dsa: simplify Kconfig symbols and dependencies 2021-03-22 12:15:37 -07:00
mdio.c net: mdio: Correct function name mdio45_links_ok() in comment 2021-03-29 13:42:44 -07:00
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c net: fix dev_ifsioc_locked() race condition 2021-02-11 18:14:19 -08:00
thunderbolt.c
tun.c bpf, devmap: Move drop error path to devmap for XDP_REDIRECT 2021-03-18 16:38:51 +01:00
veth.c Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-03-25 16:30:46 -07:00
virtio_net.c Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-03-25 16:30:46 -07:00
vrf.c
vsockmon.c
vxlan.c vxlan: allow L4 GRO passthrough 2021-03-30 17:06:49 -07:00
xen-netfront.c bpf, devmap: Move drop error path to devmap for XDP_REDIRECT 2021-03-18 16:38:51 +01:00