From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Neftin, Sasha" Subject: Re: [Intel-wired-lan] NFS over NAT causes e1000e transmit hangs Date: Wed, 19 Apr 2017 11:52:06 +0300 Message-ID: References: <42af0e78-3107-1605-f8e1-d73a8c441ff0@gmail.com> <1492542204.10587.138.camel@edumazet-glaptop3.roam.corp.google.com> <9fa24846-3a2d-26d3-2963-f5e6ec6808a5@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org To: Florian Fainelli , Eric Dumazet Return-path: Received: from mga04.intel.com ([192.55.52.120]:24200 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761284AbdDSIwI (ORCPT ); Wed, 19 Apr 2017 04:52:08 -0400 In-Reply-To: <9fa24846-3a2d-26d3-2963-f5e6ec6808a5@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On 4/18/2017 22:05, Florian Fainelli wrote: > On 04/18/2017 12:03 PM, Eric Dumazet wrote: >> On Tue, 2017-04-18 at 11:18 -0700, Florian Fainelli wrote: >>> Hi, >>> >>> I am using NFS over a NAT with two e1000e adapters and with eth1 being >>> the LAN interface and eth0 the WAN interface. The kernel is Ubuntu's >>> 16.10 kernel: 4.8.0-46-generic. The device doing NAT over NFS is just >>> mounting a remote folder and doing normal execution/file accesses. It's >>> enough to untar a file from this device onto a NFS share to expose the >>> problem. >>> >>> The transmit hangs look like the ones below, doing a rmmod/insmod does >>> not help eliminated the problem, nor does a power cycle. Stopping the >>> NFS over NAT definitively does let the adapter recover. >> Is this NFS over TCP or UDP ? > This is NFS over TCP mounted with the following: > > type nfs > (rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=2049,timeo=70,retrans=3,sec=sys,local_lock=none,addr=X.X.X.X) > > Thanks Eric! Please, try disable TCP segmentation offload: ethtool -K tso off. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neftin, Sasha Date: Wed, 19 Apr 2017 11:52:06 +0300 Subject: [Intel-wired-lan] NFS over NAT causes e1000e transmit hangs In-Reply-To: <9fa24846-3a2d-26d3-2963-f5e6ec6808a5@gmail.com> References: <42af0e78-3107-1605-f8e1-d73a8c441ff0@gmail.com> <1492542204.10587.138.camel@edumazet-glaptop3.roam.corp.google.com> <9fa24846-3a2d-26d3-2963-f5e6ec6808a5@gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: intel-wired-lan@osuosl.org List-ID: On 4/18/2017 22:05, Florian Fainelli wrote: > On 04/18/2017 12:03 PM, Eric Dumazet wrote: >> On Tue, 2017-04-18 at 11:18 -0700, Florian Fainelli wrote: >>> Hi, >>> >>> I am using NFS over a NAT with two e1000e adapters and with eth1 being >>> the LAN interface and eth0 the WAN interface. The kernel is Ubuntu's >>> 16.10 kernel: 4.8.0-46-generic. The device doing NAT over NFS is just >>> mounting a remote folder and doing normal execution/file accesses. It's >>> enough to untar a file from this device onto a NFS share to expose the >>> problem. >>> >>> The transmit hangs look like the ones below, doing a rmmod/insmod does >>> not help eliminated the problem, nor does a power cycle. Stopping the >>> NFS over NAT definitively does let the adapter recover. >> Is this NFS over TCP or UDP ? > This is NFS over TCP mounted with the following: > > type nfs > (rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=2049,timeo=70,retrans=3,sec=sys,local_lock=none,addr=X.X.X.X) > > Thanks Eric! Please, try disable TCP segmentation offload: ethtool -K tso off.