Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Dec 2018 06:48:05 +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-11@freebsd.org
Subject:   svn commit: r342410 - stable/11/sys/dev/sfxge/common
Message-ID:  <201812250648.wBP6m5tp023174@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arybchik
Date: Tue Dec 25 06:48:04 2018
New Revision: 342410
URL: https://svnweb.freebsd.org/changeset/base/342410

Log:
  MFC r340800
  
  sfxge(4): let caller know that queue is already flushed
  
  Tx/Rx queue may be already flushed due to Tx/Rx error on the queue or
  MC reboot. Caller needs to know that the queue is already flushed to
  avoid waiting for flush done event.
  
  Submitted by:   Andy Moreton <amoreton at solarflare.com>
  Sponsored by:   Solarflare Communications, Inc.
  Differential Revision:  https://reviews.freebsd.org/D18070

Modified:
  stable/11/sys/dev/sfxge/common/ef10_rx.c
  stable/11/sys/dev/sfxge/common/ef10_tx.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/sfxge/common/ef10_rx.c
==============================================================================
--- stable/11/sys/dev/sfxge/common/ef10_rx.c	Tue Dec 25 06:47:20 2018	(r342409)
+++ stable/11/sys/dev/sfxge/common/ef10_rx.c	Tue Dec 25 06:48:04 2018	(r342410)
@@ -130,7 +130,7 @@ efx_mcdi_fini_rxq(
 
 	efx_mcdi_execute_quiet(enp, &req);
 
-	if ((req.emr_rc != 0) && (req.emr_rc != MC_CMD_ERR_EALREADY)) {
+	if ((req.emr_rc != 0) && (req.emr_rc != EALREADY)) {
 		rc = req.emr_rc;
 		goto fail1;
 	}

Modified: stable/11/sys/dev/sfxge/common/ef10_tx.c
==============================================================================
--- stable/11/sys/dev/sfxge/common/ef10_tx.c	Tue Dec 25 06:47:20 2018	(r342409)
+++ stable/11/sys/dev/sfxge/common/ef10_tx.c	Tue Dec 25 06:48:04 2018	(r342410)
@@ -151,7 +151,7 @@ efx_mcdi_fini_txq(
 
 	efx_mcdi_execute_quiet(enp, &req);
 
-	if ((req.emr_rc != 0) && (req.emr_rc != MC_CMD_ERR_EALREADY)) {
+	if ((req.emr_rc != 0) && (req.emr_rc != EALREADY)) {
 		rc = req.emr_rc;
 		goto fail1;
 	}



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