net: hns3: fix wrong use of rss size during VF rss config
mainline inclusion from mainline-v6.2-rc3 commit ae9f29fd category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6A42Q CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=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: 93969dc1 ("net: hns3: refactor VF rss init APIs with new common rss init APIs") Signed-off-by: NJie Wang <wangjie125@huawei.com> Signed-off-by: NHao Lan <lanhao@huawei.com> Reviewed-by: NAlexander Duyck <alexanderduyck@fb.com> Link: https://lore.kernel.org/r/20230110115359.10163-1-lanhao@huawei.comSigned-off-by: NJakub Kicinski <kuba@kernel.org> Signed-off-by: NJiantao Xiao <xiaojiantao1@h-partners.com>
Showing
想要评论请 注册 或 登录