diff options
author | sephe <sephe@FreeBSD.org> | 2016-10-19 08:43:20 +0000 |
---|---|---|
committer | sephe <sephe@FreeBSD.org> | 2016-10-19 08:43:20 +0000 |
commit | 3bbcf8b0fc235583e542746bca94be368fb6fb1c (patch) | |
tree | ef9c1a942f0357fdc0fb67bfd0a7bd056bea8c50 | |
parent | ea32ff4ccaf3fb94290cda1e3e37bf1f0a444e4e (diff) | |
download | FreeBSD-src-3bbcf8b0fc235583e542746bca94be368fb6fb1c.zip FreeBSD-src-3bbcf8b0fc235583e542746bca94be368fb6fb1c.tar.gz |
MFC 307078
ifnet: Use if_link_state snapshot to invoke ifnet_link_event
So that everyone in this task have consistent view of link state.
Reviewed by: ae
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D8214
-rw-r--r-- | sys/net/if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index e03584f..881cd60 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -2171,7 +2171,7 @@ do_link_state_change(void *arg, int pending) if (log_link_state_change) log(LOG_NOTICE, "%s: link state changed to %s\n", ifp->if_xname, (link_state == LINK_STATE_UP) ? "UP" : "DOWN" ); - EVENTHANDLER_INVOKE(ifnet_link_event, ifp, ifp->if_link_state); + EVENTHANDLER_INVOKE(ifnet_link_event, ifp, link_state); CURVNET_RESTORE(); } |