]> www.infradead.org Git - users/dwmw2/linux.git/commit
ice: stop storing XDP verdict within ice_rx_buf
authorMaciej Fijalkowski <maciej.fijalkowski@intel.com>
Thu, 23 Jan 2025 15:01:18 +0000 (16:01 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 31 Jan 2025 18:07:46 +0000 (10:07 -0800)
commit468a1952df78f65c5991b7ac885c8b5b7dd87bab
tree9bb5aa957ef426ed9f202530cc75fbd8f3b5a889
parent11c4aa074d547d825b19cd8d9f288254d89d805c
ice: stop storing XDP verdict within ice_rx_buf

Idea behind having ice_rx_buf::act was to simplify and speed up the Rx
data path by walking through buffers that were representing cleaned HW
Rx descriptors. Since it caused us a major headache recently and we
rolled back to old approach that 'puts' Rx buffers right after running
XDP prog/creating skb, this is useless now and should be removed.

Get rid of ice_rx_buf::act and related logic. We still need to take care
of a corner case where XDP program releases a particular fragment.

Make ice_run_xdp() to return its result and use it within
ice_put_rx_mbuf().

Fixes: 2fba7dc5157b ("ice: Add support for XDP multi-buffer on Rx side")
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Tested-by: Chandan Kumar Rout <chandanx.rout@intel.com> (A Contingent Worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_txrx.c
drivers/net/ethernet/intel/ice/ice_txrx.h
drivers/net/ethernet/intel/ice/ice_txrx_lib.h