net/i40e/base: update FW AQ API version to 1.7
[dpdk.git] / drivers / net / i40e / base / i40e_common.c
index bb4b7eb..9895a77 100644 (file)
@@ -1692,8 +1692,9 @@ enum i40e_status_code i40e_aq_get_phy_capabilities(struct i40e_hw *hw,
                status = I40E_ERR_UNKNOWN_PHY;
 
        if (report_init) {
-               if (hw->aq.api_maj_ver == I40E_FW_API_VERSION_MAJOR &&
-                   hw->aq.api_min_ver >= 7) {
+               if (hw->mac.type ==  I40E_MAC_XL710 &&
+                   hw->aq.api_maj_ver == I40E_FW_API_VERSION_MAJOR &&
+                   hw->aq.api_min_ver >= I40E_MINOR_VER_GET_LINK_INFO_XL710) {
                        status = i40e_aq_get_link_info(hw, true, NULL, NULL);
                } else {
                        hw->phy.phy_types = LE32_TO_CPU(abilities->phy_type);
@@ -7370,11 +7371,6 @@ i40e_write_profile(struct i40e_hw *hw, struct i40e_profile_segment *profile,
        u32 offset = 0, info = 0;
        u32 i;
 
-       if (!track_id) {
-               i40e_debug(hw, I40E_DEBUG_PACKAGE, "Track_id can't be 0.");
-               return I40E_NOT_SUPPORTED;
-       }
-
        dev_cnt = profile->device_table_count;
 
        for (i = 0; i < dev_cnt; i++) {
@@ -7449,6 +7445,6 @@ i40e_add_pinfo_to_list(struct i40e_hw *hw,
        memcpy(pinfo->name, profile->name, I40E_DDP_NAME_SIZE);
 
        status = i40e_aq_write_ddp(hw, (void *)sec, sec->data_end,
-                               track_id, &offset, &info, NULL);
+                                  track_id, &offset, &info, NULL);
        return status;
 }