netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: dmichail@google.com
Cc: tom@herbertland.com, netdev@vger.kernel.org, edumazet@google.com
Subject: Re: [PATCH] ipv6: fix flow labels when the traffic class is non-0
Date: Tue, 31 Jan 2017 13:17:47 -0500 (EST)	[thread overview]
Message-ID: <20170131.131747.527470210930915539.davem@davemloft.net> (raw)
In-Reply-To: <20170130220942.19105-1-dmichail@google.com>

From: Dimitris Michailidis <dmichail@google.com>
Date: Mon, 30 Jan 2017 14:09:42 -0800

> ip6_make_flowlabel() determines the flow label for IPv6 packets. It's
> supposed to be passed a flow label, which it returns as is if non-0 and
> in some other cases, otherwise it calculates a new value.
> 
> The problem is callers often pass a flowi6.flowlabel, which may also
> contain traffic class bits. If the traffic class is non-0
> ip6_make_flowlabel() mistakes the non-0 it gets as a flow label and
> returns the whole thing. Thus it can return a 'flow label' longer than
> 20b and the low 20b of that is typically 0 resulting in packets with 0
> label. Moreover, different packets of a flow may be labeled differently.
> For a TCP flow with ECN non-payload and payload packets get different
> labels as exemplified by this pair of consecutive packets:
 ...
> Signed-off-by: Dimitris Michailidis <dmichail@google.com>

Applied, thanks Dimitris.

      parent reply	other threads:[~2017-01-31 18:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-30 22:09 [PATCH] ipv6: fix flow labels when the traffic class is non-0 Dimitris Michailidis
2017-01-30 22:23 ` Eric Dumazet
2017-01-30 23:38   ` Dimitris Michailidis
2017-01-30 23:40 ` Tom Herbert
2017-01-30 23:45   ` Eric Dumazet
2017-01-30 23:51     ` Dimitris Michailidis
2017-01-31 17:57 ` Eric Dumazet
2017-01-31 18:17 ` David Miller [this message]

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=20170131.131747.527470210930915539.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=dmichail@google.com \
    --cc=edumazet@google.com \
    --cc=netdev@vger.kernel.org \
    --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).