Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1008830yba; Fri, 3 May 2019 14:19:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8bVM0HZcmOryBtGsoj1TO+vnBgOy1OJ0fBiKzwd36EPrhd1XU8/zvTEtj2iu0RUoFnBU/ X-Received: by 2002:a63:9541:: with SMTP id t1mr9405034pgn.97.1556918362558; Fri, 03 May 2019 14:19:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556918362; cv=none; d=google.com; s=arc-20160816; b=tZwshILAfow6ZofUJD+lMXAlg6kDAzbcx/y8nZbWl0N2FNxSFPTRgJp6sUrVlD29eW srQyo2U7uTULV+xQS1RQrNUReslfB+A1POBVmVlfzvb0YlS68J+5kSA0epOuhaKXGMaa WJ3kD732sSFJdpxVnqYtKjlB+eXo4MoQnjIi6DzUOhXqfDWRKdzF6pDI0yYlpg1tIQ0d krCq3QZtvNVBhfOBHlh15GTOFjcsT1ITjdsvQfVAFbHwroBoQdjDTfB32QFBwd8kXK1m j9EREIwXLuj6J4oNk1M8PekKJRhB49+cI3vluht8UrfpN2VX/le0OQu2r/hUuj0zRXKE fgEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:from:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date; bh=XRFZYeRQL1Nh49R3ipCo5xPMlLRQrsehjfA2hJKm4sI=; b=1DvsgF/I8QHkmhMxusl3yUarhykpeUM8KYUQTKVSoZTA/E3Q9RAp7yAReu5HmRBOEE KDkEbb5GxqDMnBrIRdxMvidsdSqBjwPlyv2NNFH9+roLkrFMhkE0Jj8QQnjPsGso60KP OE9r6mTyDveZdiEG8/GPCxUx2kHlASjS3oLTnib3CooBFRIRvV0GuxEV6nRstuL0BP4T V6Q1BKnfpdOY8chRRa6TpMHBy3jtszwE7HavhFNzna93ZDlBupBJUYIpu8AYnAHhjRdL 78PFgxYznbGvT2b1JSTDAI2nZWcLPzeW8jEe3uFCO30ii6FuMA/WghGFAlt/HjNnMNE/ KjpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=csclub.uwaterloo.ca Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d31si4395311pla.89.2019.05.03.14.19.07; Fri, 03 May 2019 14:19:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=csclub.uwaterloo.ca Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727129AbfECU7i (ORCPT + 99 others); Fri, 3 May 2019 16:59:38 -0400 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:42067 "EHLO caffeine.csclub.uwaterloo.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726022AbfECU7i (ORCPT ); Fri, 3 May 2019 16:59:38 -0400 Received: by caffeine.csclub.uwaterloo.ca (Postfix, from userid 20367) id 12999461D3A; Fri, 3 May 2019 16:59:36 -0400 (EDT) Date: Fri, 3 May 2019 16:59:35 -0400 To: Alexander Duyck Cc: LKML , Netdev , intel-wired-lan Subject: Re: [Intel-wired-lan] i40e X722 RSS problem with NAT-Traversal IPsec packets Message-ID: <20190503205935.bg45rsso5jjj3gnx@csclub.uwaterloo.ca> References: <20190502151140.gf5ugodqamtdd5tz@csclub.uwaterloo.ca> <20190502171636.3yquioe3gcwsxlus@csclub.uwaterloo.ca> <20190502175513.ei7kjug3az6fe753@csclub.uwaterloo.ca> <20190502185250.vlsainugtn6zjd6p@csclub.uwaterloo.ca> <20190503151421.akvmu77lghxcouni@csclub.uwaterloo.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 03, 2019 at 10:19:47AM -0700, Alexander Duyck wrote: > The TCP flow could be bypassing RSS and may be using ATR to decide > where the Rx packets are processed. Now that I think about it there is > a possibility that ATR could be interfering with the queue selection. > You might try disabling it by running: > ethtool --set-priv-flags flow-director-atr off Hmm, I thought I had killed ATR (I certainly meant to), but it appears I had not. I will experiment to see if that makes a difference. > The problem is RSS can be bypassed for queue selection by things like > ATR which I called out above. One possibility is that if the > encryption you were using was leaving the skb->encapsulation flag set, > and the NIC might have misidentified the packets as something it could > parse and set up a bunch of rules that were rerouting incoming traffic > based on outgoing traffic. Disabling the feature should switch off > that behavior if that is in fact the case. > > You are probably fine using 40 queues. That isn't an even power of two > so it would actually improve the entropy a bit since the lower bits > don't have a many:1 mapping to queues. I will let you know Monday how my tests go with atr off. I really thought that was off already since it was supposed to be. We always try to turn that off because it does not work well. -- Len Sorensen