hv_netvsc: Set tx_table to equal weight after subchannels open
authorHaiyang Zhang <haiyangz@microsoft.com>
Mon, 14 May 2018 22:32:04 +0000 (15:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 14:17:26 +0000 (16:17 +0200)
commit6296e73e459d76ee9c6c83917bd4da6b5f8a049c
tree7a7f8a662f2c7172cce42fe80f3917e7c736f1e8
parentef1c5903cd2a44c161de86f862182afddb4a9677
hv_netvsc: Set tx_table to equal weight after subchannels open

[ Commit a6fb6aa3cfa9047b62653dbcfc9bcde6e2272b41 upstream. ]

In some cases, like internal vSwitch, the host doesn't provide
send indirection table updates. This patch sets the table to be
equal weight after subchannels are all open. Otherwise, all workload
will be on one TX channel.

As tested, this patch has largely increased the throughput over
internal vSwitch.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/hyperv/rndis_filter.c