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)
commit71b215f36dca1a3d5d1c576b2099e6d7ea03047e
treebedbbd4ccebbea45d6a00cd835b0438c93a0fc93
parente93530ae0e5d8fcf2d908933d206e0c93bc3c09b
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: 7347255ea389 ("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