summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2012-08-07 09:23:14 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2012-08-07 09:23:14 +0000
commit1778c2cbeb45f4644f5516abe336404d88e6b74a (patch)
tree71537df724bfa998345dad7103826443a502a3d9 /sys/dev
parent12210e5877035f0692aab9774dbc74ddc3b6fa9c (diff)
don't forget to set IFF_ALLMULTI; from brad
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_oce.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pci/if_oce.c b/sys/dev/pci/if_oce.c
index 0749eb42725..2d580578c4e 100644
--- a/sys/dev/pci/if_oce.c
+++ b/sys/dev/pci/if_oce.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_oce.c,v 1.3 2012/08/06 21:55:31 mikeb Exp $ */
+/* $OpenBSD: if_oce.c,v 1.4 2012/08/07 09:23:13 mikeb Exp $ */
/*
* Copyright (c) 2012 Mike Belopuhov
@@ -402,9 +402,10 @@ oce_iff(struct oce_softc *sc)
ifp->if_flags &= ~IFF_ALLMULTI;
if (ifp->if_flags & IFF_PROMISC || ac->ac_multirangecnt > 0 ||
- ac->ac_multicnt > OCE_MAX_MC_FILTER_SIZE)
+ ac->ac_multicnt > OCE_MAX_MC_FILTER_SIZE) {
+ ifp->if_flags |= IFF_ALLMULTI;
promisc = 1;
- else
+ } else
oce_hw_update_multicast(sc);
oce_rxf_set_promiscuous(sc, promisc);