summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/google
diff options
context:
space:
mode:
authorTao Liu <xliutaox@google.com>2022-02-07 09:59:01 -0800
committerJakub Kicinski <kuba@kernel.org>2022-02-08 16:52:31 -0800
commit084cbb2ec3af2d23be9de65fcc9493e21e265859 (patch)
tree08fab751bf94c0441b4ac513c672d42d82bbe6f1 /drivers/net/ethernet/google
parentfe4f57bf7b585dca58f1496c4e2481ecbae18126 (diff)
downloadlwn-084cbb2ec3af2d23be9de65fcc9493e21e265859.tar.gz
lwn-084cbb2ec3af2d23be9de65fcc9493e21e265859.zip
gve: Recording rx queue before sending to napi
This caused a significant performance degredation when using generic XDP with multiple queues. Fixes: f5cedc84a30d2 ("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>
Diffstat (limited to 'drivers/net/ethernet/google')
-rw-r--r--drivers/net/ethernet/google/gve/gve_rx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/google/gve/gve_rx.c b/drivers/net/ethernet/google/gve/gve_rx.c
index 2068199445bd..e4e98aa7745f 100644
--- a/drivers/net/ethernet/google/gve/gve_rx.c
+++ b/drivers/net/ethernet/google/gve/gve_rx.c
@@ -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