]> git.baikalelectronics.ru Git - kernel.git/commit
ice: remove dead store on XSK hotpath
authorAlexander Lobakin <alexandr.lobakin@intel.com>
Mon, 13 Dec 2021 15:31:08 +0000 (16:31 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 17 Dec 2021 19:12:05 +0000 (11:12 -0800)
commit69121067757bdd9927760fc8f18e7de05cefaf0a
treebb96584772845ea1fce576827ec8f1f86029e8c6
parenta9695df68b6db3d5d5eff545576d26b434e8873a
ice: remove dead store on XSK hotpath

The 'if (ntu == rx_ring->count)' block in ice_alloc_rx_buffers_zc()
was previously residing in the loop, but after introducing the
batched interface it is used only to wrap-around the NTU descriptor,
thus no more need to assign 'xdp'.

Fixes: 8a0becfb7d89 ("ice: Use the xsk batched rx allocation interface")
Signed-off-by: Alexander Lobakin <alexandr.lobakin@intel.com>
Acked-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>
drivers/net/ethernet/intel/ice/ice_xsk.c