[Differential] D8214: ifnet: Use if_link_state snapshot to invoke ifnet_link_event
Phabricator
phabric-noreply at FreeBSD.org
Wed Oct 12 01:52:48 UTC 2016
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8214.21286.patch
Type: text/x-patch
Size: 425 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20161012/591255ca/attachment.bin>
More information about the freebsd-net
mailing list