diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2013-10-13 10:41:13 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2013-10-13 10:41:13 +0000 |
commit | 89ae60e4c98a474979f98c97badc79c4a4bb0230 (patch) | |
tree | 5cc8c5dfd15c745ddf7e7ae685f071152bb94862 /sys | |
parent | 728bebe5cfbcacfe290ca38c4777c371e5d0560e (diff) |
Set the default MTU to full 1500 bytes. We do not want to encourage
running vxlan(4) with a lowered MTU of just 1450 bytes instead of
bumping the MTU of the transport interfaces to at least 1550 or
preferrably 1600 bytes.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_vxlan.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c index 69323992ccf..f9000938d90 100644 --- a/sys/net/if_vxlan.c +++ b/sys/net/if_vxlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vxlan.c,v 1.1 2013/10/13 10:10:03 reyk Exp $ */ +/* $OpenBSD: if_vxlan.c,v 1.2 2013/10/13 10:41:11 reyk Exp $ */ /* * Copyright (c) 2013 Reyk Floeter <reyk@openbsd.org> @@ -127,11 +127,18 @@ vxlan_clone_create(struct if_clone *ifc, int unit) if_attach(ifp); ether_ifattach(ifp); - /* XXX should we allow IP fragments? */ +#if 0 + /* + * Instead of using a decreased MTU of 1450 bytes, prefer + * to use the default Ethernet-size MTU of 1500 bytes and to + * increase the MTU of the outer transport interfaces to + * at least 1550 bytes. The following is disabled by default. + */ ifp->if_mtu = ETHERMTU - sizeof(struct ether_header); #ifdef INET ifp->if_mtu -= sizeof(struct vxlanudpiphdr); #endif +#endif LIST_INSERT_HEAD(&vxlan_tagh[VXLAN_TAGHASH(0)], sc, sc_entry); vxlan_enable++; |