mirror of https://gitee.com/openkylin/linux.git
net: hns3: remove the rss_size limitation by vector num
Currently, if user hasn't change channel number, the rss_size is limited to be no more than the vector number, in order to keep one vector only being mapped to one queue. But the queue number of each tc can be different, and one vector also can be mapped by multiple queues. So remove this limitation. Signed-off-by: Jian Shen <shenjian15@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a2ee6fd28a
commit
5be36fb785
|
@ -664,15 +664,6 @@ static void hclge_tm_update_kinfo_rss_size(struct hclge_vport *vport)
|
|||
kinfo->rss_size = kinfo->req_rss_size;
|
||||
} else if (kinfo->rss_size > max_rss_size ||
|
||||
(!kinfo->req_rss_size && kinfo->rss_size < max_rss_size)) {
|
||||
/* if user not set rss, the rss_size should compare with the
|
||||
* valid msi numbers to ensure one to one map between tqp and
|
||||
* irq as default.
|
||||
*/
|
||||
if (!kinfo->req_rss_size)
|
||||
max_rss_size = min_t(u16, max_rss_size,
|
||||
(hdev->num_nic_msi - 1) /
|
||||
kinfo->tc_info.num_tc);
|
||||
|
||||
/* Set to the maximum specification value (max_rss_size). */
|
||||
kinfo->rss_size = max_rss_size;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue