Skip to content

Commit 084cbb2

Browse files
xliutaox-gkuba-moo
authored andcommitted
gve: Recording rx queue before sending to napi
This caused a significant performance degredation when using generic XDP with multiple queues. Fixes: f5cedc8 ("gve: Add transmit and receive support") Signed-off-by: Tao Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent fe4f57b commit 084cbb2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/google/gve/gve_rx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ static bool gve_rx(struct gve_rx_ring *rx, netdev_features_t feat,
609609

610610
*packet_size_bytes = skb->len + (skb->protocol ? ETH_HLEN : 0);
611611
*work_done = work_cnt;
612+
skb_record_rx_queue(skb, rx->q_num);
612613
if (skb_is_nonlinear(skb))
613614
napi_gro_frags(napi);
614615
else

0 commit comments

Comments
 (0)