summaryrefslogtreecommitdiff
path: root/sys/net/if_mpe.c
diff options
context:
space:
mode:
authorkn <kn@cvs.openbsd.org>2020-08-21 22:59:28 +0000
committerkn <kn@cvs.openbsd.org>2020-08-21 22:59:28 +0000
commit644833183f92f26fdc593a2666334f3747262823 (patch)
treea3e558ade5afb9c424565bcc503f7c3ca0c4dbcb /sys/net/if_mpe.c
parent16caca2618865515f29ef16afe11d119763d3f8b (diff)
Leave default ifq_maxlen handling to ifq_init()
Most clonable interface drivers (except bridge, enc, loop, pppx, switch, trunk and vlan) initialise the send queue's length to IFQ_MAXLEN during *_clone_create() even though ifq_init(), which is eventually called through if_attach(), does the same. Remove all early "ifq_set_maxlen(&ifq->if_snd, IFQ_MAXLEN);" lines to leave it to ifq_init() and have clonable drivers a tad more in sync. OK mvs
Diffstat (limited to 'sys/net/if_mpe.c')
-rw-r--r--sys/net/if_mpe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_mpe.c b/sys/net/if_mpe.c
index 09d0db3d2ed..514633e7e28 100644
--- a/sys/net/if_mpe.c
+++ b/sys/net/if_mpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mpe.c,v 1.96 2020/07/10 13:26:41 patrick Exp $ */
+/* $OpenBSD: if_mpe.c,v 1.97 2020/08/21 22:59:27 kn Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -112,7 +112,6 @@ mpe_clone_create(struct if_clone *ifc, int unit)
ifp->if_start = mpe_start;
ifp->if_type = IFT_MPLS;
ifp->if_hdrlen = MPE_HDRLEN;
- ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN);
sc->sc_dead = 0;