Thread (3 messages) flat view 3 messages, 2 authors, 2022-02-18

RE: [Intel-wired-lan] [PATCH net-next 1/2] i40e: remove dead stores on XSK hotpath

From: Kuruvinakunnel, George <hidden>
Date: 2022-02-18 08:40:03
Also in: bpf, intel-wired-lan, lkml

-----Original Message-----
From: Intel-wired-lan <redacted> On Behalf Of Lobakin,
Alexandr
Sent: Wednesday, December 1, 2021 12:07 AM
To: intel-wired-lan@lists.osuosl.org
Cc: linux-kernel@vger.kernel.org; Jesper Dangaard Brouer <hawk@kernel.org>;
Daniel Borkmann [off-list ref]; netdev@vger.kernel.org;
bpf@vger.kernel.org; John Fastabend [off-list ref]; Alexei
Starovoitov [off-list ref]; Jakub Kicinski [off-list ref]; Dumitrescu,
Cristian [off-list ref]; David S. Miller [off-list ref];
Karlsson, Magnus [off-list ref]
Subject: [Intel-wired-lan] [PATCH net-next 1/2] i40e: remove dead stores on XSK
hotpath

The 'if (ntu == rx_ring->count)' block in i40e_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'.

'cleaned_count' in i40e_clean_rx_irq_zc() was previously being incremented in the
loop, but after commit f12738b6ec06
("i40e: remove unnecessary cleaned_count updates") it gets assigned only once after
it, so the initialization can be dropped.

Fixes: 6aab0bb0c5cd ("i40e: Use the xsk batched rx allocation interface")
Fixes: f12738b6ec06 ("i40e: remove unnecessary cleaned_count updates")
Signed-off-by: Alexander Lobakin <redacted>
Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
---
 drivers/net/ethernet/intel/i40e/i40e_xsk.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Tested-by: George Kuruvinakunnel <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help