linux/drivers/net/ethernet
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
..
3com net: 3c509: Fix fall-through warnings for Clang 2021-03-10 12:45:15 -08:00
8390
actions net: ethernet: actions: Add Actions Semi Owl Ethernet MAC driver 2021-03-22 12:56:21 -07:00
adaptec
aeroflex
agere
alacritech
allwinner
alteon
altera
amazon net: ena: remove extra words from comments 2021-03-31 14:34:08 -07:00
amd net: amd: correct some format issues 2021-03-31 14:34:09 -07:00
apm
apple
aquantia net: ethernet: aquantia: Handle error cleanup of start on open 2021-02-11 14:38:06 -08:00
arc
atheros atl1c: use napi_alloc_skb 2021-03-19 11:45:07 -07:00
broadcom net: bcmgenet: remove unused including <linux/version.h> 2021-03-25 16:58:55 -07:00
brocade bna: Update driver to use ethtool_sprintf 2021-03-17 11:42:31 -07:00
cadence net: macb: simplify clk_init with dev_err_probe 2021-03-17 15:10:05 -07:00
calxeda
cavium net/ethernet: convert to use module_platform_driver in octeon_mgmt.c 2021-01-29 19:02:43 -08:00
chelsio Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-03-25 15:31:22 -07:00
cirrus
cisco net: remove ndo_udp_tunnel_* callbacks 2021-01-07 12:53:29 -08:00
cortina
davicom net: davicom: Use platform_get_irq_optional() 2021-03-08 12:01:58 -08:00
dec
dlink
emulex net: remove ndo_udp_tunnel_* callbacks 2021-01-07 12:53:29 -08:00
ezchip
faraday Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-03-25 15:31:22 -07:00
freescale net: enetc: add support for XDP_REDIRECT 2021-03-31 14:57:44 -07:00
fujitsu
google net: gve: remove duplicated allowed 2021-03-25 17:07:58 -07:00
hisilicon net: hns3: add stats logging when skb padding fails 2021-03-29 13:21:01 -07:00
huawei hinic: avoid gcc -Wrestrict warning 2021-03-24 18:00:32 -07:00
i825xx drivers: net: ethernet: i825xx: Fix couple of spellings in the file ether1.c 2021-02-04 19:07:55 -08:00
ibm Merge git://git.kernel.org:/pub/scm/linux/kernel/git/netdev/net 2021-03-09 17:15:56 -08:00
intel net: i40e: remove repeated words 2021-03-30 16:56:39 -07:00
marvell net: marvell: Fix an alignment problem 2021-03-29 13:23:59 -07:00
mediatek net: ethernet: remove duplicated include 2021-03-26 15:18:50 -07:00
mellanox mlxsw: spectrum_router: Only perform atomic nexthop bucket replacement when requested 2021-03-30 17:51:21 -07:00
micrel net: ks8851: remove definition of DEBUG 2021-01-15 17:53:29 -08:00
microchip lan743x: remove redundant intializations of pointers adapter and phydev 2021-03-29 10:56:41 -07:00
moxa net: moxa: remove redundant dev_err call in moxart_mac_probe() 2021-03-28 18:06:50 -07:00
mscc net: ocelot: fix a trailling format issue with block comments 2021-03-31 14:34:09 -07:00
myricom
natsemi net/sonic: Fix some resource leaks in error handling paths 2021-01-05 15:59:20 -08:00
neterion net: ethernet: neterion: Fix a typo in the file s2io.c 2021-03-15 12:48:20 -07:00
netronome drivers: net: ethernet: struct sk_buff is declared duplicately 2021-03-25 17:04:15 -07:00
ni
nvidia
nxp net: lpc_eth: fix format warnings of block comments 2021-03-31 14:34:09 -07:00
oki-semi ptp_pch: Move 'pch_*()' prototypes to shared header 2021-03-12 17:09:34 -08:00
packetengines
pasemi
pensando ionic: pull per-q stats work out of queue loops 2021-03-30 17:37:13 -07:00
qlogic qede: remove unused including <linux/version.h> 2021-03-25 16:58:16 -07:00
qualcomm net: qualcomm: rmnet: don't use C bit-fields in rmnet checksum header 2021-03-15 20:41:58 -07:00
rdc
realtek r8169: remove rtl_hw_start_8168c_3 2021-03-25 17:12:17 -07:00
renesas sh_eth: place RX/TX descriptor *enum*s after their *struct*s 2021-03-12 17:50:42 -08:00
rocker net: switchdev: pass flags and mask to both {PRE_,}BRIDGE_FLAGS attributes 2021-02-12 17:08:04 -08:00
samsung net: phy: rename PHY_IGNORE_INTERRUPT to PHY_MAC_INTERRUPT 2021-02-15 15:20:49 -08:00
seeq
sfc Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-03-25 16:30:46 -07:00
sgi
silan
sis
smsc drivers: net: smc91x: remove redundant initialization of pointer gpio 2021-03-28 17:51:17 -07:00
socionext Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-03-25 16:30:46 -07:00
stmicro net: ethernet: stmicro: Remove duplicate struct declaration 2021-03-31 14:31:14 -07:00
sun Fix a typo 2021-03-18 19:46:19 -07:00
synopsys net: dwc-xlgmac: Fix spelling mistake in function name 2021-02-06 11:37:01 -08:00
tehuti net: tehuti: fix error return code in bdx_probe() 2021-03-05 12:59:32 -08:00
ti bpf, devmap: Move drop error path to devmap for XDP_REDIRECT 2021-03-18 16:38:51 +01:00
toshiba net: toshiba: fix the trailing format of some block comments 2021-03-31 14:34:09 -07:00
tundra
via net: ethernet: Fix typo of 'network' in comment 2021-03-30 18:14:11 -07:00
wiznet
xilinx net: axienet: Remove redundant dev_err call in axienet_probe() 2021-03-29 13:16:44 -07:00
xircom
xscale net: ixp4xx_eth: Use DEFINE_SPINLOCK() for spinlock 2021-01-05 15:43:41 -08:00
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig net: ethernet: actions: Add Actions Semi Owl Ethernet MAC driver 2021-03-22 12:56:21 -07:00
korina.c
lantiq_etop.c
lantiq_xrx200.c net: lantiq: Remove redundant dev_err call in xrx200_probe() 2021-03-28 18:06:11 -07:00
Makefile net: ethernet: actions: Add Actions Semi Owl Ethernet MAC driver 2021-03-22 12:56:21 -07:00