Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/pci Add missing bpf_mtap.



details:   https://anonhg.NetBSD.org/src/rev/9037bd33b8f7
branches:  trunk
changeset: 819275:9037bd33b8f7
user:      hikaru <hikaru%NetBSD.org@localhost>
date:      Fri Nov 25 06:48:37 2016 +0000

description:
Add missing bpf_mtap.

diffstat:

 sys/arch/x86/pci/if_vmx.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r bae4c1c9888a -r 9037bd33b8f7 sys/arch/x86/pci/if_vmx.c
--- a/sys/arch/x86/pci/if_vmx.c Fri Nov 25 05:29:54 2016 +0000
+++ b/sys/arch/x86/pci/if_vmx.c Fri Nov 25 06:48:37 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vmx.c,v 1.8 2016/11/25 05:29:54 hikaru Exp $        */
+/*     $NetBSD: if_vmx.c,v 1.9 2016/11/25 06:48:37 hikaru Exp $        */
 /*     $OpenBSD: if_vmx.c,v 1.16 2014/01/22 06:04:17 brad Exp $        */
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.8 2016/11/25 05:29:54 hikaru Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.9 2016/11/25 06:48:37 hikaru Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -1994,6 +1994,8 @@
        rxq->vxrxq_stats.vmrxs_ipackets++;
        rxq->vxrxq_stats.vmrxs_ibytes += m->m_pkthdr.len;
 
+       bpf_mtap(ifp, m);
+
        if_percpuq_enqueue(ifp->if_percpuq, m);
 }
 



Home | Main Index | Thread Index | Old Index