LKML Archive on lore.kernel.org help / color / mirror / Atom feed
From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen) To: Alexander Duyck <alexander.duyck@gmail.com> Cc: LKML <linux-kernel@vger.kernel.org>, Netdev <netdev@vger.kernel.org>, intel-wired-lan <intel-wired-lan@lists.osuosl.org> Subject: Re: [Intel-wired-lan] i40e X722 RSS problem with NAT-Traversal IPsec packets Date: Thu, 2 May 2019 13:55:13 -0400 [thread overview] Message-ID: <20190502175513.ei7kjug3az6fe753@csclub.uwaterloo.ca> (raw) In-Reply-To: <CAKgT0Ufk8LXMb9vVWfvgbjbQFKAuenncf95pfkA0P1t-3+Ni_g@mail.gmail.com> 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
next prev parent reply other threads:[~2019-05-02 17:55 UTC|newest] Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-05-01 20:52 i40e X722 RSS problem with NAT-Traversal IPsec packets Lennart Sorensen 2019-05-01 22:52 ` [Intel-wired-lan] " Alexander Duyck 2019-05-02 15:11 ` Lennart Sorensen 2019-05-02 17:03 ` Alexander Duyck 2019-05-02 17:16 ` Lennart Sorensen 2019-05-02 17:28 ` Alexander Duyck 2019-05-02 17:55 ` Lennart Sorensen [this message] 2019-05-02 18:52 ` Lennart Sorensen 2019-05-02 20:59 ` Alexander Duyck 2019-05-03 15:14 ` Lennart Sorensen 2019-05-03 17:19 ` Alexander Duyck 2019-05-03 20:59 ` Lennart Sorensen 2019-05-13 16:55 ` Lennart Sorensen 2019-05-13 19:04 ` Alexander Duyck 2019-05-14 16:34 ` Lennart Sorensen 2019-05-16 17:10 ` Alexander Duyck 2019-05-16 18:34 ` Lennart Sorensen 2019-05-16 18:37 ` Lennart Sorensen 2019-05-16 23:32 ` Alexander Duyck 2019-05-17 16:42 ` Alexander Duyck 2019-05-17 17:23 ` Lennart Sorensen 2019-05-17 22:20 ` Alexander Duyck 2019-05-21 15:15 ` Lennart Sorensen 2019-05-21 16:51 ` Alexander Duyck 2019-05-21 17:54 ` Lennart Sorensen 2019-05-21 23:22 ` Alexander Duyck 2019-05-22 14:39 ` Lennart Sorensen 2019-06-07 14:39 ` Lennart Sorensen 2019-06-07 19:32 ` Alexander Duyck 2019-06-07 20:49 ` [E1000-devel] " Hisashi T Fujinaka 2019-06-07 22:08 ` Fujinaka, Todd 2019-06-10 19:01 ` Lennart Sorensen 2020-02-07 21:51 ` Lennart Sorensen
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190502175513.ei7kjug3az6fe753@csclub.uwaterloo.ca \ --to=lsorense@csclub.uwaterloo.ca \ --cc=alexander.duyck@gmail.com \ --cc=intel-wired-lan@lists.osuosl.org \ --cc=linux-kernel@vger.kernel.org \ --cc=netdev@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).