Files
linux/drivers/net/ethernet/intel/ice
Alexander Lobakin dc44572d19 ice: don't reserve excessive XDP_PACKET_HEADROOM on XSK Rx to skb
{__,}napi_alloc_skb() allocates and reserves additional NET_SKB_PAD
+ NET_IP_ALIGN for any skb.
OTOH, ice_construct_skb_zc() currently allocates and reserves
additional `xdp->data - xdp->data_hard_start`, which is
XDP_PACKET_HEADROOM for XSK frames.
There's no need for that at all as the frame is post-XDP and will
go only to the networking stack core.
Pass the size of the actual data only to __napi_alloc_skb() and
don't reserve anything. This will give enough headroom for stack
processing.

Fixes: 2d4238f556 ("ice: Add support for AF_XDP")
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:43:35 -08:00
..
2021-12-14 10:19:13 -08:00
2021-12-14 10:19:13 -08:00
2021-11-30 08:02:12 -08:00
2021-12-14 08:06:47 -08:00
2022-01-06 10:15:09 -08:00
2022-01-06 10:15:09 -08:00
2021-05-28 20:11:13 -07:00
2021-10-07 10:41:42 -07:00
2022-01-06 10:15:09 -08:00
2022-01-06 10:15:09 -08:00
2021-12-14 10:19:14 -08:00
2021-12-14 10:19:13 -08:00
2021-12-14 10:19:13 -08:00
2021-12-14 10:19:14 -08:00
2021-10-28 11:00:18 -07:00
2021-12-17 11:18:21 -08:00