Skip to content

Commit

Permalink
gve: Recording rx queue before sending to napi
Browse files Browse the repository at this point in the history
[ Upstream commit 084cbb2 ]

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 <xliutaox@google.com>
Link: https://lore.kernel.org/r/20220207175901.2486596-1-jeroendb@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
xliutaox-g authored and gregkh committed Feb 16, 2022
1 parent 9482ab4 commit 2592d67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/google/gve/gve_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,7 @@ static bool gve_rx(struct gve_rx_ring *rx, netdev_features_t feat,

*packet_size_bytes = skb->len + (skb->protocol ? ETH_HLEN : 0);
*work_done = work_cnt;
skb_record_rx_queue(skb, rx->q_num);
if (skb_is_nonlinear(skb))
napi_gro_frags(napi);
else
Expand Down

0 comments on commit 2592d67

Please sign in to comment.