net: hns3: fixed vf get max channels bug
authorJian Shen <shenjian15@huawei.com>
Tue, 22 Jul 2025 12:54:22 +0000 (20:54 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 24 Jul 2025 09:27:21 +0000 (11:27 +0200)
commitb3e75c0bcc53f647311960bc1b0970b9b480ca5a
tree3a0b7e4a716e521ec5633b8abbe633f0d2402a93
parentcde304655f25d94a996c45b0f9956e7dcc2bc4c0
net: hns3: fixed vf get max channels bug

Currently, the queried maximum of vf channels is the maximum of channels
supported by each TC. However, the actual maximum of channels is
the maximum of channels supported by the device.

Fixes: 849e46077689 ("net: hns3: add ethtool_ops.get_channels support for VF")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Hao Lan <lanhao@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250722125423.1270673-4-shaojijie@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c