From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB079C28CC0 for ; Fri, 31 May 2019 00:15:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9CE50262F7 for ; Fri, 31 May 2019 00:15:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726131AbfEaAP0 (ORCPT ); Thu, 30 May 2019 20:15:26 -0400 Received: from fieldses.org ([173.255.197.46]:41360 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726045AbfEaAP0 (ORCPT ); Thu, 30 May 2019 20:15:26 -0400 Received: by fieldses.org (Postfix, from userid 2815) id 209C32011; Thu, 30 May 2019 20:15:26 -0400 (EDT) Date: Thu, 30 May 2019 20:15:26 -0400 To: Rick Macklem Cc: Olga Kornievskaia , Tom Talpey , NeilBrown , Chuck Lever , Schumaker Anna , Trond Myklebust , linux-nfs Subject: Re: [PATCH 0/9] Multiple network connections for a single NFS mount. Message-ID: <20190531001526.GB24802@fieldses.org> References: <155917564898.3988.6096672032831115016.stgit@noble.brown> <1df23ebc-ffe5-1a57-c40a-d5e9a45c8498@talpey.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, May 30, 2019 at 11:53:19PM +0000, Rick Macklem wrote: > The FreeBSD DRC code for NFS over TCP expects the retry to be from a > different port# (due to a new connection re: the above) for NFSv4.0. > For NFSv3, my best recollection is that it doesn't care what the > source port# is. (It basically uses a hash on the RPC request > excluding TCP/IP header to recognize possible duplicates.) > > I don't know what other NFS servers choose to do w.r.t. the DRC for > NFS over TCP, however for some reason I thought that the Linux knfsd > only used a DRC for UDP? (Someone please clarify this.) The knfsd DRC is used for TCP as well as UDP. It does take into account the source port. I don't think we do any TCP-specific optimizations though I agree that they sound like a good idea. --b.