diff options
author | Huazhong Tan | 2018-09-26 20:28:39 +0200 |
---|---|---|
committer | David S. Miller | 2018-09-28 19:37:42 +0200 |
commit | 0d43bf45f4a82efceefdfdd2ec86337fcbd51a46 (patch) | |
tree | 91256fff06157e229debe53034e8af3b352d2d3b /drivers/net/ethernet/hisilicon/hns3/hnae3.h | |
parent | net: hns3: Change return type of hclge_tm_schd_info_update() (diff) | |
download | kernel-qcow2-linux-0d43bf45f4a82efceefdfdd2ec86337fcbd51a46.tar.gz kernel-qcow2-linux-0d43bf45f4a82efceefdfdd2ec86337fcbd51a46.tar.xz kernel-qcow2-linux-0d43bf45f4a82efceefdfdd2ec86337fcbd51a46.zip |
net: hns3: Modify hns3_get_max_available_channels
The current hns3_get_max_available_channels returns the total number
of queues for the device, which makes ethtool -L set the number of queues
per channel queues incorrectly, so hns3_get_max_available_channels should
return the maximum available number of queues per channel, depending on
the total number of queues allocated and the hardware configurations.
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hnae3.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h index 8581e16ec2f1..dea422c53738 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h +++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h @@ -403,7 +403,7 @@ struct hnae3_ae_ops { void (*get_channels)(struct hnae3_handle *handle, struct ethtool_channels *ch); void (*get_tqps_and_rss_info)(struct hnae3_handle *h, - u16 *free_tqps, u16 *max_rss_size); + u16 *alloc_tqps, u16 *max_rss_size); int (*set_channels)(struct hnae3_handle *handle, u32 new_tqps_num); void (*get_flowctrl_adv)(struct hnae3_handle *handle, u32 *flowctrl_adv); |