Thread (22 messages) 22 messages, 2 authors, 2026-04-01

Re: [PATCH net-next v10 02/14] net: Implement netdev_nl_queue_create_doit

From: Nikolay Aleksandrov <razor@blackwall.org>
Date: 2026-03-28 06:42:13
Also in: bpf

On 27/03/2026 14:10, Daniel Borkmann wrote:
Implement netdev_nl_queue_create_doit which creates a new rx queue in a
virtual netdev and then leases it to a rx queue in a physical netdev.

Example with ynl client:

   # ynl --family netdev --output-json --do queue-create \
         --json '{"ifindex": 8, "type": "rx", "lease": {"ifindex": 4, "queue": {"type": "rx", "id": 15}}}'
   {'id': 1}

Note that the netdevice locking order is always from the virtual to
the physical device.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Co-developed-by: David Wei <redacted>
Signed-off-by: David Wei <redacted>
---
  Documentation/networking/netdevices.rst |   6 +
  include/linux/netdevice.h               |   9 +-
  include/net/netdev_queues.h             |  19 ++-
  include/net/netdev_rx_queue.h           |  15 ++-
  include/net/xdp_sock_drv.h              |   2 +-
  net/core/dev.c                          |   8 ++
  net/core/dev.h                          |   5 +
  net/core/netdev-genl.c                  | 164 +++++++++++++++++++++++-
  net/core/netdev_queues.c                |  62 +++++++++
  net/core/netdev_rx_queue.c              |  46 ++++++-
  net/xdp/xsk.c                           |   2 +-
  11 files changed, 325 insertions(+), 13 deletions(-)
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help