Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jan 2017 10:51:12 +0000 (UTC)
From:      Andrew Rybchenko <arybchik@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r311638 - head/sys/dev/sfxge
Message-ID:  <201701071051.v07ApCiW034989@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



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