diff options
author | kn <kn@cvs.openbsd.org> | 2020-08-21 22:59:28 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2020-08-21 22:59:28 +0000 |
commit | 644833183f92f26fdc593a2666334f3747262823 (patch) | |
tree | a3e558ade5afb9c424565bcc503f7c3ca0c4dbcb /sys/net/if_gif.c | |
parent | 16caca2618865515f29ef16afe11d119763d3f8b (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_gif.c')
-rw-r--r-- | sys/net/if_gif.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c index 95859d24897..371f20b6bea 100644 --- a/sys/net/if_gif.c +++ b/sys/net/if_gif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gif.c,v 1.130 2020/07/10 13:26:41 patrick Exp $ */ +/* $OpenBSD: if_gif.c,v 1.131 2020/08/21 22:59:27 kn Exp $ */ /* $KAME: if_gif.c,v 1.43 2001/02/20 08:51:07 itojun Exp $ */ /* @@ -170,7 +170,6 @@ gif_clone_create(struct if_clone *ifc, int unit) ifp->if_output = gif_output; ifp->if_rtrequest = p2p_rtrequest; ifp->if_type = IFT_GIF; - ifq_set_maxlen(&ifp->if_snd, IFQ_MAXLEN); ifp->if_softc = sc; if_attach(ifp); |