tun: Implement ethtool's get_channels() callback
authorYunjian Wang <wangyunjian@huawei.com>
Fri, 2 Feb 2024 07:53:20 +0000 (15:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Feb 2024 15:42:05 +0000 (15:42 +0000)
commit45a96c407eb1cd44aa0179db8d600015616bcced
tree42158021f2090723ebdeebadc460d9d2bc94725d
parentbd8a8d5ec5048ef74002d9f3db5cae971e68712c
tun: Implement ethtool's get_channels() callback

Implement the tun .get_channels functionality. This feature is necessary
for some tools, such as libxdp, which need to retrieve the queue count.

Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c