]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: Support for PMTU discovery on directly bridged links
authorStefano Brivio <sbrivio@redhat.com>
Tue, 4 Aug 2020 05:53:44 +0000 (07:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Aug 2020 20:01:45 +0000 (13:01 -0700)
commit2936cee0a0f76d3d4a57f1ed88567e4662ef1925
treeb8ade30be7766d5d540518f89f54eab22ebbfa94
parent3fe575d49f3d004d38a258954d5b654e0ff52559
vxlan: Support for PMTU discovery on directly bridged links

If the interface is a bridge or Open vSwitch port, and we can't
forward a packet because it exceeds the local PMTU estimate,
trigger an ICMP or ICMPv6 reply to the sender, using the same
interface to forward it back.

If metadata collection is enabled, reverse destination and source
addresses, so that Open vSwitch is able to match this packet against
the existing, reverse flow.

v2: Use netif_is_any_bridge_port() (David Ahern)

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c