Skip to contentSkip to conversation

gve: Recording rx queue before sending to napi

PATCH Applied Jeroen de Borst 2 participants 2 messages Feb 7, 2022 – Feb 9, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gve: Recording rx queue before sending to napi

From: Tao Liu <[email protected]>

This caused a significant performance degredation when using generic XDP with multiple queues.

Fixes f5cedc84a30d2 ("gve: Add transmit and receive support")
---
 drivers/net/ethernet/google/gve/gve_rx.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/google/gve/gve_rx.c +1 -0
index 2068199445bd..e4e98aa7745f 100644
@@ -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
Signature · 1 line
2.35.0.263.gb82422642f-goog
#1 lore raw
This patch was applied to netdev/net.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Mon, 7 Feb 2022 09:59:01 -0800 you wrote:

From: Tao Liu <[email protected]>

This caused a significant performance degredation when using generic XDP with multiple queues.

Fixes f5cedc84a30d2 ("gve: Add transmit and receive support")

[...]

Here is the summary with links:
- [net] gve: Recording rx queue before sending to napi

    https://git.kernel.org/netdev/net/c/084cbb2ec3af

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html