svn commit: r311763 - stable/11/sys/dev/sfxge
Andrew Rybchenko
arybchik at FreeBSD.org
Mon Jan 9 08:05:16 UTC 2017
Author: arybchik
Date: Mon Jan 9 08:05:14 2017
New Revision: 311763
URL: https://svnweb.freebsd.org/changeset/base/311763
Log:
MFC r311638
sfxge(4): use SFXGE_LINK_UP() to report link up state
Sponsored by: Solarflare Communications, Inc.
Modified:
stable/11/sys/dev/sfxge/sfxge_port.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/sfxge/sfxge_port.c
==============================================================================
--- stable/11/sys/dev/sfxge/sfxge_port.c Mon Jan 9 07:36:31 2017 (r311762)
+++ stable/11/sys/dev/sfxge/sfxge_port.c Mon Jan 9 08:05:14 2017 (r311763)
@@ -311,8 +311,7 @@ sfxge_mac_link_update(struct sfxge_softc
port->link_mode = mode;
/* Push link state update to the OS */
- link_state = (port->link_mode != EFX_LINK_DOWN ?
- LINK_STATE_UP : LINK_STATE_DOWN);
+ link_state = (SFXGE_LINK_UP(sc) ? LINK_STATE_UP : LINK_STATE_DOWN);
sc->ifnet->if_baudrate = sfxge_link_baudrate[port->link_mode];
if_link_state_change(sc->ifnet, link_state);
}
More information about the svn-src-stable
mailing list