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
This commit is contained in:
Mikolaj Golub 2013-06-07 10:27:50 +00:00
parent 9984c9baf3
commit f8afe33795
1 changed files with 2 additions and 0 deletions

View File

@ -505,7 +505,9 @@ lagg_port_setlladdr(void *arg, int pending)
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);