Skip to content

Commit a6fb6aa

Browse files
haiyangzdavem330
authored andcommitted
hv_netvsc: Set tx_table to equal weight after subchannels open
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>
1 parent 90e229e commit a6fb6aa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/net/hyperv/rndis_filter.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,6 +1114,9 @@ void rndis_set_subchannel(struct work_struct *w)
11141114
netif_set_real_num_tx_queues(ndev, nvdev->num_chn);
11151115
netif_set_real_num_rx_queues(ndev, nvdev->num_chn);
11161116

1117+
for (i = 0; i < VRSS_SEND_TAB_SIZE; i++)
1118+
ndev_ctx->tx_table[i] = i % nvdev->num_chn;
1119+
11171120
rtnl_unlock();
11181121
return;
11191122

0 commit comments

Comments
 (0)