]> git.baikalelectronics.ru Git - 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)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Feb 2022 00:52:31 +0000 (16:52 -0800)
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>
drivers/net/ethernet/google/gve/gve_rx.c

index 2068199445bddbf4e802e10e5a582cc0be2efe6a..e4e98aa7745f3e57851f80330eeb1b5fa1da0b40 100644 (file)
@@ -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