Re: [PATCH iwl-next 04/16] libeth: xdp: add .ndo_xdp_xmit() helpers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 15, 2025 at 07:28:13PM +0200, Alexander Lobakin wrote:
> Add helpers for implementing .ndo_xdp_xmit().
> Same as for XDP_TX, accumulate up to 16 DMA-mapped frames on the stack,
> then flush. If DMA mapping is failed for some reason, don't try mapping
> further frames, but still flush what was already prepared.
> DMA address of a head frame is stored in its headroom, assuming it
> has enough of it for an 8 (or 4) byte value.
> In addition to @prep and @xmit driver callbacks in XDP_TX, xmit also
> needs @finalize to kick the XDPSQ after filling.
> 
> Signed-off-by: Alexander Lobakin <aleksander.lobakin@xxxxxxxxx>

Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@xxxxxxxxx>




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux