iplink_vxlan, geneve: Add PMTUDISC configuration
Subsystems (2)
PATCH 1/1 iplink_vxlan, geneve: Add PMTUDISC configuration
This allows to turn off route exception creation for the encapsulation socket. This is mainly useful if a vxlan interface is part of a bridge to prevent a bogus icmp error from shutting down the vxlan port:
In a bridged environment, the sender is unaware of the icmp error (it is only addressed to the bridge as its in response to the outer/encap packet). IP output path would then fetch the mtu of the socket instead of the interface which prevents any packet large enough (but still fitting interface mtu) from getting sent out.
---
NB: There is copy-paste between vxlan and geneve.
If you'd like a helper please also hint where the helper function should be placed. Thanks!
include/uapi/linux/if_link.h | 2 ++ ip/iplink_geneve.c | 55 ++++++++++++++++++++++++++++++++---- ip/iplink_vxlan.c | 42 +++++++++++++++++++++++++++ man/man8/ip-link.8.in | 27 ++++++++++++++++++ 4 files changed, 120 insertions(+), 6 deletions(-)
include/uapi/linux/if_link.h +2 -0
@@ -546,6 +546,7 @@ enum {IFLA_VXLAN_GPE ,IFLA_VXLAN_TTL_INHERIT ,IFLA_VXLAN_DF , +IFLA_VXLAN_PMTUDISC , __IFLA_VXLAN_MAX };#define IFLA_VXLAN_MAX (__IFLA_VXLAN_MAX - 1)
@@ -579,6 +580,7 @@ enum {IFLA_GENEVE_LABEL ,IFLA_GENEVE_TTL_INHERIT ,IFLA_GENEVE_DF , +IFLA_GENEVE_PMTUDISC , __IFLA_GENEVE_MAX };#define IFLA_GENEVE_MAX (__IFLA_GENEVE_MAX - 1)
ip/iplink_geneve.c +49 -6
74 lines not on this page · raw message
ip/iplink_vxlan.c +42 -0
66 lines not on this page · raw message
man/man8/ip-link.8.in +27 -0
@@ -532,6 +532,8 @@ the following additional arguments are supported: ] [ .BI df " DF " ] [ +.BI pmtudisc " PMTUDISC " +] [ .BI flowlabel " FLOWLABEL " ] [ .BI dstport " PORT "
@@ -613,6 +615,25 @@ and cause the bit to be always unset or always set, respectively. By default, the bit is not set. +.sp +.BI pmtudisc " PMTUDISC" +- specifies the path mtu update setting of the encapsulation socket. +This can be used to ignore updates and always use the link mtu. +Options are the ones described in +.BR ip "(7)": +.B want +.B dont +.B do +.B probe +.B interface +and +.B omit. + +The default is to use the value specified in +.I /proc/sys/net/ipv4/ip_no_pmtu_disc. +This should only be changed when the vxlan interface is configured +as a bridge port and only to work around erroneous path mtu updates. + .sp .BI flowlabel " FLOWLABEL" - specifies the flow label to use in outgoing packets.
@@ -1217,6 +1238,8 @@ the following additional arguments are supported: ] [ .BI df " DF " ] [ +.BI pmtudisc " PMTUDISC " +] [ .BI flowlabel " FLOWLABEL " ] [ .BI dstport " PORT"
@@ -1261,6 +1284,10 @@ and cause the bit to be always unset or always set, respectively. By default, the bit is not set. +.sp +.BI pmtudisc " PMTUDISC" +See the VXLAN section, the options are identical. + .sp .BI flowlabel " FLOWLABEL" - specifies the flow label to use in outgoing packets.
Signature · 1 line
2.26.2