linux_old1/drivers/net/hyperv
Haiyang Zhang 4823eb2f3a hv_netvsc: Add ethtool handler to set and get UDP hash levels
The patch add the functions to 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

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-08-22 14:08:12 -07:00
..
Kconfig
Makefile
hyperv_net.h hv_netvsc: Add ethtool handler to set and get UDP hash levels 2017-08-22 14:08:12 -07:00
netvsc.c vmbus: remove unused vmbus_sendpacket_ctl 2017-08-16 16:27:45 -07:00
netvsc_drv.c hv_netvsc: Add ethtool handler to set and get UDP hash levels 2017-08-22 14:08:12 -07:00
rndis_filter.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-08-09 16:28:45 -07:00