[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251106164106.7b858706@kernel.org>
Date: Thu, 6 Nov 2025 16:41:06 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Daniel Borkmann <daniel@...earbox.net>
Cc: netdev@...r.kernel.org, bpf@...r.kernel.org, davem@...emloft.net,
razor@...ckwall.org, 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 v4 11/14] netkit: Implement
rtnl_link_ops->alloc and ndo_queue_create
On Fri, 31 Oct 2025 22:21:00 +0100 Daniel Borkmann wrote:
> +static void netkit_get_channels(struct net_device *dev,
> + struct ethtool_channels *channels)
> +{
> + channels->max_rx = dev->num_rx_queues;
> + channels->max_tx = dev->num_tx_queues;
> + channels->max_other = 0;
> + channels->max_combined = 1;
> + channels->rx_count = dev->real_num_rx_queues;
> + channels->tx_count = dev->real_num_tx_queues;
> + channels->other_count = 0;
> + channels->combined_count = 0;
> }
Why do we need to implement get_channels?
Powered by blists - more mailing lists