netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: tom@herbertland.com
Cc: tgraf@suug.ch, pabeni@redhat.com, pshelar@nicira.com,
	jbenc@redhat.com, netdev@vger.kernel.org, jesse@kernel.org
Subject: Re: [PATCH net-next] lwt: fix rx checksum setting for lwt devices tunneling over ipv6
Date: Tue, 16 Feb 2016 15:53:32 -0500 (EST)	[thread overview]
Message-ID: <20160216.155332.104228217048445468.davem@davemloft.net> (raw)
In-Reply-To: <CALx6S34k2Hz-kBeTZ9brLZDCp1tU9nUMZN6V9zhoqmEU3+TR_A@mail.gmail.com>

From: Tom Herbert <tom@herbertland.com>
Date: Tue, 16 Feb 2016 12:50:23 -0800

> On Feb 16, 2016 12:40 PM, "David Miller" <davem@davemloft.net> wrote:
>>
>> From: Jesse Gross <jesse@kernel.org>
>> Date: Tue, 16 Feb 2016 12:11:57 -0800
>>
>> > On Tue, Feb 16, 2016 at 11:47 AM, David Miller <davem@davemloft.net>
> wrote:
>> >> From: Jesse Gross <jesse@kernel.org>
>> >> Date: Tue, 16 Feb 2016 10:22:38 -0800
>> >>
>> >>> On Thu, Feb 11, 2016 at 2:41 AM, Jiri Benc <jbenc@redhat.com> wrote:
>> >>> There's a bigger problem here, not really related to lightweight
> tunnels or OVS.
>> >>>
>> >>> The VXLAN RFC says (referring to the UDP checksum and not specific to
> IPv4/v6):
>> >>> "It SHOULD be transmitted as zero. When a packet is received with a
>> >>> UDP checksum of zero, it MUST be accepted for decapsulation."
>> >>>
>> >>> We can debate whether this is correct or whether it conflicts with RFC
>> >>> 2460 but this is what essentially everyone is going to implement. With
>> >>> the default settings of the flags in IPv6, we are violating both
>> >>> statements. With the second one in particular, the result is that
>> >>> Linux will not be able to communicate with any non-Linux VXLAN
>> >>> endpoint over IPv6 with default settings.
>> >>
>> >> I do not see any such conflict here.
>> >>
>> >> It's a SHOULD, therefore a recommendation.  Likely they thought this
>> >> would improve performance, and ironically it has the opposite effect.
>> >>
>> >> The text of the VXLAN RFC does not say that the checksum MUST be sent
>> >> as zero, and it also does not say that receiving a non-zero checksum
>> >> is violating the RFC.
>> >>
>> >> I therefore do not see the interoperability issue.  Maybe some
>> >> deployed systems will run more slowly or hit a slot path (which is not
>> >> our problem), but they absolutely should not drop such frames.
>> >
>> > "When a packet is received with a UDP checksum of zero, it MUST be
>> > accepted for decapsulation."
>> >
>> > This is a requirement and directly in conflict with having
>> > VXLAN_F_UDP_ZERO_CSUM6_RX set to false as the default.
>>
>> Oh yes, I'm mixing different parts of the conversation.  We must
>> accept on RX zero checksum fields even for ipv6 because of the way the
>> VXLAN RFC is worded, correct.
> 
> That MUST conflicts directly with RFC2460 (zero UDP csums must be dropped).
> We allow configuring to accept zero checksums per Rfc6935 and rfc6936. So
> there is no interoperability issue and by default we maintain IPv6 protocol
> compliance.

And practically speaking we disappear from the internet for VXLAN tunnel
endpoints implementing the VXLAN spec properly.

That's not going to help anyone at all.

  parent reply	other threads:[~2016-02-16 20:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-10 15:47 [PATCH net-next] lwt: fix rx checksum setting for lwt devices tunneling over ipv6 Paolo Abeni
2016-02-11 10:41 ` Jiri Benc
2016-02-11 11:12   ` David Miller
2016-02-11 11:38   ` Paolo Abeni
2016-02-11 12:16     ` Jiri Benc
2016-02-11 12:20       ` Jiri Benc
2016-02-16 18:22   ` Jesse Gross
2016-02-16 19:47     ` David Miller
2016-02-16 20:11       ` Jesse Gross
2016-02-16 20:40         ` David Miller
2016-02-16 20:45           ` David Miller
2016-02-17 17:14             ` Paolo Abeni
     [not found]           ` <CALx6S34k2Hz-kBeTZ9brLZDCp1tU9nUMZN6V9zhoqmEU3+TR_A@mail.gmail.com>
2016-02-16 20:53             ` David Miller [this message]
     [not found]               ` <CALx6S34AsmKy57msp85o0_Y8KKM_4iQN9Bx=nfsE3gs6RP9t2A@mail.gmail.com>
2016-02-16 21:37                 ` David Miller

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=20160216.155332.104228217048445468.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=jbenc@redhat.com \
    --cc=jesse@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=pshelar@nicira.com \
    --cc=tgraf@suug.ch \
    --cc=tom@herbertland.com \
    /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: link
Be 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).