From 147aab6d4b683702496f91250094d6feaf8b918a Mon Sep 17 00:00:00 2001 From: claudio Date: Wed, 14 May 2014 19:08:33 +0000 Subject: [PATCH] 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@ --- sys/net/if_loop.c | 8 ++------ 1 file 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 #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 *); -- 2.20.1