]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netdevsim: Mark NAPI ID on skb in nsim_rcv
authorJoe Damato <jdamato@fastly.com>
Thu, 24 Apr 2025 00:27:31 +0000 (00:27 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 25 Apr 2025 01:30:01 +0000 (18:30 -0700)
commitf71c549b26a33fd62f1e9c7deeba738bfc73fbfc
treeebe9ecf87fbdd2322b1f96ef3b105a94c3e75927
parentf74d14a7dfb10ba908ce799d2176817d097713c7
netdevsim: Mark NAPI ID on skb in nsim_rcv

Previously, nsim_rcv was not marking the NAPI ID on the skb, leading to
applications seeing a napi ID of 0 when using SO_INCOMING_NAPI_ID.

To add to the userland confusion, netlink appears to correctly report
the NAPI IDs for netdevsim queues but the resulting file descriptor from
a call to accept() was reporting a NAPI ID of 0.

Signed-off-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20250424002746.16891-2-jdamato@fastly.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/netdevsim/netdev.c