* [PATCH net-next] hv_netvsc: Set tx_table to equal weight after subchannels open
@ 2017-10-27 19:36 Haiyang Zhang
2017-10-29 3:09 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Haiyang Zhang @ 2017-10-27 19:36 UTC (permalink / raw)
To: davem, netdev; +Cc: haiyangz, kys, sthemmin, olaf, vkuznets, linux-kernel
From: Haiyang Zhang <haiyangz@microsoft.com>
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>
---
drivers/net/hyperv/rndis_filter.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c
index addf9f69c58c..0648eebda829 100644
--- a/drivers/net/hyperv/rndis_filter.c
+++ b/drivers/net/hyperv/rndis_filter.c
@@ -1114,6 +1114,9 @@ void rndis_set_subchannel(struct work_struct *w)
netif_set_real_num_tx_queues(ndev, nvdev->num_chn);
netif_set_real_num_rx_queues(ndev, nvdev->num_chn);
+ for (i = 0; i < VRSS_SEND_TAB_SIZE; i++)
+ ndev_ctx->tx_table[i] = i % nvdev->num_chn;
+
rtnl_unlock();
return;
--
2.14.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] hv_netvsc: Set tx_table to equal weight after subchannels open
2017-10-27 19:36 Haiyang Zhang
@ 2017-10-29 3:09 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2017-10-29 3:09 UTC (permalink / raw)
To: haiyangz, haiyangz; +Cc: netdev, kys, sthemmin, olaf, vkuznets, linux-kernel
From: Haiyang Zhang <haiyangz@exchange.microsoft.com>
Date: Fri, 27 Oct 2017 12:36:38 -0700
> From: Haiyang Zhang <haiyangz@microsoft.com>
>
> 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>
Applied to net-next, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-30 0:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <MWHPR21MB0479A6CB81170F0EA4442661CA580@MWHPR21MB0479.namprd21.prod.outlook.com>
2017-10-30 0:43 ` [PATCH net-next] hv_netvsc: Set tx_table to equal weight after subchannels open David Miller
2017-10-27 19:36 Haiyang Zhang
2017-10-29 3:09 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®