linux/drivers/net/ethernet/intel
Alexander Lobakin da71a1483b i40e: respect metadata on XSK Rx to skb
[ Upstream commit 6dba29537c ]

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 i40e_construct_skb().

Fixes: 0a714186d3 ("i40e: add AF_XDP zero-copy Rx support")
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:40:14 +02:00
..
e1000 e1000: remove unused and incorrect code 2020-10-13 19:44:01 -07:00
e1000e e1000e: Correct NVM checksum verification flow 2022-03-08 19:09:32 +01:00
fm10k fm10k: Fix an error handling path in 'fm10k_probe()' 2021-07-28 14:35:32 +02:00
i40e i40e: respect metadata on XSK Rx to skb 2022-04-08 14:40:14 +02:00
iavf iavf: Refactor iavf state machine tracking 2022-03-08 19:09:37 +01:00
ice ice: Fix curr_link_speed advertised speed 2022-03-16 14:15:58 +01:00
igb igb: fix deadlock caused by taking RTNL in RPM resume path 2021-12-29 12:25:56 +01:00
igbvf igbvf: fix double free in igbvf_probe 2021-12-22 09:30:55 +01:00
igc igc: igc_write_phy_reg_gpy: drop premature return 2022-03-08 19:09:36 +01:00
ixgb intel: handle unused assignments 2020-09-25 16:28:59 -07:00
ixgbe ixgbe: xsk: change !netif_carrier_ok() handling in ixgbe_xmit_zc() 2022-03-08 19:09:35 +01:00
ixgbevf ixgbevf: Require large buffers for build_skb on 82599VF 2022-02-16 12:54:24 +01:00
e100.c e100: fix device suspend/resume 2021-11-26 10:39:18 +01:00
Kconfig
Makefile