Skip to content

Commit de9b277

Browse files
jnaczykdavem330
authored andcommitted
ice: Add support for unified NVM update flow capability
Extends function parsing response from Discover Device Capability AQC to check if the device supports unified NVM update flow. Signed-off-by: Jacek Naczyk <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b826562 commit de9b277

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

drivers/net/ethernet/intel/ice/ice_adminq_cmd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ struct ice_aqc_list_caps_elem {
109109
#define ICE_AQC_CAPS_MSIX 0x0043
110110
#define ICE_AQC_CAPS_FD 0x0045
111111
#define ICE_AQC_CAPS_MAX_MTU 0x0047
112+
#define ICE_AQC_CAPS_NVM_MGMT 0x0080
112113

113114
u8 major_ver;
114115
u8 minor_ver;

drivers/net/ethernet/intel/ice/ice_common.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,6 +1857,13 @@ ice_parse_common_caps(struct ice_hw *hw, struct ice_hw_common_caps *caps,
18571857
"%s: msix_vector_first_id = %d\n", prefix,
18581858
caps->msix_vector_first_id);
18591859
break;
1860+
case ICE_AQC_CAPS_NVM_MGMT:
1861+
caps->nvm_unified_update =
1862+
(number & ICE_NVM_MGMT_UNIFIED_UPD_SUPPORT) ?
1863+
true : false;
1864+
ice_debug(hw, ICE_DBG_INIT, "%s: nvm_unified_update = %d\n", prefix,
1865+
caps->nvm_unified_update);
1866+
break;
18601867
case ICE_AQC_CAPS_MAX_MTU:
18611868
caps->max_mtu = number;
18621869
ice_debug(hw, ICE_DBG_INIT, "%s: max_mtu = %d\n",

drivers/net/ethernet/intel/ice/ice_type.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ struct ice_hw_common_caps {
244244
u8 rss_table_entry_width; /* RSS Entry width in bits */
245245

246246
u8 dcb;
247+
248+
bool nvm_unified_update;
249+
#define ICE_NVM_MGMT_UNIFIED_UPD_SUPPORT BIT(3)
247250
};
248251

249252
/* Function specific capabilities */

0 commit comments

Comments
 (0)