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 Store IFF_ALLMULTI in ec->ec_flags instead ...
details: https://anonhg.NetBSD.org/src/rev/e1ce239f16f1
branches: trunk
changeset: 452643:e1ce239f16f1
user: knakahara <knakahara%NetBSD.org@localhost>
date: Fri Jul 19 08:46:32 2019 +0000
description:
Store IFF_ALLMULTI in ec->ec_flags instead of ifp->if_flags.
See such as if_wm.c:1.636.
diffstat:
sys/arch/x86/pci/if_vmx.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diffs (40 lines):
diff -r 9bacdc933fd3 -r e1ce239f16f1 sys/arch/x86/pci/if_vmx.c
--- a/sys/arch/x86/pci/if_vmx.c Fri Jul 19 08:31:41 2019 +0000
+++ b/sys/arch/x86/pci/if_vmx.c Fri Jul 19 08:46:32 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vmx.c,v 1.33 2019/07/19 08:31:41 knakahara Exp $ */
+/* $NetBSD: if_vmx.c,v 1.34 2019/07/19 08:46:32 knakahara 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.33 2019/07/19 08:31:41 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.34 2019/07/19 08:46:32 knakahara Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -2820,7 +2820,9 @@
uint8_t *p;
ds->mcast_tablelen = 0;
- CLR(ifp->if_flags, IFF_ALLMULTI);
+ ETHER_LOCK(ec);
+ CLR(ec->ec_flags, ETHER_F_ALLMULTI);
+ ETHER_UNLOCK(ec);
/*
* Always accept broadcast frames.
@@ -2864,7 +2866,9 @@
goto setit;
allmulti:
- SET(ifp->if_flags, IFF_ALLMULTI);
+ ETHER_LOCK(ec);
+ SET(ec->ec_flags, ETHER_F_ALLMULTI);
+ ETHER_UNLOCK(ec);
SET(mode, (VMXNET3_RXMODE_ALLMULTI | VMXNET3_RXMODE_MCAST));
if (ifp->if_flags & IFF_PROMISC)
SET(mode, VMXNET3_RXMODE_PROMISC);
Home |
Main Index |
Thread Index |
Old Index