diff options
author | 2013-05-31 18:36:12 +0100 | |
---|---|---|
committer | 2013-12-12 22:06:56 +0000 | |
commit | 1e0b8120b2aef503f480b0e0182d7a7304acfb3d (patch) | |
tree | 67abe4f3dde3b2669ba7c4f655c3c211aa914120 /net/tipc | |
parent | sfc: Add new sensor names (diff) | |
download | linux-dev-1e0b8120b2aef503f480b0e0182d7a7304acfb3d.tar.xz linux-dev-1e0b8120b2aef503f480b0e0182d7a7304acfb3d.zip |
sfc: Log all unexpected MCDI errors
Split each of efx_mcdi_rpc, efx_mcdi_rpc_finish, and efx_mcdi_rpc_async into
a normal and a _quiet version; made the former log MCDI errors with
netif_err (and include the raw MCDI error code), and the latter never log
them at all. Changed various callers; any where some errors are expected
(but others are not) call the _quiet version and then if necessary log the
MCDI error themselves. Said logging is done by new efx_mcdi_display_error.
Callers of efx_mcdi_rpc*_quiet functions which may want to log the error
need to ensure that their outbuf is big enough to hold an MCDI error; to
this end, they now use MCDI_DECLARE_BUF_OUT_OR_ERR, which always allocates
at least 8 bytes.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions