ice: Use dev_err when ice_cfg_vsi_lan fails
authorBrett Creeley <brett.creeley@intel.com>
Thu, 28 Feb 2019 23:26:02 +0000 (15:26 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 2 May 2019 08:29:13 +0000 (01:29 -0700)
dev_err makes more sense than dev_info when this call fails.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c

index 3999053..49c7537 100644 (file)
@@ -2368,7 +2368,9 @@ ice_vsi_setup(struct ice_pf *pf, struct ice_port_info *pi,
        ret = ice_cfg_vsi_lan(vsi->port_info, vsi->idx, vsi->tc_cfg.ena_tc,
                              max_txqs);
        if (ret) {
-               dev_info(&pf->pdev->dev, "Failed VSI lan queue config\n");
+               dev_err(&pf->pdev->dev,
+                       "VSI %d failed lan queue config, error %d\n",
+                       vsi->vsi_num, ret);
                goto unroll_vector_base;
        }
 
@@ -2869,8 +2871,9 @@ int ice_vsi_rebuild(struct ice_vsi *vsi)
        ret = ice_cfg_vsi_lan(vsi->port_info, vsi->idx, vsi->tc_cfg.ena_tc,
                              max_txqs);
        if (ret) {
-               dev_info(&vsi->back->pdev->dev,
-                        "Failed VSI lan queue config\n");
+               dev_err(&pf->pdev->dev,
+                       "VSI %d failed lan queue config, error %d\n",
+                       vsi->vsi_num, ret);
                goto err_vectors;
        }
        return 0;