Skip to content

Commit 5154bf9

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/ixgbe/ixgbe_xsk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
1 parent 0163620 commit 5154bf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ int ixgbe_clean_rx_irq_zc(struct ixgbe_q_vector *q_vector,
239239
bool failure = false;
240240
struct sk_buff *skb;
241241

242-
while (likely(total_rx_packets < budget)) {
242+
while (likely(total_rx_packets < XSK_NAPI_WEIGHT)) {
243243
union ixgbe_adv_rx_desc *rx_desc;
244244
struct ixgbe_rx_buffer *bi;
245245
unsigned int size;

0 commit comments

Comments
 (0)