linux/drivers/net
Camelia Groza ae680bcbd0 dpaa_eth: implement the A050385 erratum workaround for XDP
For XDP TX, even tough we start out with correctly aligned buffers, the
XDP program might change the data's alignment. For REDIRECT, we have no
control over the alignment either.

Create a new workaround for xdp_frame structures to verify the erratum
conditions and move the data to a fresh buffer if necessary. Create a new
xdp_frame for managing the new buffer and free the old one using the XDP
API.

Due to alignment constraints, all frames have a 256 byte headroom that
is offered fully to XDP under the erratum. If the XDP program uses all
of it, the data needs to be move to make room for the xdpf backpointer.

Disable the metadata support since the information can be lost.

Acked-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-11-30 17:33:23 -08:00
..
appletalk
arcnet
bonding Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-27 18:25:27 -08:00
caif
can Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-27 18:25:27 -08:00
dsa net: dsa: mv88e6xxx: Handle error in serdes_get_regs 2020-11-25 17:58:06 -08:00
ethernet dpaa_eth: implement the A050385 erratum workaround for XDP 2020-11-30 17:33:23 -08:00
fddi
fjes
hamradio
hippi
hyperv net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00
ieee802154
ipa net: ipa: adjust GSI register addresses 2020-11-28 12:13:55 -08:00
ipvlan net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00
mdio
netdevsim netdevsim: support ethtool ring and coalesce settings 2020-11-20 12:51:54 -08:00
pcs
phy net: phy: micrel: fix interrupt handling 2020-11-27 17:26:20 -08:00
plip
ppp
slip
team net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00
usb Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-27 18:25:27 -08:00
vmxnet3
wan net: wan: Delete the DLCI / SDLA drivers 2020-11-17 13:33:29 -08:00
wireguard
wireless Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-27 18:25:27 -08:00
xen-netback
bareudp.c
dummy.c
eql.c
geneve.c net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
nlmon.c net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-11-27 18:25:27 -08:00
veth.c treewide: rename nla_strlcpy to nla_strscpy. 2020-11-16 08:08:54 -08:00
virtio_net.c
vrf.c net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00
vsockmon.c net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00
vxlan.c
xen-netfront.c