diff options
author | Luo bin <luobin9@huawei.com> | 2020-02-27 06:34:44 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-27 11:08:01 -0800 |
commit | 386d4716fd91869e07c731657f2cde5a33086516 (patch) | |
tree | d9f82ce7ceb189dca1d10c9ae32bae5ddc539e58 /drivers | |
parent | d2ed69ce9ed3477e2a9527e6b89fe4689d99510e (diff) | |
download | linux-386d4716fd91869e07c731657f2cde5a33086516.tar.gz linux-386d4716fd91869e07c731657f2cde5a33086516.tar.bz2 linux-386d4716fd91869e07c731657f2cde5a33086516.zip |
hinic: fix a bug of rss configuration
should use real receive queue number to configure hw rss
indirect table rather than maximal queue number
Signed-off-by: Luo bin <luobin9@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/huawei/hinic/hinic_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_main.c b/drivers/net/ethernet/huawei/hinic/hinic_main.c index 02a14f5e7fe3..13560975c103 100644 --- a/drivers/net/ethernet/huawei/hinic/hinic_main.c +++ b/drivers/net/ethernet/huawei/hinic/hinic_main.c @@ -356,7 +356,8 @@ static void hinic_enable_rss(struct hinic_dev *nic_dev) if (!num_cpus) num_cpus = num_online_cpus(); - nic_dev->num_qps = min_t(u16, nic_dev->max_qps, num_cpus); + nic_dev->num_qps = hinic_hwdev_num_qps(hwdev); + nic_dev->num_qps = min_t(u16, nic_dev->num_qps, num_cpus); nic_dev->rss_limit = nic_dev->num_qps; nic_dev->num_rss = nic_dev->num_qps; |