gve: Recording rx queue before sending to napi
[ Upstream commit084cbb2ec3
] This caused a significant performance degredation when using generic XDP with multiple queues. Fixes:f5cedc84a3
("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>
This commit is contained in:
Родитель
5c66161cce
Коммит
68c8e6d16f
|
@ -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),
|
skb_set_hash(skb, be32_to_cpu(rx_desc->rss_hash),
|
||||||
gve_rss_type(rx_desc->flags_seq));
|
gve_rss_type(rx_desc->flags_seq));
|
||||||
|
|
||||||
|
skb_record_rx_queue(skb, rx->q_num);
|
||||||
if (skb_is_nonlinear(skb))
|
if (skb_is_nonlinear(skb))
|
||||||
napi_gro_frags(napi);
|
napi_gro_frags(napi);
|
||||||
else
|
else
|
||||||
|
|
Загрузка…
Ссылка в новой задаче