sfc: fix devlink info error handling
authorAlejandro Lucero <alejandro.lucero-palau@amd.com>
Thu, 18 May 2023 05:48:22 +0000 (06:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 May 2023 07:55:56 +0000 (08:55 +0100)
commitcfcb942863f6fce9266e1957a021e6c7295dee42
treea69586a13d72931f26a95cfbd67242183423afce
parent35112271672ae98f45df7875244a4e33aa215e31
sfc: fix devlink info error handling

Avoid early devlink info return if errors arise with MCDI commands
executed for getting the required info from the device. The rationale
is some commands can fail but later ones could still give useful data.
Moreover, some nvram partitions could not be present which needs to be
handled as a non error.

The specific errors are reported through system messages and if any
error appears, it will be reported generically through extack.

Fixes 14743ddd2495 ("sfc: add devlink info support for ef100")
Signed-off-by: Alejandro Lucero <alejandro.lucero-palau@amd.com>
Acked-by: Martin Habets <habetsm.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/efx_devlink.c