]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix wrong use of rss size during VF rss config
authorJie Wang <wangjie125@huawei.com>
Tue, 10 Jan 2023 11:53:59 +0000 (19:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:58:32 +0000 (11:58 +0100)
commit3ad9edb6027608cb3996a2d87f24502c097d8e8f
tree064f245ce3ef37cc5e68222e96bc8f789305c70f
parent3811aff02c4f2900f91a181a930271c1e910d49c
net: hns3: fix wrong use of rss size during VF rss config

[ Upstream commit ae9f29fdfd827ad06c1ae8155c042245a9d00757 ]

Currently, it used old rss size to get current tc mode. As a result, the
rss size is updated, but the tc mode is still configured based on the old
rss size.

So this patch fixes it by using the new rss size in both process.

Fixes: 580235091c2f ("net: hns3: refactor VF rss init APIs with new common rss init APIs")
Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Hao Lan <lanhao@huawei.com>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Link: https://lore.kernel.org/r/20230110115359.10163-1-lanhao@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c