From: Richard Houldsworth Date: Mon, 10 Jun 2019 07:38:22 +0000 (+0100) Subject: net/sfc/base: add capabilities for bundle partition X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=51781c706f409f28aa1240289b7394dc413ee565;p=dpdk.git net/sfc/base: add capabilities for bundle partition Signed-off-by: Richard Houldsworth Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/base/ef10_nic.c b/drivers/net/sfc/base/ef10_nic.c index 052b4ff04d..27508e1992 100644 --- a/drivers/net/sfc/base/ef10_nic.c +++ b/drivers/net/sfc/base/ef10_nic.c @@ -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. diff --git a/drivers/net/sfc/base/efx.h b/drivers/net/sfc/base/efx.h index 700c99841c..879bc8d7f9 100644 --- a/drivers/net/sfc/base/efx.h +++ b/drivers/net/sfc/base/efx.h @@ -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;