]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
gve: Recording rx queue before sending to napi
authorTao Liu <xliutaox@google.com>
Mon, 7 Feb 2022 17:59:01 +0000 (09:59 -0800)
committerPaolo Pisati <paolo.pisati@canonical.com>
Wed, 9 Mar 2022 14:17:50 +0000 (15:17 +0100)
BugLink: https://bugs.launchpad.net/bugs/1964361
[ Upstream commit 084cbb2ec3af2d23be9de65fcc9493e21e265859 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/google/gve/gve_rx.c

index 629d8ed08fc6134f0721f2660ec1c2cd25612d30..97431969a488f5e6e54bb7aabb0de6836c13feaf 100644 (file)
@@ -450,6 +450,7 @@ static bool gve_rx(struct gve_rx_ring *rx, struct gve_rx_desc *rx_desc,
                skb_set_hash(skb, be32_to_cpu(rx_desc->rss_hash),
                             gve_rss_type(rx_desc->flags_seq));
 
+       skb_record_rx_queue(skb, rx->q_num);
        if (skb_is_nonlinear(skb))
                napi_gro_frags(napi);
        else