ice: add extack when unable to read device caps
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 6 May 2021 15:39:57 +0000 (08:39 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 7 Jun 2021 15:59:01 +0000 (08:59 -0700)
commitd5f84ae95f1db8e3d3ff3ece8ddbfd6f0a8ceb61
tree9985a48426996aa79ed94faa818cb28d621c35c9
parent96cf4f689bf7e074c8ab8917a82a24114370cbeb
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>
drivers/net/ethernet/intel/ice/ice_devlink.c