[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3f9e1db9-71c9-4df4-88c1-4fc54d962682@blackwall.org>
Date: Mon, 19 Jan 2026 16:20:47 +0200
From: Nikolay Aleksandrov <razor@...ckwall.org>
To: Daniel Borkmann <daniel@...earbox.net>, netdev@...r.kernel.org
Cc: bpf@...r.kernel.org, kuba@...nel.org, davem@...emloft.net,
pabeni@...hat.com, willemb@...gle.com, sdf@...ichev.me,
john.fastabend@...il.com, martin.lau@...nel.org, jordan@...fe.io,
maciej.fijalkowski@...el.com, magnus.karlsson@...el.com, dw@...idwei.uk,
toke@...hat.com, yangzhenze@...edance.com, wangdongdong.6@...edance.com
Subject: Re: [PATCH net-next v7 02/16] net: Implement
netdev_nl_queue_create_doit
On 15/01/2026 10:25, 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:
>
> # ./pyynl/cli.py \
> --spec ~/netlink/specs/netdev.yaml \
> --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@...earbox.net>
> Co-developed-by: David Wei <dw@...idwei.uk>
> Signed-off-by: David Wei <dw@...idwei.uk>
> ---
> include/net/netdev_queues.h | 19 ++++-
> include/net/netdev_rx_queue.h | 9 ++-
> include/net/xdp_sock_drv.h | 2 +-
> net/core/dev.c | 7 ++
> net/core/dev.h | 2 +
> net/core/netdev-genl.c | 146 +++++++++++++++++++++++++++++++++-
> net/core/netdev_queues.c | 57 +++++++++++++
> net/core/netdev_rx_queue.c | 46 ++++++++++-
> net/xdp/xsk.c | 2 +-
> 9 files changed, 278 insertions(+), 12 deletions(-)
>
Reviewed-by: Nikolay Aleksandrov <razor@...ckwall.org>
Powered by blists - more mailing lists