Message ID | 1602411781-6012-1-git-send-email-michael.chan@broadcom.com |
---|---|
Headers | show |
Series | bnxt_en: Updates for net-next. | expand |
On Sun, 11 Oct 2020 06:23:01 -0400 Michael Chan wrote: > + rc = bnxt_hwrm_nvm_get_dev_info(bp, &nvm_dev_info); > + if (rc) > + return rc; This will not cause an error to be returned for the entire operation on older FW or HW, right? > + if (!(nvm_dev_info.flags & NVM_GET_DEV_INFO_RESP_FLAGS_FW_VER_VALID)) > + return 0; > + rc = bnxt_dl_info_put(bp, req, BNXT_VERSION_STORED, > + DEVLINK_INFO_VERSION_GENERIC_FW_ROCE, roce_ver); > return rc; return bnxt_dl_info_put(bp, req, BNXT_VERSION_STORED, DEVLINK_INFO_VERSION_GENERIC_FW_ROCE, roce_ver);
On Sun, Oct 11, 2020 at 3:02 PM Jakub Kicinski <kuba@kernel.org> wrote: > > On Sun, 11 Oct 2020 06:23:01 -0400 Michael Chan wrote: > > + rc = bnxt_hwrm_nvm_get_dev_info(bp, &nvm_dev_info); > > + if (rc) > > + return rc; > > This will not cause an error to be returned for the entire operation on > older FW or HW, right? > I don't think so. This firmware call has been around for many years. The call was recently extended to return the stored version information but older firmware will still return successfully without the stored versions. I'll ask Vasundhara to double check on this.
On Mon, Oct 12, 2020 at 4:01 AM Michael Chan <michael.chan@broadcom.com> wrote: > > On Sun, Oct 11, 2020 at 3:02 PM Jakub Kicinski <kuba@kernel.org> wrote: > > > > On Sun, 11 Oct 2020 06:23:01 -0400 Michael Chan wrote: > > > + rc = bnxt_hwrm_nvm_get_dev_info(bp, &nvm_dev_info); > > > + if (rc) > > > + return rc; > > > > This will not cause an error to be returned for the entire operation on > > older FW or HW, right? > > > > I don't think so. This firmware call has been around for many years. > The call was recently extended to return the stored version > information but older firmware will still return successfully without > the stored versions. I'll ask Vasundhara to double check on this. Yes, older firmware will return success and does not set the new flag support for stored firmware versions. Only in error cases, older or newer FW will return error. Thanks.