]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbb5197dc307c00d47eecb711a8773cef549963da
treec5e1785c42dc32cf342dddad0aa4f68286e599d7
parent2936cee0a0f76d3d4a57f1ed88567e4662ef1925
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