> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of > Alexander Lobakin > Sent: Thursday, December 4, 2025 7:52 AM > To: [email protected] > Cc: Lobakin, Aleksander <[email protected]>; Nguyen, Anthony L > <[email protected]>; Kitszel, Przemyslaw > <[email protected]>; Andrew Lunn <[email protected]>; > David S. Miller <[email protected]>; Eric Dumazet <[email protected]>; > Jakub Kicinski <[email protected]>; Paolo Abeni <[email protected]>; Simon > Horman <[email protected]>; Keller, Jacob E > <[email protected]>; Loktionov, Aleksandr > <[email protected]>; NXNE CNSE OSDT ITP Upstreaming > <[email protected]>; [email protected]; linux- > [email protected] > Subject: [Intel-wired-lan] [PATCH iwl-next v2 2/5] libeth: handle creating > pools with unreadable buffers > > libeth uses netmems for quite some time already, so in order to support > unreadable frags / memory providers, it only needs to set > PP_FLAG_ALLOW_UNREADABLE_NETMEM when needed. > Also add a couple sanity checks to make sure the driver didn't mess up the > configuration options and, in case when an MP is installed, return the > truesize always equal to PAGE_SIZE, so that > libeth_rx_alloc() will never try to allocate frags. Memory providers manage > buffers on their own and expect 1:1 buffer / HW Rx descriptor association. > > Bonus: mention in the libeth_sqe_type description that LIBETH_SQE_EMPTY > should also be used for netmem Tx SQEs -- they don't need DMA unmapping. > > Reviewed-by: Jacob Keller <[email protected]> > Reviewed-by: Aleksandr Loktionov <[email protected]> > Signed-off-by: Alexander Lobakin <[email protected]> > --- > include/net/libeth/tx.h | 2 +- > drivers/net/ethernet/intel/libeth/rx.c | 45 ++++++++++++++++++++++++++ > 2 files changed, 46 insertions(+), 1 deletion(-)
Tested-by: Alexander Nowlin <[email protected]>
