Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1185555yba; Thu, 16 May 2019 16:10:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFcGjFvzBSRFN2+04EiPs//Tc4Jm5hw2IKjE7MbrdKFs6Z4ymHv447wE+4O1Ze7EITI7U+ X-Received: by 2002:a17:902:a988:: with SMTP id bh8mr52966804plb.243.1558048240876; Thu, 16 May 2019 16:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558048240; cv=none; d=google.com; s=arc-20160816; b=usSiOykYoZrnc+66w5ROQFGIxNaALiPwGnjZ8BWG51yywUc699FbpQGrCcQSokVSqv /KBUsnkENC1k9rZedcwubGu0ooIKzqE8F5R+x2mgRZ1l9Lgu5CJx7bAFYNlXvh1ZnD1+ 6Xl+uuqiNXlJVU7aThk4idPk4GtZoWtaEEemdY/icy7cBkTyOkfu3yZ/o/21OcZWGt+3 WsBbQT2PvucZczImvTMCx/71Myvk+OqNigbv6friWli3R2L2PO/dfJ/W+g8LvqFF3QR5 1LU988lpAh/v5RNCIsSCzKYvK52tvL44VOIokryldSliIcwCeywGwkQuZSsMtB5EPHQt xrVw== 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=G8EaKsf1VEZ3EZcSbOZyVMlRl6B3c1ARN0VTd95TVCA=; b=IRwaMZcdo6h3D1LByfz6yEyvxXhg0+hr4ZpBFFdTrol1TK9RUAlJplUTn0Z+J9IUrg czr3aPAqkK9ef+aRTsEbGI2jTrEevVOKJads4Oka5Xd8Y5Qyc8aYNHG2wK3PFi6IfIbs NNUszWqpZ0cHFiSsWZSbx+6r1V04qbbXMjVL+q7dUN7LwfugcPguH32FRZKZ4iBQuuo/ 5J2GIgGOOxW1SvzdlXnMXbq944mNExfGz1bLeA36xV+YMsWm00mwk9Go2A9djKLBJFaz eJ6DnXnBuM5xgLCQHNj2EWQUIKbDAjrO6S4V/5REvST2LYitOd+YuTLeXvMfVTBc5eTy b/Kw== 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 b6si6497883pgk.279.2019.05.16.16.10.23; Thu, 16 May 2019 16:10:40 -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 S1728877AbfEPSeL (ORCPT + 99 others); Thu, 16 May 2019 14:34:11 -0400 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:39203 "EHLO caffeine.csclub.uwaterloo.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726357AbfEPSeL (ORCPT ); Thu, 16 May 2019 14:34:11 -0400 Received: by caffeine.csclub.uwaterloo.ca (Postfix, from userid 20367) id 1C77846380B; Thu, 16 May 2019 14:34:08 -0400 (EDT) Date: Thu, 16 May 2019 14:34:08 -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: <20190516183407.qswotwyjwtjqfdqm@csclub.uwaterloo.ca> References: <20190502175513.ei7kjug3az6fe753@csclub.uwaterloo.ca> <20190502185250.vlsainugtn6zjd6p@csclub.uwaterloo.ca> <20190503151421.akvmu77lghxcouni@csclub.uwaterloo.ca> <20190503205935.bg45rsso5jjj3gnx@csclub.uwaterloo.ca> <20190513165547.alkkgcsdelaznw6v@csclub.uwaterloo.ca> <20190514163443.glfjva3ofqcy7lbg@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 Thu, May 16, 2019 at 10:10:55AM -0700, Alexander Duyck wrote: > So I was sent a link to the datasheet for the part and I have a > working theory that what we may be seeing is a problem in the firmware > for the part. > > Can you try applying the attached patch and send the output from the > dmesg? Specifically I would want anything with the name "i40e" in it. > What I am looking for is something like the following: > [ 294.383416] i40e 0000:81:00.1: fw 5.0.40043 api 1.5 nvm 5.04 0x800024cd 0.0.0 > [ 294.675039] i40e 0000:81:00.1: MAC address: 68:05:ca:37:c7:99 > [ 294.685941] i40e 0000:81:00.1: flow_type: 63 input_mask:0x0000000000004000 > [ 294.686056] i40e 0000:81:00.1: flow_type: 46 input_mask:0x0007fff800000000 > [ 294.686170] i40e 0000:81:00.1: flow_type: 45 input_mask:0x0007fff800000000 > [ 294.686284] i40e 0000:81:00.1: flow_type: 44 input_mask:0x0007ffff80000000 > [ 294.686399] i40e 0000:81:00.1: flow_type: 43 input_mask:0x0007fffe00000000 > [ 294.686513] i40e 0000:81:00.1: flow_type: 41 input_mask:0x0007fffe00000000 > [ 294.686628] i40e 0000:81:00.1: flow_type: 36 input_mask:0x0001801800000000 > [ 294.686743] i40e 0000:81:00.1: flow_type: 35 input_mask:0x0001801800000000 > [ 294.686858] i40e 0000:81:00.1: flow_type: 34 input_mask:0x0001801f80000000 > [ 294.686973] i40e 0000:81:00.1: flow_type: 33 input_mask:0x0001801e00000000 > [ 294.687087] i40e 0000:81:00.1: flow_type: 31 input_mask:0x0001801e00000000 > [ 294.691906] i40e 0000:81:00.1 ens5f1: renamed from eth0 > [ 294.711173] i40e 0000:81:00.1 ens5f1: NIC Link is Up, 10 Gbps Full > Duplex, Flow Control: None > [ 294.759061] i40e 0000:81:00.1: PCI-Express: Speed 8.0GT/s Width x8 > [ 294.863363] i40e 0000:81:00.1: Features: PF-id[1] VFs: 32 VSIs: 34 > QP: 32 RSS FD_ATR FD_SB NTUPLE VxLAN Geneve PTP VEPA > > With that we can tell what flow types are enabled, and what input > fields are enabled for each flow type. My suspicion is that we may see > the two new types added to X722 for UDP, 29 and 30, may not match type > 31 which is the current flow type supported on the X710. > > I have included a copy inline below in case the patch is stripped, > however I suspect it will not apply cleanly as the mail client I am > using usually ends up causing white space mangling by replacing tabs > with spaces. > > diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c > b/drivers/net/ethernet/intel/i40e/i40e_main.c > index 65c2b9d2652b..0c93859f8184 100644 > --- a/drivers/net/ethernet/intel/i40e/i40e_main.c > +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c > @@ -10998,6 +10998,15 @@ static int i40e_pf_config_rss(struct i40e_pf *pf) > ((u64)i40e_read_rx_ctl(hw, I40E_PFQF_HENA(1)) << 32); > hena |= i40e_pf_get_default_rss_hena(pf); > > + for (ret = 64; ret--;) { > + if (!(hena & (1ull << ret))) > + continue; > + dev_info(&pf->pdev->dev, "flow_type: %d > input_mask:0x%08x%08x\n", > + ret, > + i40e_read_rx_ctl(hw, I40E_GLQF_HASH_INSET(1, ret)), > + i40e_read_rx_ctl(hw, I40E_GLQF_HASH_INSET(0, ret))); > + } > + > i40e_write_rx_ctl(hw, I40E_PFQF_HENA(0), (u32)hena); > i40e_write_rx_ctl(hw, I40E_PFQF_HENA(1), (u32)(hena >> 32)); > i40e: Debug hash inputs Here is what I see: 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: 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 i40e_ioctl: power down: eth1 i40e_ioctl: power down: eth2 -- Len Sorensen