diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2008-05-07 13:45:36 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2008-05-07 13:45:36 +0000 |
commit | e29678e8d6012a490a39e3a085fd78310d02ba8d (patch) | |
tree | 57e0988c128762346ac112e665995c90f29a2671 /sys/net/if_trunk.c | |
parent | 88f807347c751984afac27fa53bd5a278beba7e8 (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.c | 5 |
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) |