Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Nov 2018 15:59:38 +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: r340836 - head/sys/dev/sfxge/common
Message-ID:  <201811231559.wANFxcrL010084@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arybchik
Date: Fri Nov 23 15:59:37 2018
New Revision: 340836
URL: https://svnweb.freebsd.org/changeset/base/340836

Log:
  sfxge(4): use MCDIv2 for requests with too long response
  
  Use MCDIv2 for requests with a response size too long for MCDIv1.
  
  Required for MC_CMD_MAC_STATS to reports the stats without using DMA.
  
  Submitted by:   Mark Spender <mspender at solarflare.com>
  Sponsored by:   Solarflare Communications, Inc.
  Differential Revision:  https://reviews.freebsd.org/D18103

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	Fri Nov 23 15:49:18 2018	(r340835)
+++ head/sys/dev/sfxge/common/efx_mcdi.c	Fri Nov 23 15:59:37 2018	(r340836)
@@ -295,7 +295,8 @@ efx_mcdi_request_start(
 	 */
 	if ((max_version >= 2) &&
 	    ((emrp->emr_cmd > MC_CMD_CMD_SPACE_ESCAPE_7) ||
-	    (emrp->emr_in_length > MCDI_CTL_SDU_LEN_MAX_V1))) {
+	    (emrp->emr_in_length > MCDI_CTL_SDU_LEN_MAX_V1) ||
+	    (emrp->emr_out_length > MCDI_CTL_SDU_LEN_MAX_V1))) {
 		/* Construct MCDI v2 header */
 		hdr_len = sizeof (hdr);
 		EFX_POPULATE_DWORD_8(hdr[0],



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