]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitfc68c99577cc66e38d11b3e29304efb83fa08d53
treeb8ade30be7766d5d540518f89f54eab22ebbfa94
parent4cb47a8644cc9eb8ec81190a50e79e6530d0297f
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