summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2015-09-20 02:01:23 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2015-09-20 02:01:23 +0000
commit666d42921d8aa9add366ee726dcdd5a9ff189450 (patch)
tree363f3bf74bcd9b69c0d8d2e38768d1a02bcbf0ca
parenta51fb5acf820805d0e73691dddb28f0985486b84 (diff)
need to keep bpf in the tx path. got a bit ahead of myself there...
noticed by brad
-rw-r--r--sys/dev/pci/if_vmx.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/pci/if_vmx.c b/sys/dev/pci/if_vmx.c
index 1265004e27e..87b78b1d752 100644
--- a/sys/dev/pci/if_vmx.c
+++ b/sys/dev/pci/if_vmx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vmx.c,v 1.31 2015/09/18 03:53:44 dlg Exp $ */
+/* $OpenBSD: if_vmx.c,v 1.32 2015/09/20 02:01:22 dlg Exp $ */
/*
* Copyright (c) 2013 Tsubai Masanari
@@ -1077,6 +1077,11 @@ vmxnet3_start(struct ifnet *ifp)
continue;
}
+#if NBPFILTER > 0
+ if (ifp->if_bpf)
+ bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
+#endif
+
ifp->if_opackets++;
used += n;
}