diff options
author | arybchik <arybchik@FreeBSD.org> | 2017-01-09 08:05:14 +0000 |
---|---|---|
committer | arybchik <arybchik@FreeBSD.org> | 2017-01-09 08:05:14 +0000 |
commit | ae63698d194ab8f012243392fa514e13b563643e (patch) | |
tree | 1b0bbce5196afa0876176beb750af5e6cb0ea78e | |
parent | 209c136757435725a137399e716412507b2c1769 (diff) | |
download | FreeBSD-src-ae63698d194ab8f012243392fa514e13b563643e.zip FreeBSD-src-ae63698d194ab8f012243392fa514e13b563643e.tar.gz |
MFC r311638
sfxge(4): use SFXGE_LINK_UP() to report link up state
Sponsored by: Solarflare Communications, Inc.
-rw-r--r-- | sys/dev/sfxge/sfxge_port.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/sfxge/sfxge_port.c b/sys/dev/sfxge/sfxge_port.c index 2ebc521..58793ca 100644 --- a/sys/dev/sfxge/sfxge_port.c +++ b/sys/dev/sfxge/sfxge_port.c @@ -311,8 +311,7 @@ sfxge_mac_link_update(struct sfxge_softc *sc, efx_link_mode_t mode) 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); } |