Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7501443yba; Thu, 2 May 2019 10:57:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbnvUkm61pQTgUVz233PqHWF69qYsbdcuoIpuwhldVUsfJkw84HPeWRnE/jJpaVj0yMT3t X-Received: by 2002:a17:902:8b86:: with SMTP id ay6mr5238136plb.4.1556819873844; Thu, 02 May 2019 10:57:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556819873; cv=none; d=google.com; s=arc-20160816; b=RACsxH0Gern76fUCLAz8CVknhOuFBRdEh5EUmWZHkHe62az6GlbGxWVm3vI/cFCodc SBGfzobLu+N6laRDdzt+uWXJfTpL+8c0KZroZLm3jecn7IatPn5F5g6UCf0UwwXZgN5M NWhfKk3i66MCzAoG3sRB4HWFSA4imoPGjOfTlMD/yhYcjOldC4M/d1+2UHDjG04jB9/L +fUZFouJarIqTywoPJfQmJ7YnpIauBcBHHlwYZ/dMNU+hm9hmn7lr7NJwpeRigdhndlk rjO+uC4/JBMKAQGXouQrNbVNQ+xLDZEEv5M9APO0gI6PQ64GfjoMrtSLc9fMyaE39EsP jIDg== 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=UvvaYOAF6wJGATaGOz8g3SBiE+JjmekwpZ2xAjdc7Ec=; b=HCQ5ID4M79xrDs/I9OVbyHe9sXdJNajDjCnqr6elg4Vi+OBcFTVESIsnbyaHCT0ZkU 8vaLJu0ZCVXQL5cIwbP+ef3wFVn+ObRMOAUg2f4vnCKtS6Wno86x6veIYIfRmqL53qas CewMXA0Opu7F5f1AVJ6DjxTBIBnPr/d9FUPL4ckviYB24R9YwjEuRa4Cnn4VheNCpqBy 374WoxEbpvkYYs+2PMPej1xfqYRvp0j0n+9o1Db1wlcI4JDEfrNnkRZjCr/9/JWHNn7C 4X55pMQwfgepAhCVCseSBPF6exFPtoTLNP0/KKwl4W8ztfATVGTilrj5X9pIcjMBlD2T 7ZVw== 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 cj5si40665346plb.76.2019.05.02.10.57.32; Thu, 02 May 2019 10:57:53 -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 S1726387AbfEBRzQ (ORCPT + 99 others); Thu, 2 May 2019 13:55:16 -0400 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:44981 "EHLO caffeine.csclub.uwaterloo.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbfEBRzQ (ORCPT ); Thu, 2 May 2019 13:55:16 -0400 Received: by caffeine.csclub.uwaterloo.ca (Postfix, from userid 20367) id DC830461D3A; Thu, 2 May 2019 13:55:13 -0400 (EDT) Date: Thu, 2 May 2019 13:55:13 -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: <20190502175513.ei7kjug3az6fe753@csclub.uwaterloo.ca> References: <20190501205215.ptoi2czhklte5jbm@csclub.uwaterloo.ca> <20190502151140.gf5ugodqamtdd5tz@csclub.uwaterloo.ca> <20190502171636.3yquioe3gcwsxlus@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 02, 2019 at 10:28:22AM -0700, Alexander Duyck wrote: > The thing is the firmware has to have some idea what it is dealing > with. As far as I know I don't believe port number 4500 is being > auto-flagged as any special type. In the case of the other tunnel > types such as VXLAN, NVGRE, and GENEVE the driver has to set a port > value indicating that the port will receive special handling. If it > isn't added via i40e_udp_tunnel_add then the firmware/hardware > shouldn't know anything about the tunnel. Well that makes some sense. I was wondering why there didn't seem to be an on/off switch for that feature. > It really isn't that unusual of a feature. Many NICs have this > functionality now. In order to support it we usually have to populate > the port values for the device so the internal parser knows to expect > them. > > That is one of the reasons I suggested testing with netperf as I did > below. Basically if we construct all the outer headers the same as > your packet we can see if some specific combination is causing a > parsing issue. I tested the netperf approach on an XL710 and didn't > see any issues, but perhaps the XL722 is doing something differently. > > Thanks. If nothing else it should make it possible to just use > tcpreplay if needed to reproduce the issue. Here is the same packets as before with the link level header included (I forgot to use -XX rather than -X): 13:43:49.081567 54:ee:75:30:f1:e1 > a4:bf:01:4e:0c:87, ethertype IPv4 (0x0800), length 174: (tos 0x0, ttl 64, id 21783, offset 0, flags [DF], proto UDP (17), length 160) 1.99.99.2.4500 > 1.99.99.1.4500: [no cksum] UDP-encap: ESP(spi=0x8de82290,seq=0x6a56), length 132 0x0000: a4bf 014e 0c87 54ee 7530 f1e1 0800 4500 ...N..T.u0....E. 0x0010: 00a0 5517 4000 4011 1c6d 0163 6302 0163 ..U.@.@..m.cc..c 0x0020: 6301 1194 1194 008c 0000 8de8 2290 0000 c..........."... 0x0030: 6a56 72da 0734 52f6 406e 9346 f946 c698 jVr..4R.@n.F.F.. 0x0040: a38c 280c 94da 53e1 91e0 35bf 812a 4500 ..(...S...5..*E. 0x0050: 6003 ca7d 6872 a50b d41a 5c4d 7c22 3fb8 `..}hr....\M|"?. 0x0060: 56d8 2a0f bc3f d3a6 5853 682c 914c c1b1 V.*..?..XSh,.L.. 0x0070: c5c3 94e8 4789 d8b4 4ab4 e5f9 d20a e5ef ....G...J....... 0x0080: de1d 05dd e98a 996b 5c11 6657 b667 6af1 .......k\.fW.gj. 0x0090: 2a97 694b 16de 74e2 f8fe 13a3 d45e e3e9 *.iK..t......^.. 0x00a0: f0b1 b83b 99e3 55cb b40b 5ba8 9c23 ...;..U...[..# 13:43:49.081658 a4:bf:01:4e:0c:87 > 54:ee:75:30:f1:e1, ethertype IPv4 (0x0800), length 174: (tos 0x0, ttl 64, id 44552, offset 0, flags [none], proto UDP (17), length 160) 1.99.99.1.4500 > 1.99.99.2.4500: [no cksum] UDP-encap: ESP(spi=0x1d4ecfdf,seq=0x6a56), length 132 0x0000: 54ee 7530 f1e1 a4bf 014e 0c87 0800 4500 T.u0.....N....E. 0x0010: 00a0 ae08 0000 4011 037c 0163 6301 0163 ......@..|.cc..c 0x0020: 6302 1194 1194 008c 0000 1d4e cfdf 0000 c..........N.... 0x0030: 6a56 28ca 4809 8933 911d f2be 4510 e757 jV(.H..3....E..W 0x0040: 3885 7d26 5238 8c58 38e3 6c07 2f8e 335a 8.}&R8.X8.l./.3Z 0x0050: 6d48 2a72 4619 e8a3 c421 bc54 48b2 6239 mH*rF....!.TH.b9 0x0060: 5e07 7e89 a68e 0161 4e6a 5b6f 8b89 9f53 ^.~....aNj[o...S 0x0070: 4c40 1c6c d159 60f8 68e7 24db 8b21 2ec2 L@.l.Y`.h.$..!.. 0x0080: 4b67 9b83 643b b0ac 6e2d bf4f 1ee1 9508 Kg..d;..n-.O.... 0x0090: d1bd dcd4 74ee e4dc 78d0 578a 5905 1f4d ....t...x.W.Y..M 0x00a0: 74be e643 910b b4d3 f428 8822 e22b t..C.....(.".+ I will try to see what I can do with netperf. -- Len Sorensen