summaryrefslogtreecommitdiff
path: root/sys/net/if_trunk.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2008-05-07 13:45:36 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2008-05-07 13:45:36 +0000
commite29678e8d6012a490a39e3a085fd78310d02ba8d (patch)
tree57e0988c128762346ac112e665995c90f29a2671 /sys/net/if_trunk.c
parent88f807347c751984afac27fa53bd5a278beba7e8 (diff)
enable tx mitigation when putting packets on the wire by switching from
calls to ifp->if_start to if_start(). these are the obviously right cases where we can do that, the less obvious ones may follow as theyre figured out. deraadt@ said to go for it
Diffstat (limited to 'sys/net/if_trunk.c')
-rw-r--r--sys/net/if_trunk.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/if_trunk.c b/sys/net/if_trunk.c
index a30f2dc1ad9..89df84459e9 100644
--- a/sys/net/if_trunk.c
+++ b/sys/net/if_trunk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_trunk.c,v 1.41 2008/01/10 09:52:04 brad Exp $ */
+/* $OpenBSD: if_trunk.c,v 1.42 2008/05/07 13:45:35 dlg Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org>
@@ -933,8 +933,7 @@ trunk_enqueue(struct ifnet *ifp, struct mbuf *m)
IFQ_ENQUEUE(&ifp->if_snd, m, NULL, error);
if (error)
return (error);
- if ((ifp->if_flags & IFF_OACTIVE) == 0)
- (*ifp->if_start)(ifp);
+ if_start(ifp);
ifp->if_obytes += m->m_pkthdr.len;
if (m->m_flags & M_MCAST)