Author: arybchik
Date: Sat Jan  7 10:51:12 2017
New Revision: 311638
URL: https://svnweb.freebsd.org/changeset/base/311638

Log:
  sfxge(4): use SFXGE_LINK_UP() to report link up state
  
  Reviewed by:    philip
  Sponsored by:   Solarflare Communications, Inc.
  MFC after:      2 days
  Differential Revision:  https://reviews.freebsd.org/D9059

Modified:
  head/sys/dev/sfxge/sfxge_port.c

Modified: head/sys/dev/sfxge/sfxge_port.c
==============================================================================
--- head/sys/dev/sfxge/sfxge_port.c     Sat Jan  7 09:56:50 2017        
(r311637)
+++ head/sys/dev/sfxge/sfxge_port.c     Sat Jan  7 10:51:12 2017        
(r311638)
@@ -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);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to