ice: change "can't set link" message to dbg level
authorJonathan Toppins <jtoppins@redhat.com>
Thu, 3 Feb 2022 17:45:16 +0000 (12:45 -0500)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 9 Mar 2022 16:02:58 +0000 (08:02 -0800)
In the case where the link is owned by manageability, the firmware is
not allowed to set the link state, so an error code is returned.
This however is non-fatal and there is nothing the operator can do,
so instead of confusing the operator with messages they can do nothing
about hide this message behind the debug log level.

Signed-off-by: Jonathan Toppins <jtoppins@redhat.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c

index 113a2c56c14cefa960e3b313cadc2a49b048e652..b897926f817d191b83e7a75a180358fb70de50d8 100644 (file)
@@ -3960,9 +3960,9 @@ int ice_set_link(struct ice_vsi *vsi, bool ena)
         */
        if (status == -EIO) {
                if (hw->adminq.sq_last_status == ICE_AQ_RC_EMODE)
-                       dev_warn(dev, "can't set link to %s, err %d aq_err %s. not fatal, continuing\n",
-                                (ena ? "ON" : "OFF"), status,
-                                ice_aq_str(hw->adminq.sq_last_status));
+                       dev_dbg(dev, "can't set link to %s, err %d aq_err %s. not fatal, continuing\n",
+                               (ena ? "ON" : "OFF"), status,
+                               ice_aq_str(hw->adminq.sq_last_status));
        } else if (status) {
                dev_err(dev, "can't set link to %s, err %d aq_err %s\n",
                        (ena ? "ON" : "OFF"), status,