summaryrefslogtreecommitdiff
path: root/drivers/net/vmxnet3
diff options
context:
space:
mode:
authorAndrey Turkin <andrey.turkin@gmail.com>2022-07-17 05:20:50 +0300
committerJakub Kicinski <kuba@kernel.org>2022-07-19 06:38:53 +0300
commitbdeed8b0958cbe126fcc4a4945308907f44cc8a9 (patch)
tree50cb29ed5d106aa9483a460f3b00a8a88f4cdb03 /drivers/net/vmxnet3
parent3e7380bb870bfdbe4f6cd2020b3768f0f9a3ada2 (diff)
downloadlinux-bdeed8b0958cbe126fcc4a4945308907f44cc8a9.tar.xz
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: Andrey Turkin <andrey.turkin@gmail.com> Link: https://lore.kernel.org/r/20220717022050.822766-2-andrey.turkin@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/vmxnet3')
-rw-r--r--drivers/net/vmxnet3/vmxnet3_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c
index 19c414733747..dd831adbc1d1 100644
--- a/drivers/net/vmxnet3/vmxnet3_drv.c
+++ b/drivers/net/vmxnet3/vmxnet3_drv.c
@@ -1550,6 +1550,7 @@ vmxnet3_rq_rx_complete(struct vmxnet3_rx_queue *rq,
hash_type);
}
#endif
+ skb_record_rx_queue(ctx->skb, rq->qid);
skb_put(ctx->skb, rcd->len);
if (VMXNET3_VERSION_GE_2(adapter) &&