[PATCH net-next,0/4] hv_netvsc: Ethtool handler to change UDP hash levels

From: Haiyang Zhang
Date: Mon Aug 21 2017 - 22:23:53 EST


From: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>

The patch set adds 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.

The ethtool callback function is triggered by command line, and
update the per device variables of the hash level.

On Azure, fragmented UDP packets is not yet supported with L4
hashing, and may have high packet loss rate. Using L3 hashing is
recommended in this case. This ethtool option allows a user to
make this selection.

Haiyang Zhang (4):
hv_netvsc: Clean up unused parameter from netvsc_get_hash()
hv_netvsc: Clean up unused parameter from netvsc_get_rss_hash_opts()
hv_netvsc: Add ethtool handler to set and get UDP hash levels
hv_netvsc: Update netvsc Document for UDP hash level setting

Documentation/networking/netvsc.txt | 22 ++++++++--
drivers/net/hyperv/hyperv_net.h | 2 +
drivers/net/hyperv/netvsc_drv.c | 77 +++++++++++++++++++++++++++++++----
3 files changed, 88 insertions(+), 13 deletions(-)