> -----Original Message-----
> From: Intel-wired-lan <[email protected]> On Behalf Of
> Björn Töpel
> Sent: Thursday, July 2, 2020 8:37 AM
> To: [email protected]
> Cc: [email protected]; [email protected]; Topel, Bjorn
> <[email protected]>; Karlsson, Magnus <[email protected]>
> Subject: [Intel-wired-lan] [PATCH net-next 3/4] i40e, xsk: increase budget for
> AF_XDP path
> 
> From: Björn Töpel <[email protected]>
> 
> The napi_budget, meaning the number of received packets that are allowed
> to be processed for each napi invocation, takes into consideration that each
> received packet is aimed for the kernel networking stack.
> 
> That is not the case for the AF_XDP receive path, where the cost of each
> packet is significantly less. Therefore, this commit disregards the napi 
> budget
> and increases it to 256. Processing 256 packets targeted for AF_XDP is still 
> less
> work than 64 (napi budget) packets going to the kernel networking stack.
> 
> The performance for the rx_drop scenario is up 7%.
> 
> Signed-off-by: Björn Töpel <[email protected]>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_xsk.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Tested-by: Andrew Bowers <[email protected]>


Reply via email to