Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Mar 2015 15:52:58 +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: r280379 - head/sys/dev/sfxge/common
Message-ID:  <201503231552.t2NFqwLE050770@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arybchik
Date: Mon Mar 23 15:52:57 2015
New Revision: 280379
URL: https://svnweb.freebsd.org/changeset/base/280379

Log:
  sfxge: do not check MCDI status word
  
  This is a temporary workaround until we determine a reliable sequence
  of operations for detecting MC reboots.
  
  Sponsored by:   Solarflare Communications, Inc.
  Differential Revision: https://reviews.freebsd.org/D2084

Modified:
  head/sys/dev/sfxge/common/efx_mcdi.c

Modified: head/sys/dev/sfxge/common/efx_mcdi.c
==============================================================================
--- head/sys/dev/sfxge/common/efx_mcdi.c	Mon Mar 23 15:52:05 2015	(r280378)
+++ head/sys/dev/sfxge/common/efx_mcdi.c	Mon Mar 23 15:52:57 2015	(r280379)
@@ -213,6 +213,14 @@ static			int
 efx_mcdi_poll_reboot(
 	__in		efx_nic_t *enp)
 {
+#ifndef EFX_GRACEFUL_MC_REBOOT
+	/*
+	 * This function is not being used properly.
+	 * Until its callers are fixed, it should always return 0.
+	 */
+	_NOTE(ARGUNUSED(enp))
+	return (0);
+#else
 	efx_mcdi_iface_t *emip = &(enp->en_u.siena.enu_mip);
 	unsigned int rebootr;
 	efx_dword_t dword;
@@ -236,6 +244,7 @@ efx_mcdi_poll_reboot(
 		return (EINTR);
 	else
 		return (EIO);
+#endif
 }
 
 	__checkReturn	boolean_t



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