Skip to content

Commit 0163620

Browse files
bjototsipa
authored andcommitted
From: Björn Töpel <[email protected]>
Start using XSK_NAPI_WEIGHT as NAPI poll budget for the AF_XDP Rx zero-copy path. Signed-off-by: Björn Töpel <[email protected]> --- drivers/net/ethernet/intel/ice/ice_xsk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
1 parent 3a0ce89 commit 0163620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/ice/ice_xsk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ int ice_clean_rx_irq_zc(struct ice_ring *rx_ring, int budget)
561561
unsigned int xdp_xmit = 0;
562562
bool failure = false;
563563

564-
while (likely(total_rx_packets < (unsigned int)budget)) {
564+
while (likely(total_rx_packets < XSK_NAPI_WEIGHT)) {
565565
union ice_32b_rx_flex_desc *rx_desc;
566566
unsigned int size, xdp_res = 0;
567567
struct ice_rx_buf *rx_buf;

0 commit comments

Comments
 (0)