net/sfc/base: add capabilities for bundle partition

Signed-off-by: Richard Houldsworth <rhouldsworth@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
This commit is contained in:
Richard Houldsworth 2019-06-10 08:38:22 +01:00 committed by Ferruh Yigit
parent e5ba497b7e
commit 51781c706f
2 changed files with 11 additions and 1 deletions

View File

@ -1216,6 +1216,14 @@ ef10_get_datapath_caps(
else
encp->enc_nvram_update_verify_result_supported = B_FALSE;
/*
* Check if firmware update via the BUNDLE partition is supported
*/
if (CAP_FLAGS2(req, BUNDLE_UPDATE))
encp->enc_nvram_bundle_update_supported = B_TRUE;
else
encp->enc_nvram_bundle_update_supported = B_FALSE;
/*
* Check if firmware provides packet memory and Rx datapath
* counters.

View File

@ -1394,7 +1394,9 @@ typedef struct efx_nic_cfg_s {
uint32_t enc_required_pcie_bandwidth_mbps;
uint32_t enc_max_pcie_link_gen;
/* Firmware verifies integrity of NVRAM updates */
uint32_t enc_nvram_update_verify_result_supported;
boolean_t enc_nvram_update_verify_result_supported;
/* Firmware accepts updates via the BUNDLE partition */
boolean_t enc_nvram_bundle_update_supported;
/* Firmware support for extended MAC_STATS buffer */
uint32_t enc_mac_stats_nstats;
boolean_t enc_fec_counters;