public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Nikolay Aleksandrov <razor@blackwall.org>
To: Daniel Borkmann <daniel@iogearbox.net>, netdev@vger.kernel.org
Cc: bpf@vger.kernel.org, kuba@kernel.org, davem@davemloft.net,
	pabeni@redhat.com, willemb@google.com, sdf@fomichev.me,
	john.fastabend@gmail.com, martin.lau@kernel.org, jordan@jrife.io,
	maciej.fijalkowski@intel.com, magnus.karlsson@intel.com,
	dw@davidwei.uk, toke@redhat.com, yangzhenze@bytedance.com,
	wangdongdong.6@bytedance.com
Subject: Re: [PATCH net-next v10 02/14] net: Implement netdev_nl_queue_create_doit
Date: Sat, 28 Mar 2026 08:42:09 +0200	[thread overview]
Message-ID: <7ace5b20-6982-45ea-a137-c0dee5d47c8b@blackwall.org> (raw)
In-Reply-To: <20260327121049.334562-3-daniel@iogearbox.net>

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 <dw@davidwei.uk>
> Signed-off-by: David Wei <dw@davidwei.uk>
> ---
>   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>


  reply	other threads:[~2026-03-28  6:42 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-27 12:10 [PATCH net-next v10 00/14] netkit: Support for io_uring zero-copy and AF_XDP Daniel Borkmann
2026-03-27 12:10 ` [PATCH net-next v10 01/14] net: Add queue-create operation Daniel Borkmann
2026-03-27 12:10 ` [PATCH net-next v10 02/14] net: Implement netdev_nl_queue_create_doit Daniel Borkmann
2026-03-28  6:42   ` Nikolay Aleksandrov [this message]
2026-03-27 12:10 ` [PATCH net-next v10 03/14] net: Add lease info to queue-get response Daniel Borkmann
2026-03-28  6:44   ` Nikolay Aleksandrov
2026-03-27 12:10 ` [PATCH net-next v10 04/14] net, ethtool: Disallow leased real rxqs to be resized Daniel Borkmann
2026-03-28  6:47   ` Nikolay Aleksandrov
2026-03-27 12:10 ` [PATCH net-next v10 05/14] net: Slightly simplify net_mp_{open,close}_rxq Daniel Borkmann
2026-03-28  6:47   ` Nikolay Aleksandrov
2026-03-27 12:10 ` [PATCH net-next v10 06/14] net: Proxy netif_mp_{open,close}_rxq for leased queues Daniel Borkmann
2026-03-28  6:50   ` Nikolay Aleksandrov
2026-03-27 12:10 ` [PATCH net-next v10 07/14] net: Proxy netdev_queue_get_dma_dev " Daniel Borkmann
2026-03-28  6:51   ` Nikolay Aleksandrov
2026-03-27 12:10 ` [PATCH net-next v10 08/14] xsk: Extend xsk_rcv_check validation Daniel Borkmann
2026-03-27 12:10 ` [PATCH net-next v10 09/14] xsk: Proxy pool management for leased queues Daniel Borkmann
2026-03-27 12:10 ` [PATCH net-next v10 10/14] netkit: Add single device mode for netkit Daniel Borkmann
2026-03-27 12:10 ` [PATCH net-next v10 11/14] netkit: Implement rtnl_link_ops->alloc and ndo_queue_create Daniel Borkmann
2026-03-27 12:10 ` [PATCH net-next v10 12/14] netkit: Add netkit notifier to check for unregistering devices Daniel Borkmann
2026-03-27 12:10 ` [PATCH net-next v10 13/14] netkit: Add xsk support for af_xdp applications Daniel Borkmann
2026-03-27 12:10 ` [PATCH net-next v10 14/14] selftests/net: Add queue leasing tests with netkit Daniel Borkmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7ace5b20-6982-45ea-a137-c0dee5d47c8b@blackwall.org \
    --to=razor@blackwall.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=dw@davidwei.uk \
    --cc=john.fastabend@gmail.com \
    --cc=jordan@jrife.io \
    --cc=kuba@kernel.org \
    --cc=maciej.fijalkowski@intel.com \
    --cc=magnus.karlsson@intel.com \
    --cc=martin.lau@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sdf@fomichev.me \
    --cc=toke@redhat.com \
    --cc=wangdongdong.6@bytedance.com \
    --cc=willemb@google.com \
    --cc=yangzhenze@bytedance.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox