Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1716903
| From | Haiyang Zhang <haiyangz@exchange.microsoft.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH net-next,4/4] hv_netvsc: Update netvsc Document for UDP hash level setting |
| Date | 2017-08-22 00:00 +0200 |
| Message-ID | <uh2TL-1kS-7@gated-at.bofh.it> (permalink) |
| References | <uh2TL-1kS-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Haiyang Zhang <haiyangz@microsoft.com> Update Documentation/networking/netvsc.txt for UDP hash level setting and related info. Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> --- Documentation/networking/netvsc.txt | 22 +++++++++++++++++----- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/Documentation/networking/netvsc.txt b/Documentation/networking/netvsc.txt index 4ddb4e4..fa8d863 100644 --- a/Documentation/networking/netvsc.txt +++ b/Documentation/networking/netvsc.txt @@ -21,11 +21,23 @@ Features -------------------- Hyper-V supports receive side scaling. For TCP, packets are distributed among available queues based on IP address and port - number. Current versions of Hyper-V host, only distribute UDP - packets based on the IP source and destination address. - The port number is not used as part of the hash value for UDP. - Fragmented IP packets are not distributed between queues; - all fragmented packets arrive on the first channel. + number. + + For UDP, we can switch UDP hash level between L3 and L4 by ethtool + command. UDP over IPv4 and v6 can be set differently. The default + hash level is L4. We currently only allow switching TX hash level + from within the guests. + + On Azure, fragmented UDP packets have high loss rate with L4 + hashing. Using L3 hashing is recommended in this case. + + For example, for UDP over IPv4 on eth0: + To include UDP port numbers in hasing: + ethtool -N eth0 rx-flow-hash udp4 sdfn + To exclude UDP port numbers in hasing: + ethtool -N eth0 rx-flow-hash udp4 sd + To show UDP hash level: + ethtool -n eth0 rx-flow-hash udp4 Generic Receive Offload, aka GRO -------------------------------- -- 1.7.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH net-next,1/4] hv_netvsc: Clean up unused parameter from netvsc_get_hash() Haiyang Zhang <haiyangz@exchange.microsoft.com> - 2017-08-22 00:00 +0200 [PATCH net-next,4/4] hv_netvsc: Update netvsc Document for UDP hash level setting Haiyang Zhang <haiyangz@exchange.microsoft.com> - 2017-08-22 00:00 +0200 [PATCH net-next,2/4] hv_netvsc: Clean up unused parameter from netvsc_get_rss_hash_opts() Haiyang Zhang <haiyangz@exchange.microsoft.com> - 2017-08-22 00:00 +0200 [PATCH net-next,3/4] hv_netvsc: Add ethtool handler to set and get UDP hash levels Haiyang Zhang <haiyangz@exchange.microsoft.com> - 2017-08-22 00:00 +0200 Re: [PATCH net-next,1/4] hv_netvsc: Clean up unused parameter from netvsc_get_hash() David Miller <davem@davemloft.net> - 2017-08-22 01:20 +0200
csiph-web