netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v3 0/1] i40e: xsk: advance next_to_clean on status descriptors
@ 2025-11-13  8:24 Alessandro Decina
  2025-11-13  8:24 ` [PATCH net v3 1/1] " Alessandro Decina
  0 siblings, 1 reply; 8+ messages in thread
From: Alessandro Decina @ 2025-11-13  8:24 UTC (permalink / raw)
  To: netdev
  Cc: Maciej Fijalkowski, David S. Miller, Alexei Starovoitov,
	Andrew Lunn, Daniel Borkmann, Eric Dumazet, Jakub Kicinski,
	Jesper Dangaard Brouer, John Fastabend, Paolo Abeni,
	Przemek Kitszel, Stanislav Fomichev, Tirthendu Sarkar,
	Tony Nguyen, bpf, intel-wired-lan, linux-kernel,
	Alessandro Decina

Hello,

As suggested by Maciej, submitting v3 which makes i40e_clean_rx_irq and
i40e_clean_rx_irq_zc use similar logic and a shared function
i40e_inc_ntp_ntc() to advance next_to_process and next_to_clean when
handling status descriptors. 

I've left the rest of the i40e_clean_rx_irq logic unchanged or this
patch would snowball. I think it'd be nice to change the function to
work with local variables and update the rx_ring only at the end like
_zc, but seems out of scope for this patch. 

Changes since v2:
 * use common utility function i40e_inc_ntp_ntc to advance indexes

Alessandro Decina (1):
  i40e: xsk: advance next_to_clean on status descriptors

 drivers/net/ethernet/intel/i40e/i40e_txrx.c   | 33 ++++++++++++-------
 .../ethernet/intel/i40e/i40e_txrx_common.h    |  2 ++
 drivers/net/ethernet/intel/i40e/i40e_xsk.c    | 17 ++++++----
 3 files changed, 34 insertions(+), 18 deletions(-)


base-commit: 96a9178a29a6b84bb632ebeb4e84cf61191c73d5
-- 
2.43.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-11-18  8:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-13  8:24 [PATCH net v3 0/1] i40e: xsk: advance next_to_clean on status descriptors Alessandro Decina
2025-11-13  8:24 ` [PATCH net v3 1/1] " Alessandro Decina
2025-11-14  5:49   ` [Intel-wired-lan] " Loktionov, Aleksandr
2025-11-14 13:01   ` Maciej Fijalkowski
2025-11-15  7:58     ` Alessandro Decina
2025-11-17 16:37       ` Maciej Fijalkowski
2025-11-18  6:37         ` Alessandro Decina
2025-11-18  8:04           ` Maciej Fijalkowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).