Commit bdeed8b0 authored by Andrey Turkin's avatar Andrey Turkin Committed by Jakub Kicinski

vmxnet3: Record queue number to incoming packets

Make generic XDP processing attribute packets to their actual
queues instead of queue #0. This improves AF_XDP performance
considerably since softirq threads no longer fight over single
AF_XDP socket spinlock.
Signed-off-by: default avatarAndrey Turkin <andrey.turkin@gmail.com>
Link: https://lore.kernel.org/r/20220717022050.822766-2-andrey.turkin@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 3e7380bb
...@@ -1550,6 +1550,7 @@ vmxnet3_rq_rx_complete(struct vmxnet3_rx_queue *rq, ...@@ -1550,6 +1550,7 @@ vmxnet3_rq_rx_complete(struct vmxnet3_rx_queue *rq,
hash_type); hash_type);
} }
#endif #endif
skb_record_rx_queue(ctx->skb, rq->qid);
skb_put(ctx->skb, rcd->len); skb_put(ctx->skb, rcd->len);
if (VMXNET3_VERSION_GE_2(adapter) && if (VMXNET3_VERSION_GE_2(adapter) &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment