svn commit: r251779 - stable/9/sys/net
Mikolaj Golub
trociny at FreeBSD.org
Sat Jun 15 08:06:23 UTC 2013
Author: trociny
Date: Sat Jun 15 08:06:22 2013
New Revision: 251779
URL: http://svnweb.freebsd.org/changeset/base/251779
Log:
MFC r251490:
Properly set curvnet context in lagg_port_setlladdr() task handler.
Reported by: Nikos Vassiliadis <nvass gmx.com>
Submitted by: zec
Tested by: Nikos Vassiliadis <nvass gmx.com>
Modified:
stable/9/sys/net/if_lagg.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/net/ (props changed)
Modified: stable/9/sys/net/if_lagg.c
==============================================================================
--- stable/9/sys/net/if_lagg.c Sat Jun 15 06:45:17 2013 (r251778)
+++ stable/9/sys/net/if_lagg.c Sat Jun 15 08:06:22 2013 (r251779)
@@ -494,7 +494,9 @@ lagg_port_setlladdr(void *arg, int pendi
ifp = llq->llq_ifp;
/* Set the link layer address */
+ CURVNET_SET(ifp->if_vnet);
error = if_setlladdr(ifp, llq->llq_lladdr, ETHER_ADDR_LEN);
+ CURVNET_RESTORE();
if (error)
printf("%s: setlladdr failed on %s\n", __func__,
ifp->if_xname);
More information about the svn-src-stable-9
mailing list