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_vlan.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_vlan.c')
-rw-r--r-- | sys/net/if_vlan.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index b1b727e05d8..3fbcb96b89c 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vlan.c,v 1.72 2007/12/20 02:53:02 brad Exp $ */ +/* $OpenBSD: if_vlan.c,v 1.73 2008/05/07 13:45:35 dlg Exp $ */ /* * Copyright 1998 Massachusetts Institute of Technology @@ -257,8 +257,7 @@ vlan_start(struct ifnet *ifp) } ifp->if_opackets++; - if ((p->if_flags & (IFF_RUNNING|IFF_OACTIVE)) == IFF_RUNNING) - p->if_start(p); + if_start(p); } ifp->if_flags &= ~IFF_OACTIVE; |