geneve: Support for PMTU discovery on directly bridged links
authorStefano Brivio <sbrivio@redhat.com>
Tue, 4 Aug 2020 05:53:45 +0000 (07:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Aug 2020 20:01:45 +0000 (13:01 -0700)
commitc1a800e88dbffca4ef48000cb3f9ad618dc7ad89
treec5e1785c42dc32cf342dddad0aa4f68286e599d7
parentfc68c99577cc66e38d11b3e29304efb83fa08d53
geneve: 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, set destination and source
addresses for the flow as if we were receiving the packet, so that
Open vSwitch can match the ICMP error against the existing
association.

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/geneve.c