]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
hv_netvsc: Fix tx_table init in rndis_set_subchannel()
authorHaiyang Zhang <haiyangz@microsoft.com>
Wed, 11 Dec 2019 22:26:27 +0000 (14:26 -0800)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 16:12:23 +0000 (10:12 -0600)
commitf298b84bb621aa511d62dc8acc2a72ced1da216e
treecd720363645fe6e487295ff6ff378a9336578996
parente7e4f8658119aa110b136d5afdebc984bf321a78
hv_netvsc: Fix tx_table init in rndis_set_subchannel()

BugLink: https://bugs.launchpad.net/bugs/1858429
[ Upstream commit c39ea5cba5a2e97fc01b78c85208bf31383b399c ]

Host can provide send indirection table messages anytime after RSS is
enabled by calling rndis_filter_set_rss_param(). So the host provided
table values may be overwritten by the initialization in
rndis_set_subchannel().

To prevent this problem, move the tx_table initialization before calling
rndis_filter_set_rss_param().

Fixes: a6fb6aa3cfa9 ("hv_netvsc: Set tx_table to equal weight after subchannels open")
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/hyperv/rndis_filter.c