linux/drivers/net/ethernet
Alexander Lobakin 45a34ca680 ice: respect metadata on XSK Rx to skb
For now, if the XDP prog returns XDP_PASS on XSK, the metadata will
be lost as it doesn't get copied to the skb.

Copy it along with the frame headers. Account its size on skb
allocation, and when copying just treat it as a part of the frame
and do a pull after to "move" it to the "reserved" zone.

net_prefetch() xdp->data_meta and align the copy size to speed-up
memcpy() a little and better match ice_construct_skb().

Fixes: 2d4238f556 ("ice: Add support for AF_XDP")
Suggested-by: Jesper Dangaard Brouer <brouer@redhat.com>
Suggested-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Alexander Lobakin <alexandr.lobakin@intel.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: Kiran Bhandare <kiranx.bhandare@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2022-01-31 09:46:05 -08:00
..
3com ethernet: 3com/typhoon: don't write directly to netdev->dev_addr 2022-01-26 15:40:01 +00:00
8390 ethernet: 8390/etherh: don't write directly to netdev->dev_addr 2022-01-26 15:40:01 +00:00
actions
adaptec
aeroflex
agere et131x: Remove useless DMA-32 fallback configuration 2022-01-09 16:52:19 -08:00
alacritech
allwinner net: ethernet: sun4i-emac: Fix an error handling path in emac_probe() 2022-01-15 22:34:52 +00:00
alteon net: alteon: Simplify DMA setting 2022-01-09 16:52:18 -08:00
altera
amazon net: ena: Extract recurring driver reset code into a function 2022-01-07 19:25:52 -08:00
amd amd: declance: use eth_hw_addr_set() 2022-01-25 09:00:53 -08:00
apm
apple net: apple: bmac: Fix build since dev_addr constification 2022-01-14 11:22:57 +00:00
aquantia net: atlantic: Use the bitmap API instead of hand-writing it 2022-01-24 12:57:01 +00:00
arc
asix
atheros Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-12-30 12:12:12 -08:00
broadcom bnxt: report header-data split state 2022-01-28 14:43:48 +00:00
brocade bna: Simplify DMA setting 2022-01-09 16:52:18 -08:00
cadence net: macb: Added ZynqMP-specific initialization 2022-01-29 17:49:21 +00:00
calxeda
cavium Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-12-31 14:35:40 +00:00
chelsio Networking fixes for 5.17-rc1, including fixes from netfilter, bpf. 2022-01-20 10:57:05 +02:00
cirrus
cisco Updates for the interrupt subsystem: 2022-01-13 08:53:45 -08:00
cortina net: ethernet: cortina: permit to set mac address in DT 2022-01-26 18:43:50 -08:00
davicom
dec net: tulip: remove redundant assignment to variable new_csr6 2022-01-25 07:40:44 -08:00
dlink
emulex Updates for the interrupt subsystem: 2022-01-13 08:53:45 -08:00
engleder tsnep: Fix s390 devm_ioremap_resource warning 2021-12-17 19:22:57 -08:00
ezchip
faraday
freescale net/fsl: xgmac_mdio: fix return value check in xgmac_mdio_probe() 2022-01-31 11:36:19 +00:00
fujitsu
google gve: Fix GFP flags when allocing pages 2022-01-26 18:45:01 -08:00
hisilicon net: hns3: handle empty unknown interrupt for VF 2022-01-25 13:08:05 +00:00
huawei Updates for the interrupt subsystem: 2022-01-13 08:53:45 -08:00
i825xx ethernet: i825xx: don't write directly to netdev->dev_addr 2022-01-26 15:40:01 +00:00
ibm ibmvnic: remove unused ->wait_capability 2022-01-24 12:05:03 +00:00
intel ice: respect metadata on XSK Rx to skb 2022-01-31 09:46:05 -08:00
litex
marvell octeontx2-pf: Change receive buffer size using ethtool 2022-01-28 14:54:24 +00:00
mediatek net: ethernet: mtk_star_emac: fix unused variable 2022-01-27 13:47:34 +00:00
mellanox mlxsw: spectrum_acl: Allocate default actions for internal TCAM regions 2022-01-27 19:19:58 -08:00
micrel Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-12-23 16:09:58 -08:00
microchip net: sparx5: use .mac_select_pcs() interface 2022-01-28 14:27:40 +00:00
microsoft net: mana: Reuse XDP dropped page 2022-01-31 15:39:58 +00:00
moxa
mscc net: mscc: ocelot: fix using match before it is set 2022-01-19 14:34:43 +00:00
myricom myri10ge: Simplify DMA setting 2022-01-09 16:52:18 -08:00
natsemi
neterion net: vxge: Use dma_set_mask_and_coherent() and simplify code 2022-01-03 10:42:58 +00:00
netronome nfp: Simplify array allocation 2022-01-27 13:50:34 +00:00
ni
nvidia
nxp
oki-semi
packetengines
pasemi
pensando ionic: replace set_vf data with union 2022-01-25 11:15:09 +00:00
qlogic net/qla3xxx: Remove useless DMA-32 fallback configuration 2022-01-09 16:52:21 -08:00
qualcomm
rdc
realtek r8169: add rtl_disable_exit_l1() 2022-01-31 11:32:20 +00:00
renesas sh_eth: sh_eth_close() always returns 0 2022-01-31 11:42:13 +00:00
rocker Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-01-09 17:00:17 -08:00
samsung net: use bool values to pass bool param of phy_init_eee() 2022-01-24 17:09:56 -08:00
seeq ethernet: seeq/ether3: don't write directly to netdev->dev_addr 2022-01-26 15:40:01 +00:00
sfc sfc: Use swap() instead of open coding it 2022-01-06 12:39:36 +00:00
sgi
silan
sis
smsc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-12-23 16:09:58 -08:00
socionext Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-12-31 14:35:40 +00:00
stmicro net: stmmac: dwmac-sun8i: make clk really gated during rpm suspended 2022-01-28 15:15:04 +00:00
sun sun/cassini: Use dma_set_mask_and_coherent() and simplify code 2022-01-02 16:14:30 +00:00
synopsys
tehuti tehuti: Use dma_set_mask_and_coherent() and simplify code 2022-01-02 12:21:16 +00:00
ti net: cpsw: Properly initialise struct page_pool_params 2022-01-25 11:06:33 +00:00
toshiba
tundra ethernet: tundra: don't write directly to netdev->dev_addr 2022-01-26 15:40:01 +00:00
vertexcom Revert "net: vertexcom: default to disabled on kbuild" 2022-01-10 21:11:07 -08:00
via
wiznet
xilinx net: axienet: replace mdiobus_write() with mdiodev_write() 2022-01-26 15:48:19 +00:00
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c net: ethoc: Use platform_get_irq() to get the interrupt 2021-12-27 12:22:19 +00:00
fealnx.c
jme.c
jme.h
Kconfig
korina.c
lantiq_etop.c net: lantiq_etop: remove unnecessary space in cast 2021-12-30 13:20:23 +00:00
lantiq_xrx200.c net: lantiq_xrx200: convert to build_skb 2022-01-05 17:18:04 -08:00
Makefile