summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authortrociny <trociny@FreeBSD.org>2013-06-07 10:27:50 +0000
committertrociny <trociny@FreeBSD.org>2013-06-07 10:27:50 +0000
commitd7bd09411e7ff4a565f0fe21aaae6fd481e3d88d (patch)
treee125b854a054816692368531dd3a871a6c60d3fa /sys/net
parentc7b7fe134deed560685984129b31c899459c6356 (diff)
downloadFreeBSD-src-d7bd09411e7ff4a565f0fe21aaae6fd481e3d88d.zip
FreeBSD-src-d7bd09411e7ff4a565f0fe21aaae6fd481e3d88d.tar.gz
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
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_lagg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c
index 5688b76..8432527 100644
--- a/sys/net/if_lagg.c
+++ b/sys/net/if_lagg.c
@@ -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);
OpenPOWER on IntegriCloud