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:
parent
c7b7fe134d
commit
d7bd09411e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user