Date: Wed, 12 Oct 2016 01:52:47 +0000 From: Phabricator <phabric-noreply@FreeBSD.org> To: freebsd-net@freebsd.org Subject: [Differential] D8214: ifnet: Use if_link_state snapshot to invoke ifnet_link_event Message-ID: <1f3b44c43b6a03a18bed63e9d5751f0b@localhost.localdomain> In-Reply-To: <differential-rev-PHID-DREV-ezeyexpg6dawymus5pyz-req@FreeBSD.org> References: <differential-rev-PHID-DREV-ezeyexpg6dawymus5pyz-req@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] This revision was automatically updated to reflect the committed changes. Closed by commit rS307078: ifnet: Use if_link_state snapshot to invoke ifnet_link_event (authored by sephe). CHANGED PRIOR TO COMMIT https://reviews.freebsd.org/D8214?vs=21239&id=21286#toc REPOSITORY rS FreeBSD src repository CHANGES SINCE LAST UPDATE https://reviews.freebsd.org/D8214?vs=21239&id=21286 REVISION DETAIL https://reviews.freebsd.org/D8214 AFFECTED FILES head/sys/net/if.c CHANGE DETAILS diff --git a/head/sys/net/if.c b/head/sys/net/if.c --- a/head/sys/net/if.c +++ b/head/sys/net/if.c @@ -2206,7 +2206,7 @@ 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(); } EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: sepherosa_gmail.com, glebius, adrian, gnn, bz, ae Cc: ae, freebsd-net-list [-- Attachment #2 --] diff --git a/head/sys/net/if.c b/head/sys/net/if.c --- a/head/sys/net/if.c +++ b/head/sys/net/if.c @@ -2206,7 +2206,7 @@ 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(); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1f3b44c43b6a03a18bed63e9d5751f0b>
