Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2018 18:53:29 +0000 (UTC)
From:      Stephen Hurd <shurd@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: r334178 - stable/11/sys/dev/bnxt
Message-ID:  <201805241853.w4OIrTA8043062@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: shurd
Date: Thu May 24 18:53:29 2018
New Revision: 334178
URL: https://svnweb.freebsd.org/changeset/base/334178

Log:
  MFC: r333792
  
  Avoid spurious warnings when hardware LRO is enabled by not attempting
  to configure invalid VNICs.
  
  Approved by:	re (gjb)
  Submitted by:   bhargava.marreddy@broadcom.com
  Sponsored by:   Broadcom Limited

Modified:
  stable/11/sys/dev/bnxt/bnxt_hwrm.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/bnxt/bnxt_hwrm.c
==============================================================================
--- stable/11/sys/dev/bnxt/bnxt_hwrm.c	Thu May 24 18:49:19 2018	(r334177)
+++ stable/11/sys/dev/bnxt/bnxt_hwrm.c	Thu May 24 18:53:29 2018	(r334178)
@@ -1017,6 +1017,10 @@ bnxt_hwrm_vnic_tpa_cfg(struct bnxt_softc *softc)
 	struct hwrm_vnic_tpa_cfg_input req = {0};
 	uint32_t flags;
 
+	if (softc->vnic_info.id == (uint16_t) HWRM_NA_SIGNATURE) {
+		return 0;
+	}
+
 	bnxt_hwrm_cmd_hdr_init(softc, &req, HWRM_VNIC_TPA_CFG);
 
 	if (softc->hw_lro.enable) {



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