diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2021-05-06 08:39:57 -0700 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2021-06-07 08:59:01 -0700 |
commit | d5f84ae95f1db8e3d3ff3ece8ddbfd6f0a8ceb61 (patch) | |
tree | 9985a48426996aa79ed94faa818cb28d621c35c9 | |
parent | 96cf4f689bf7e074c8ab8917a82a24114370cbeb (diff) | |
download | linux-stable-d5f84ae95f1db8e3d3ff3ece8ddbfd6f0a8ceb61.tar.gz linux-stable-d5f84ae95f1db8e3d3ff3ece8ddbfd6f0a8ceb61.tar.bz2 linux-stable-d5f84ae95f1db8e3d3ff3ece8ddbfd6f0a8ceb61.zip |
ice: add extack when unable to read device caps
When filling out information for the DEVLINK_CMD_INFO_GET, the driver
needs to read some device capabilities. Add an extack message to
properly inform the caller of the failure, as we do for other failures
in this function.
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_devlink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_devlink.c b/drivers/net/ethernet/intel/ice/ice_devlink.c index cf685eeea198..2923591d01ea 100644 --- a/drivers/net/ethernet/intel/ice/ice_devlink.c +++ b/drivers/net/ethernet/intel/ice/ice_devlink.c @@ -283,6 +283,9 @@ static int ice_devlink_info_get(struct devlink *devlink, /* discover capabilities first */ status = ice_discover_dev_caps(hw, &ctx->dev_caps); if (status) { + dev_dbg(dev, "Failed to discover device capabilities, status %s aq_err %s\n", + ice_stat_str(status), ice_aq_str(hw->adminq.sq_last_status)); + NL_SET_ERR_MSG_MOD(extack, "Unable to discover device capabilities"); err = -EIO; goto out_free_ctx; } |