Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jun 2013 10:27:51 +0000 (UTC)
From:      Mikolaj Golub <trociny@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r251490 - head/sys/net
Message-ID:  <201306071027.r57ARpaF056606@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trociny
Date: Fri Jun  7 10:27:50 2013
New Revision: 251490
URL: http://svnweb.freebsd.org/changeset/base/251490

Log:
  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>
  MFC after:	1 week

Modified:
  head/sys/net/if_lagg.c

Modified: head/sys/net/if_lagg.c
==============================================================================
--- head/sys/net/if_lagg.c	Fri Jun  7 09:06:50 2013	(r251489)
+++ head/sys/net/if_lagg.c	Fri Jun  7 10:27:50 2013	(r251490)
@@ -505,7 +505,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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306071027.r57ARpaF056606>