]> 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)
commit3fdc4fbee675624f764b3944b715b401e6b386f0
treeb8ade30be7766d5d540518f89f54eab22ebbfa94
parent6aabe154577587586484b0edc7069d343cb4ca22
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