net/ice/base: add NVM pkg flag
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 29 Aug 2019 02:36:08 +0000 (10:36 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:53 +0000 (15:00 +0200)
Add flag for case where active package has been loaded from NVM.

Signed-off-by: Ashish Shah <ashish.n.shah@intel.com>
Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ice/base/ice_flex_pipe.c
drivers/net/ice/base/ice_type.h

index afb8678..5a5dbff 100644 (file)
@@ -1144,6 +1144,7 @@ static enum ice_status ice_get_pkg_info(struct ice_hw *hw)
                                   pkg_info->pkg_info[i].name,
                                   sizeof(hw->active_pkg_name),
                                   ICE_NONDMA_TO_NONDMA);
+                       hw->active_pkg_in_nvm = pkg_info->pkg_info[i].is_in_nvm;
                }
                if (pkg_info->pkg_info[i].is_active_at_boot)
                        flags[place++] = 'B';
index 0dba94a..79d7bb1 100644 (file)
@@ -773,6 +773,7 @@ struct ice_hw {
        /* Active package version (currently active) */
        struct ice_pkg_ver active_pkg_ver;
        u8 active_pkg_name[ICE_PKG_NAME_SIZE];
+       u8 active_pkg_in_nvm;
 
        /* Driver's package ver - (from the Metadata seg) */
        struct ice_pkg_ver pkg_ver;