summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_vr.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-02-06 23:57:05 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-02-06 23:57:05 +0000
commit07c1ce0f69f0f255c3ef87dc43e517c1777d49f0 (patch)
treef957fe127a3c60e055e51ec607d000447db9d7fe /sys/dev/pci/if_vr.c
parent5ac13432a8fc37d9bc43655445db8ca8a3462f5b (diff)
vr_start(): return if IFF_OACTIVE is set.
From FreeBSD via Andrey Matveev
Diffstat (limited to 'sys/dev/pci/if_vr.c')
-rw-r--r--sys/dev/pci/if_vr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c
index 2ae69525c1c..caab7faf7a9 100644
--- a/sys/dev/pci/if_vr.c
+++ b/sys/dev/pci/if_vr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vr.c,v 1.57 2006/02/05 23:23:18 brad Exp $ */
+/* $OpenBSD: if_vr.c,v 1.58 2006/02/06 23:57:04 brad Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -1315,6 +1315,9 @@ vr_start(struct ifnet *ifp)
struct mbuf *m_head;
struct vr_chain *cur_tx;
+ if (ifp->if_flags & IFF_OACTIVE)
+ return;
+
sc = ifp->if_softc;
cur_tx = sc->vr_cdata.vr_tx_prod;