]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ice: fix usage of incorrect variable
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Sat, 16 May 2020 00:36:36 +0000 (17:36 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 23 May 2020 05:26:02 +0000 (22:26 -0700)
The driver was using rq_last_status where it should have been
using sq_last_status. Fix the string to be using the correct
error reporting variable.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@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_ethtool.c
drivers/net/ethernet/intel/ice/ice_main.c

index 477ad33e040343e10d4d43ef8f145e6beb1f84c3..f39d4eb7fd8b262f5f995b0f541650d0e083e2a1 100644 (file)
@@ -3251,7 +3251,7 @@ static int ice_vsi_set_dflt_rss_lut(struct ice_vsi *vsi, int req_rss_size)
        if (status) {
                dev_err(dev, "Cannot set RSS lut, err %s aq_err %s\n",
                        ice_stat_str(status),
-                       ice_aq_str(hw->adminq.rq_last_status));
+                       ice_aq_str(hw->adminq.sq_last_status));
                err = -EIO;
        }
 
index 5adf6c92872d4ccf9b2cdfb37ec7f5c2da36c4d2..6e6df4d690cc33a28b7784230c193cc3e37a7368 100644 (file)
@@ -5232,7 +5232,7 @@ int ice_set_rss(struct ice_vsi *vsi, u8 *seed, u8 *lut, u16 lut_size)
                if (status) {
                        dev_err(dev, "Cannot set RSS key, err %s aq_err %s\n",
                                ice_stat_str(status),
-                               ice_aq_str(hw->adminq.rq_last_status));
+                               ice_aq_str(hw->adminq.sq_last_status));
                        return -EIO;
                }
        }
@@ -5243,7 +5243,7 @@ int ice_set_rss(struct ice_vsi *vsi, u8 *seed, u8 *lut, u16 lut_size)
                if (status) {
                        dev_err(dev, "Cannot set RSS lut, err %s aq_err %s\n",
                                ice_stat_str(status),
-                               ice_aq_str(hw->adminq.rq_last_status));
+                               ice_aq_str(hw->adminq.sq_last_status));
                        return -EIO;
                }
        }
@@ -5276,7 +5276,7 @@ int ice_get_rss(struct ice_vsi *vsi, u8 *seed, u8 *lut, u16 lut_size)
                if (status) {
                        dev_err(dev, "Cannot get RSS key, err %s aq_err %s\n",
                                ice_stat_str(status),
-                               ice_aq_str(hw->adminq.rq_last_status));
+                               ice_aq_str(hw->adminq.sq_last_status));
                        return -EIO;
                }
        }
@@ -5287,7 +5287,7 @@ int ice_get_rss(struct ice_vsi *vsi, u8 *seed, u8 *lut, u16 lut_size)
                if (status) {
                        dev_err(dev, "Cannot get RSS lut, err %s aq_err %s\n",
                                ice_stat_str(status),
-                               ice_aq_str(hw->adminq.rq_last_status));
+                               ice_aq_str(hw->adminq.sq_last_status));
                        return -EIO;
                }
        }