Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jan 2017 08:10:13 +0000 (UTC)
From:      Andrew Rybchenko <arybchik@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r311766 - stable/10/sys/dev/sfxge
Message-ID:  <201701090810.v098ADoT057893@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arybchik
Date: Mon Jan  9 08:10:12 2017
New Revision: 311766
URL: https://svnweb.freebsd.org/changeset/base/311766

Log:
  MFC r311638
  
  sfxge(4): use SFXGE_LINK_UP() to report link up state
  
  Sponsored by:   Solarflare Communications, Inc.

Modified:
  stable/10/sys/dev/sfxge/sfxge_port.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/sfxge/sfxge_port.c
==============================================================================
--- stable/10/sys/dev/sfxge/sfxge_port.c	Mon Jan  9 08:07:18 2017	(r311765)
+++ stable/10/sys/dev/sfxge/sfxge_port.c	Mon Jan  9 08:10:12 2017	(r311766)
@@ -284,8 +284,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);
 	if_initbaudrate(sc->ifnet, sfxge_link_baudrate[port->link_mode]);
 	if_link_state_change(sc->ifnet, link_state);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701090810.v098ADoT057893>