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:   [email protected]
  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) {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to