]> 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)
commiteb7bd92e2ce5af25716f9b46312bc7eabe9a30cf
treebedbbd4ccebbea45d6a00cd835b0438c93a0fc93
parentb39d001ca2752b767758a1008c14a6b62a9dc1b6
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: 7d06cc507b3a ("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