]> git.baikalelectronics.ru Git - 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)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Sat, 14 Dec 2019 19:27:30 +0000 (11:27 -0800)
commitf1ee93b50649444971baa3fbe2bffe659b0a6727
treeb4a91806ab0ba52b74bc63ab76fcdbf3233b91be
parent27c3cef6a4ac638c9ea9b88af0224a9e7af8c3a5
hv_netvsc: Fix tx_table init in rndis_set_subchannel()

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: 17ceba002caf ("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>
drivers/net/hyperv/rndis_filter.c