ipv6: Compute multipath hash for ICMP errors from offending packet
authorJakub Sitnicki <jkbs@redhat.com>
Wed, 23 Aug 2017 07:58:29 +0000 (09:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Aug 2017 01:21:17 +0000 (18:21 -0700)
commit23aebdacb05dab9efdf22b9e0413491cbd5f128f
treec686bd03925a2d68a4438b5ec39c92b027f4e76d
parent29825717123fb9cfb9e709327d565c2f2fa89903
ipv6: Compute multipath hash for ICMP errors from offending packet

When forwarding or sending out an ICMPv6 error, look at the embedded
packet that triggered the error and compute a flow hash over its
headers.

This let's us route the ICMP error together with the flow it belongs to
when multipath (ECMP) routing is in use, which in turn makes Path MTU
Discovery work in ECMP load-balanced or anycast setups (RFC 7690).

Granted, end-hosts behind the ECMP router (aka servers) need to reflect
the IPv6 Flow Label for PMTUD to work.

The code is organized to be in parallel with ipv4 stack:

  ip_multipath_l3_keys -> ip6_multipath_l3_keys
  fib_multipath_hash   -> rt6_multipath_hash

Signed-off-by: Jakub Sitnicki <jkbs@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_route.h
net/ipv6/icmp.c
net/ipv6/route.c