summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2014-05-14 19:08:33 +0000
committerclaudio <claudio@openbsd.org>2014-05-14 19:08:33 +0000
commit147aab6d4b683702496f91250094d6feaf8b918a (patch)
tree8aae08088a254110fc04c8d952f81e295fd4b44c
parentRemove second arg in SetMouseSpeed(), it is always 1200. (diff)
downloadwireguard-openbsd-147aab6d4b683702496f91250094d6feaf8b918a.tar.xz
wireguard-openbsd-147aab6d4b683702496f91250094d6feaf8b918a.zip
There is no reason why one needs to have a lo(4) MTU that is arch specific.
Also making the size 32k + some extra is not very helpful since we don't do something like zerocopy or sendfile. Just go back to 32768 and we can bikeshed over the right value later on once we have features that benefit from it. OK mpi@
-rw-r--r--sys/net/if_loop.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c
index 93a9911e890..c6307e1df00 100644
--- a/sys/net/if_loop.c
+++ b/sys/net/if_loop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_loop.c,v 1.54 2014/04/19 11:01:37 henning Exp $ */
+/* $OpenBSD: if_loop.c,v 1.55 2014/05/14 19:08:33 claudio Exp $ */
/* $NetBSD: if_loop.c,v 1.15 1996/05/07 02:40:33 thorpej Exp $ */
/*
@@ -143,11 +143,7 @@
#include <net/bpf.h>
#endif
-#if defined(LARGE_LOMTU)
-#define LOMTU (131072 + MHLEN + MLEN)
-#else
-#define LOMTU (32768 + MHLEN + MLEN)
-#endif
+#define LOMTU 32768
int loop_clone_create(struct if_clone *, int);
int loop_clone_destroy(struct ifnet *);