tunnel: Propagate ECT(1) when decapsulating as recommended by RFC6040
authorToke Høiland-Jørgensen <toke@redhat.com>
Mon, 27 Apr 2020 14:11:05 +0000 (16:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 03:32:15 +0000 (20:32 -0700)
commitb723748750ece7d844cdf2f52c01d37f83387208
tree571f53893599ca919c7f49b6bc7e56e8c7774cfe
parent0ce205d4660c312cdeb4a81066616dcc6f3799c4
tunnel: Propagate ECT(1) when decapsulating as recommended by RFC6040

RFC 6040 recommends propagating an ECT(1) mark from an outer tunnel header
to the inner header if that inner header is already marked as ECT(0). When
RFC 6040 decapsulation was implemented, this case of propagation was not
added. This simply appears to be an oversight, so let's fix that.

Fixes: eccc1bb8d4b4 ("tunnel: drop packet if ECN present with not-ECT")
Reported-by: Bob Briscoe <ietf@bobbriscoe.net>
Reported-by: Olivier Tilmans <olivier.tilmans@nokia-bell-labs.com>
Cc: Dave Taht <dave.taht@gmail.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_ecn.h