Thread (10 messages) 10 messages, 3 authors, 2026-08-03

RE: [Intel-wired-lan] [PATCH iwl-next 1/3] libeth: add __libeth_rx_sync_for_cpu

flat view

From: Loktionov, Aleksandr <hidden>
Date: 2026-07-31 13:37:54
Also in: intel-wired-lan

quoted hunk ↗ jump to hunk
-----Original Message-----
From: Intel-wired-lan <redacted> On Behalf
Of Matt Vollrath
Sent: Friday, July 31, 2026 2:41 PM
To: intel-wired-lan@lists.osuosl.org
Cc: netdev@vger.kernel.org; Lobakin, Aleksander
[off-list ref]; Nguyen, Anthony L
[off-list ref]; Kitszel, Przemyslaw
[off-list ref]; Andrew Lunn [off-list ref];
David S . Miller [off-list ref]; Eric Dumazet
[off-list ref]; Jakub Kicinski [off-list ref]; Paolo Abeni
[off-list ref]; Simon Horman [off-list ref]; Matt Vollrath
[off-list ref]
Subject: [Intel-wired-lan] [PATCH iwl-next 1/3] libeth: add
__libeth_rx_sync_for_cpu

Deriving a netmem's page pool from the ref requires loading a pointer
from the netmem_desc, which may not be cached. The driver may already
have a cached reference to the correct page pool, so add a bypass.

No functional change for existing callers.

Signed-off-by: Matt Vollrath <redacted>
Assisted-by: Claude:claude-5-fable
---
 include/net/libeth/rx.h | 37 ++++++++++++++++++++++++++-----------
 1 file changed, 26 insertions(+), 11 deletions(-)
diff --git a/include/net/libeth/rx.h b/include/net/libeth/rx.h index
5d991404845e..fddac084e001 100644
--- a/include/net/libeth/rx.h
+++ b/include/net/libeth/rx.h
@@ -118,36 +118,51 @@ static inline dma_addr_t libeth_rx_alloc(const
struct libeth_fq_fp *fq, u32 i)  void
libeth_rx_recycle_slow(netmem_ref netmem);

 /**
...
 /* Converting abstract packet type numbers into a software structure
with
  * the packet parameters to do O(1) lookup on Rx.
  */
--
2.43.0
Reviewed-by: Aleksandr Loktionov <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