Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/marvell Use new style BPF calls.
details: https://anonhg.NetBSD.org/src/rev/8784c93d3a5d
branches: trunk
changeset: 767792:8784c93d3a5d
user: rjs <rjs%NetBSD.org@localhost>
date: Sat Jul 30 19:06:57 2011 +0000
description:
Use new style BPF calls.
diffstat:
sys/dev/marvell/if_mvgbe.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r a13723e5266a -r 8784c93d3a5d sys/dev/marvell/if_mvgbe.c
--- a/sys/dev/marvell/if_mvgbe.c Sat Jul 30 18:41:34 2011 +0000
+++ b/sys/dev/marvell/if_mvgbe.c Sat Jul 30 19:06:57 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_mvgbe.c,v 1.9 2011/07/28 15:36:47 matt Exp $ */
+/* $NetBSD: if_mvgbe.c,v 1.10 2011/07/30 19:06:57 rjs Exp $ */
/*
* Copyright (c) 2007, 2008 KIYOHARA Takashi
* All rights reserved.
@@ -25,7 +25,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_mvgbe.c,v 1.9 2011/07/28 15:36:47 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_mvgbe.c,v 1.10 2011/07/30 19:06:57 rjs Exp $");
#include "rnd.h"
@@ -898,8 +898,7 @@
* If there's a BPF listener, bounce a copy of this frame
* to him.
*/
- if (ifp->if_bpf)
- bpf_ops->bpf_mtap(ifp->if_bpf, m_head);
+ bpf_mtap(ifp, m_head);
}
if (pkts == 0)
return;
@@ -1744,8 +1743,7 @@
ifp->if_ipackets++;
- if (ifp->if_bpf)
- bpf_ops->bpf_mtap(ifp->if_bpf, m);
+ bpf_mtap(ifp, m);
/* pass it on. */
(*ifp->if_input)(ifp, m);
Home |
Main Index |
Thread Index |
Old Index