diff options
author | 2016-01-14 09:20:31 +0000 | |
---|---|---|
committer | 2016-01-14 09:20:31 +0000 | |
commit | e8f34656c83e80b4c8586820681f3f17c27e975c (patch) | |
tree | 9e4b7fbbcc6584fa5b332195c2dbe49e152a7221 /sys/net/if_vxlan.c | |
parent | Display struct event more like other structs: show all members and use cpp (diff) | |
download | wireguard-openbsd-e8f34656c83e80b4c8586820681f3f17c27e975c.tar.xz wireguard-openbsd-e8f34656c83e80b4c8586820681f3f17c27e975c.zip |
No need for a splnet() dance around IFQ_DEQUEUE() anymore.
From David Hill, ok dlg@
Diffstat (limited to 'sys/net/if_vxlan.c')
-rw-r--r-- | sys/net/if_vxlan.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c index 75b21602a1b..a220bff8352 100644 --- a/sys/net/if_vxlan.c +++ b/sys/net/if_vxlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vxlan.c,v 1.35 2015/12/05 10:07:55 tedu Exp $ */ +/* $OpenBSD: if_vxlan.c,v 1.36 2016/01/14 09:20:31 mpi Exp $ */ /* * Copyright (c) 2013 Reyk Floeter <reyk@openbsd.org> @@ -275,15 +275,12 @@ void vxlanstart(struct ifnet *ifp) { struct mbuf *m; - int s; for (;;) { - s = splnet(); IFQ_DEQUEUE(&ifp->if_snd, m); - splx(s); - if (m == NULL) return; + ifp->if_opackets++; #if NBPFILTER > 0 |