Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Dec 2018 16:13:48 +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-12@freebsd.org
Subject:   svn commit: r342331 - stable/12/sys/dev/sfxge/common
Message-ID:  <201812211613.wBLGDmhY074352@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arybchik
Date: Fri Dec 21 16:13:48 2018
New Revision: 342331
URL: https://svnweb.freebsd.org/changeset/base/342331

Log:
  MFC r340896
  
  sfxge(4): remove Falcon-specific concurrency check
  
  Falcon support has been withdrawn from libefx, however, there is still
  an obsolete Falcon-specific assertion that efx_mac_stats_upload()
  and efx_port_poll() aren't concurrent. To be consistent with an overall
  Falcon support revocation it's desirable to remove it.
  
  Fix debug build invalid assertion failure.
  
  Submitted by:   Ivan Malov <ivan.malov at oktetlabs.ru>
  Sponsored by:   Solarflare Communications, Inc.
  Differential Revision:  https://reviews.freebsd.org/D18130

Modified:
  stable/12/sys/dev/sfxge/common/efx_impl.h
  stable/12/sys/dev/sfxge/common/efx_mac.c
  stable/12/sys/dev/sfxge/common/efx_port.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/sfxge/common/efx_impl.h
==============================================================================
--- stable/12/sys/dev/sfxge/common/efx_impl.h	Fri Dec 21 16:12:59 2018	(r342330)
+++ stable/12/sys/dev/sfxge/common/efx_impl.h	Fri Dec 21 16:13:48 2018	(r342331)
@@ -287,7 +287,6 @@ typedef struct efx_port_s {
 	uint32_t		ep_default_adv_cap_mask;
 	uint32_t		ep_phy_cap_mask;
 	boolean_t		ep_mac_drain;
-	boolean_t		ep_mac_stats_pending;
 #if EFSYS_OPT_BIST
 	efx_bist_type_t		ep_current_bist;
 #endif

Modified: stable/12/sys/dev/sfxge/common/efx_mac.c
==============================================================================
--- stable/12/sys/dev/sfxge/common/efx_mac.c	Fri Dec 21 16:12:59 2018	(r342330)
+++ stable/12/sys/dev/sfxge/common/efx_mac.c	Fri Dec 21 16:13:48 2018	(r342331)
@@ -731,16 +731,9 @@ efx_mac_stats_upload(
 	EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT);
 	EFSYS_ASSERT(emop != NULL);
 
-	/*
-	 * Don't assert !ep_mac_stats_pending, because the client might
-	 * have failed to finalise statistics when previously stopping
-	 * the port.
-	 */
 	if ((rc = emop->emo_stats_upload(enp, esmp)) != 0)
 		goto fail1;
 
-	epp->ep_mac_stats_pending = B_TRUE;
-
 	return (0);
 
 fail1:
@@ -800,8 +793,6 @@ efx_mac_stats_update(
 	EFSYS_ASSERT(emop != NULL);
 
 	rc = emop->emo_stats_update(enp, esmp, essp, generationp);
-	if (rc == 0)
-		epp->ep_mac_stats_pending = B_FALSE;
 
 	return (rc);
 }

Modified: stable/12/sys/dev/sfxge/common/efx_port.c
==============================================================================
--- stable/12/sys/dev/sfxge/common/efx_port.c	Fri Dec 21 16:12:59 2018	(r342330)
+++ stable/12/sys/dev/sfxge/common/efx_port.c	Fri Dec 21 16:13:48 2018	(r342331)
@@ -114,7 +114,6 @@ efx_port_poll(
 	EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT);
 
 	EFSYS_ASSERT(emop != NULL);
-	EFSYS_ASSERT(!epp->ep_mac_stats_pending);
 
 	if (link_modep == NULL)
 		link_modep = &ignore_link_mode;



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