Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1077721ybm; Tue, 21 May 2019 08:18:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+b/J7bMIWtO7jUdt9949zyGKq5Ls+ZAE/UxAMCnDizho6cvMAwrXvMRzO6Zpuh1XvKMNR X-Received: by 2002:a63:4c54:: with SMTP id m20mr83321858pgl.316.1558451898391; Tue, 21 May 2019 08:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558451898; cv=none; d=google.com; s=arc-20160816; b=pV5W8oW2KvjvFUWRlH85PpLvxMH88nX8Ey/6rrF/n5keaPw19aJpvFx9InIkicxQo4 9FRqX5pK1FjWZNLNlWlrjuo3mNPbCfe5Q2WjMAuHgdzJ9PfClOwdFEWLz6H1u/oijFMT 7ZyqV72hbLmJaJjozld4L2C5e97ROReWBB3iaMy7S/y4H7qOBIeOV8JIyrz4uoXONYfu LzplDI6U0L/0Q6DwiFjNaKe2iNHMiL7cFpDX9RCzq1h5827Rdk7KPy1HsntGI/UmJIZh 5f31f+84aD/iaI5YUeFtpsJMwyU2wtTOo3cnkV0PLzyx8sgHfkPbBG5fbGP873FhwaWI u64Q== 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=uFkjMBVHsT89GEGZ1JP/TMSWtgwYswlYM/yfTtFP+eQ=; b=eELZLjbAdWl25HJPa0csi2tHd+RUOCGDSIemR7nwguzI8l6ZPYbEL+bUAHL4CEc9DR LbE/PpIQuiAFsFYW11GEOhVPSd1Z2YvzxsLQYrWwMBU/eHt7sRPzaXllTfphUgNGFd9w n22Ry9o47h2jicLw72vv0qOMRySoUyqauq5TbHRQb/h5G9B+eoctsb9FY7edXvcj8evU mEgKxY9Vkk6DKzfxdZiVxPjIPZ/57hkm1fsvCivQ6G1wA8/fmuwAQYUDhgYVDemwCAfT 2/BbppGb0qqN+d+uh9iY7KQ/ADaJ6pActHv0YR2yklm/+Kb/r8tiLG3C4sOkCD2Web8k 0RJg== 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 m189si23658676pfm.17.2019.05.21.08.18.02; Tue, 21 May 2019 08:18:18 -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 S1728678AbfEUPPl (ORCPT + 99 others); Tue, 21 May 2019 11:15:41 -0400 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:36455 "EHLO caffeine.csclub.uwaterloo.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727969AbfEUPPl (ORCPT ); Tue, 21 May 2019 11:15:41 -0400 Received: by caffeine.csclub.uwaterloo.ca (Postfix, from userid 20367) id C7A46460279; Tue, 21 May 2019 11:15:37 -0400 (EDT) Date: Tue, 21 May 2019 11:15:37 -0400 To: Alexander Duyck Cc: Jeff Kirsher , LKML , Netdev , intel-wired-lan Subject: Re: [Intel-wired-lan] i40e X722 RSS problem with NAT-Traversal IPsec packets Message-ID: <20190521151537.xga4aiq3gjtiif4j@csclub.uwaterloo.ca> References: <20190513165547.alkkgcsdelaznw6v@csclub.uwaterloo.ca> <20190514163443.glfjva3ofqcy7lbg@csclub.uwaterloo.ca> <20190516183407.qswotwyjwtjqfdqm@csclub.uwaterloo.ca> <20190516183705.e4zflbli7oujlbek@csclub.uwaterloo.ca> <20190517172317.amopafirjfizlgej@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 17, 2019 at 03:20:02PM -0700, Alexander Duyck wrote: > I was hoping it would work too. It seemed like it should have been the > answer since it definitely didn't seem right. Now it has me wondering > about some of the other code in the driver. > > By any chance have you run anything like DPDK on any of the X722 > interfaces on this system recently? I ask because it occurs to me that > if you had and it loaded something like a custom parsing profile it > could cause issues similar to this. I have never used DPDK on anything. I was hoping never to do so. :) This system has so far booted Debian (with a 4.19 kernel) and our own OS (which has a 4.9 kernel). > A debugging step you might try would be to revert back to my earlier > patch that only displayed the input mask instead of changing it. Once > you have done that you could look at doing a full power cycle on the > system by either physically disconnecting the power, or using the > power switch on the power supply itself if one is available. It is > necessary to disconnect the motherboard/NIC from power in order to > fully clear the global state stored in the device as it is retained > when the system is in standby. > > What I want to verify is if the input mask that we have ran into is > the natural power-on input mask of if that is something that was > overridden by something else. The mask change I made should be reset > if the system loses power, and then it will either default back to the > value with the 6's if that is it's natural state, or it will match > what I had if it was not. > > Other than that I really can't think up too much else. I suppose there > is the possibility of the NVM either setting up a DCB setting or > HREGION register causing an override that is limiting the queues to 1. > However, the likelihood of that should be really low. Here is the register dump after a full power off: 40e: Intel(R) Ethernet Connection XL710 Network Driver - version 2.1.7-k i40e: Copyright (c) 2013 - 2014 Intel Corporation. i40e 0000:3d:00.0: fw 3.10.52896 api 1.6 nvm 4.00 0x80001577 1.1767.0 i40e 0000:3d:00.0: The driver for the device detected a newer version of the NVM image than expected. Please install the most recent version of the network driver. i40e 0000:3d:00.0: MAC address: a4:bf:01:4e:0c:87 i40e 0000:3d:00.0: flow_type: 63 input_mask:0x0000000000004000 i40e 0000:3d:00.0: flow_type: 46 input_mask:0x0007fff800000000 i40e 0000:3d:00.0: flow_type: 45 input_mask:0x0007fff800000000 i40e 0000:3d:00.0: flow_type: 44 input_mask:0x0007ffff80000000 i40e 0000:3d:00.0: flow_type: 43 input_mask:0x0007fffe00000000 i40e 0000:3d:00.0: flow_type: 42 input_mask:0x0007fffe00000000 i40e 0000:3d:00.0: flow_type: 41 input_mask:0x0007fffe00000000 i40e 0000:3d:00.0: flow_type: 40 input_mask:0x0007fffe00000000 i40e 0000:3d:00.0: flow_type: 39 input_mask:0x0007fffe00000000 i40e 0000:3d:00.0: flow_type: 36 input_mask:0x0006060000000000 i40e 0000:3d:00.0: flow_type: 35 input_mask:0x0006060000000000 i40e 0000:3d:00.0: flow_type: 34 input_mask:0x0006060780000000 i40e 0000:3d:00.0: flow_type: 33 input_mask:0x0006060600000000 i40e 0000:3d:00.0: flow_type: 32 input_mask:0x0006060600000000 i40e 0000:3d:00.0: flow_type: 31 input_mask:0x0006060600000000 i40e 0000:3d:00.0: flow_type: 30 input_mask:0x0006060600000000 i40e 0000:3d:00.0: flow_type: 29 input_mask:0x0006060600000000 i40e 0000:3d:00.0: Features: PF-id[0] VSIs: 34 QP: 12 TXQ: 13 RSS VxLAN Geneve VEPA i40e 0000:3d:00.1: fw 3.10.52896 api 1.6 nvm 4.00 0x80001577 1.1767.0 i40e 0000:3d:00.1: The driver for the device detected a newer version of the NVM image than expected. Please install the most recent version of the network driver. i40e 0000:3d:00.1: MAC address: a4:bf:01:4e:0c:88 i40e 0000:3d:00.1: flow_type: 63 input_mask:0x0000000000004000 i40e 0000:3d:00.1: flow_type: 46 input_mask:0x0007fff800000000 i40e 0000:3d:00.1: flow_type: 45 input_mask:0x0007fff800000000 i40e 0000:3d:00.1: flow_type: 44 input_mask:0x0007ffff80000000 i40e 0000:3d:00.1: flow_type: 43 input_mask:0x0007fffe00000000 i40e 0000:3d:00.1: flow_type: 42 input_mask:0x0007fffe00000000 i40e 0000:3d:00.1: flow_type: 41 input_mask:0x0007fffe00000000 i40e 0000:3d:00.1: flow_type: 40 input_mask:0x0007fffe00000000 i40e 0000:3d:00.1: flow_type: 39 input_mask:0x0007fffe00000000 i40e 0000:3d:00.1: flow_type: 36 input_mask:0x0006060000000000 i40e 0000:3d:00.1: flow_type: 35 input_mask:0x0006060000000000 i40e 0000:3d:00.1: flow_type: 34 input_mask:0x0006060780000000 i40e 0000:3d:00.1: flow_type: 33 input_mask:0x0006060600000000 i40e 0000:3d:00.1: flow_type: 32 input_mask:0x0006060600000000 i40e 0000:3d:00.1: flow_type: 31 input_mask:0x0006060600000000 i40e 0000:3d:00.1: flow_type: 30 input_mask:0x0006060600000000 i40e 0000:3d:00.1: flow_type: 29 input_mask:0x0006060600000000 i40e 0000:3d:00.1: Features: PF-id[1] VSIs: 34 QP: 12 TXQ: 13 RSS VxLAN Geneve VEPA i40e 0000:3d:00.1 eth2: NIC Link is Up, 1000 Mbps Full Duplex, Flow Control: None Pretty sure that is identical to before. If I dump the registers after doing the update I see this (just did a reboot this time, not a power cycle): i40e: Intel(R) Ethernet Connection XL710 Network Driver - version 2.1.7-k i40e: Copyright (c) 2013 - 2014 Intel Corporation. i40e 0000:3d:00.0: fw 3.10.52896 api 1.6 nvm 4.00 0x80001577 1.1767.0 i40e 0000:3d:00.0: The driver for the device detected a newer version of the NVM image than expected. Please install the most recent version of the network driver. i40e 0000:3d:00.0: MAC address: a4:bf:01:4e:0c:87 i40e 0000:3d:00.0: flow_type: 63 input_mask:0x0000000000004000 i40e 0000:3d:00.0: flow_type: 46 input_mask:0x0007fff800000000 i40e 0000:3d:00.0: flow_type: 45 input_mask:0x0007fff800000000 i40e 0000:3d:00.0: flow_type: 44 input_mask:0x0007ffff80000000 i40e 0000:3d:00.0: flow_type: 43 input_mask:0x0007fffe00000000 i40e 0000:3d:00.0: flow_type: 42 input_mask:0x0007fffe00000000 i40e 0000:3d:00.0: flow_type: 41 input_mask:0x0007fffe00000000 i40e 0000:3d:00.0: flow_type: 40 input_mask:0x0007fffe00000000 i40e 0000:3d:00.0: flow_type: 39 input_mask:0x0007fffe00000000 i40e 0000:3d:00.0: flow_type: 36 input_mask:0x0006060000000000 i40e 0000:3d:00.0: flow_type: 35 input_mask:0x0006060000000000 i40e 0000:3d:00.0: flow_type: 34 input_mask:0x0006060780000000 i40e 0000:3d:00.0: flow_type: 33 input_mask:0x0006060600000000 i40e 0000:3d:00.0: flow_type: 32 input_mask:0x0006060600000000 i40e 0000:3d:00.0: flow_type: 31 input_mask:0x0006060600000000 i40e 0000:3d:00.0: flow_type: 30 input_mask:0x0006060600000000 i40e 0000:3d:00.0: flow_type: 29 input_mask:0x0006060600000000 i40e 0000:3d:00.0: flow type: 36 update input mask from:0x0006060000000000, to:0x0001801800000000 i40e 0000:3d:00.0: flow type: 35 update input mask from:0x0006060000000000, to:0x0001801800000000 i40e 0000:3d:00.0: flow type: 34 update input mask from:0x0006060780000000, to:0x0001801f80000000 i40e 0000:3d:00.0: flow type: 33 update input mask from:0x0006060600000000, to:0x0001801e00000000 i40e 0000:3d:00.0: flow type: 32 update input mask from:0x0006060600000000, to:0x0001801e00000000 i40e 0000:3d:00.0: flow type: 31 update input mask from:0x0006060600000000, to:0x0001801e00000000 i40e 0000:3d:00.0: flow type: 30 update input mask from:0x0006060600000000, to:0x0001801e00000000 i40e 0000:3d:00.0: flow type: 29 update input mask from:0x0006060600000000, to:0x0001801e00000000 i40e 0000:3d:00.0: flow_type after update: 63 input_mask:0x0000000000004000 i40e 0000:3d:00.0: flow_type after update: 46 input_mask:0x0007fff800000000 i40e 0000:3d:00.0: flow_type after update: 45 input_mask:0x0007fff800000000 i40e 0000:3d:00.0: flow_type after update: 44 input_mask:0x0007ffff80000000 i40e 0000:3d:00.0: flow_type after update: 43 input_mask:0x0007fffe00000000 i40e 0000:3d:00.0: flow_type after update: 42 input_mask:0x0007fffe00000000 i40e 0000:3d:00.0: flow_type after update: 41 input_mask:0x0007fffe00000000 i40e 0000:3d:00.0: flow_type after update: 40 input_mask:0x0007fffe00000000 i40e 0000:3d:00.0: flow_type after update: 39 input_mask:0x0007fffe00000000 i40e 0000:3d:00.0: flow_type after update: 36 input_mask:0x0001801800000000 i40e 0000:3d:00.0: flow_type after update: 35 input_mask:0x0001801800000000 i40e 0000:3d:00.0: flow_type after update: 34 input_mask:0x0001801f80000000 i40e 0000:3d:00.0: flow_type after update: 33 input_mask:0x0001801e00000000 i40e 0000:3d:00.0: flow_type after update: 32 input_mask:0x0001801e00000000 i40e 0000:3d:00.0: flow_type after update: 31 input_mask:0x0001801e00000000 i40e 0000:3d:00.0: flow_type after update: 30 input_mask:0x0001801e00000000 i40e 0000:3d:00.0: flow_type after update: 29 input_mask:0x0001801e00000000 i40e 0000:3d:00.0: Features: PF-id[0] VSIs: 34 QP: 12 TXQ: 13 RSS VxLAN Geneve VEPA So at least it appears the update did apply. -- Len Sorensen