]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix PF rss size initialization bug
authorJie Wang <wangjie125@huawei.com>
Sat, 11 Jun 2022 12:25:28 +0000 (20:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Jun 2022 10:56:01 +0000 (11:56 +0100)
commita082d145f990b64062000ed5076b86a997284bc8
treebedbbd4ccebbea45d6a00cd835b0438c93a0fc93
parent5a5ac918e1421d09b6fc88ed7d394cbf22d56f93
net: hns3: fix PF rss size initialization bug

Currently hns3 driver misuses the VF rss size to initialize the PF rss size
in hclge_tm_vport_tc_info_update. So this patch fix it by checking the
vport id before initialization.

Fixes: 3a377817f335 ("net: hns3: refactor PF rss get APIs with new common rss get APIs")
Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c