Files
linux/drivers/net/ethernet/intel/ice
Maciej Fijalkowski 89861c485c ice: move headroom initialization to ice_setup_rx_ctx
ice_rx_offset(), that is supposed to initialize the Rx buffer headroom,
relies on ICE_RX_FLAGS_RING_BUILD_SKB flag as well as XDP prog presence.

Currently, the callsite of mentioned function is placed incorrectly
within ice_setup_rx_ring() where Rx ring's build skb flag is not
set yet. This causes the XDP_REDIRECT to be partially broken due to
inability to create xdp_frame in the headroom space, as the headroom is
0.

Fix this by moving ice_rx_offset() to ice_setup_rx_ctx() after the flag
setting.

Fixes: f1b1f409bf ("ice: store the result of ice_rx_offset() onto ice_ring")
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Tested-by: Kiran Bhandare <kiranx.bhandare@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2021-03-12 07:43:46 -08:00
..
2020-05-22 22:02:34 -07:00
2020-05-22 22:02:34 -07:00
2021-02-08 16:27:01 -08:00
2021-02-08 16:27:01 -08:00
2020-07-29 08:38:54 -07:00
2019-11-08 12:02:14 -08:00
2021-01-26 10:43:49 -08:00
2020-05-22 21:44:48 -07:00
2021-02-08 16:27:01 -08:00
2020-10-09 13:14:19 -07:00
2020-05-21 22:10:04 -07:00
2020-05-21 22:10:04 -07:00
2020-08-01 08:44:04 -07:00
2021-02-08 16:27:01 -08:00
2021-02-22 11:28:57 -08:00