[Bug 227654] [panic] repeatable crash with lagg+vlan+em
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Oct 21 06:20:00 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227654
Kristof Provost <kp at freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kp at freebsd.org
--- Comment #6 from Kristof Provost <kp at freebsd.org> ---
This should fix it:
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index b75a62c16b3..79ef2422600 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -1302,8 +1302,13 @@ vlan_lladdr_fn(void *arg, int pending __unused)
ifv = (struct ifvlan *)arg;
ifp = ifv->ifv_ifp;
+
+ CURVNET_SET(ifp->if_vnet);
+
/* The ifv_ifp already has the lladdr copied in. */
if_setlladdr(ifp, IF_LLADDR(ifp), ifp->if_addrlen);
+
+ CURVNET_RESTORE();
}
static int
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
More information about the freebsd-net
mailing list