From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754584AbdHVCYB (ORCPT ); Mon, 21 Aug 2017 22:24:01 -0400 Received: from a2nlsmtp01-05.prod.iad2.secureserver.net ([198.71.225.49]:35076 "EHLO a2nlsmtp01-05.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754514AbdHVCX7 (ORCPT ); Mon, 21 Aug 2017 22:23:59 -0400 x-originating-ip: 107.180.71.197 From: Haiyang Zhang To: davem@davemloft.net, netdev@vger.kernel.org Cc: haiyangz@microsoft.com, kys@microsoft.com, olaf@aepfle.de, vkuznets@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH net-next,4/4] hv_netvsc: Update netvsc Document for UDP hash level setting Date: Mon, 21 Aug 2017 19:22:40 -0700 Message-Id: <1503368560-14331-5-git-send-email-haiyangz@exchange.microsoft.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1503368560-14331-1-git-send-email-haiyangz@exchange.microsoft.com> References: <1503368560-14331-1-git-send-email-haiyangz@exchange.microsoft.com> Reply-To: haiyangz@microsoft.com X-CMAE-Envelope: MS4wfKmY1f1V7SsJqfW3itgoEUF0WdLjcplTw3cY8MjG8SDAf+JZ/MFUjJNzwHTPuJp/PAGQtptCI47itwFxs+Z0sMBaDLD12klfvQiuXGKedQk8KZHzdUHo q+kNwHFv9mUN8b66LiaTkpsRgxShIc3k+zDyvmLy5hgVHehXMb4JMFakcftQHBGTVnSJ7ZM3CVchse/Wo/b/wVMGzSs/MIjHNfd5rjb4IJX5M90Dy97QwEzA o3fObZUIoAo3mPDRzk+vAKnf/r6SbP40ROGNvT5hmyZbfYx0WpWruzjbYCft/ans8s1DLRUZeWzomi1WEo0KjiJqVMj8ceLbSoNwI2MO6hiq8tuMeSzQ7him wkX8f/JbGN5nRFZVxJT+XtNini6JGQ== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Haiyang Zhang Update Documentation/networking/netvsc.txt for UDP hash level setting and related info. Signed-off-by: Haiyang Zhang --- 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