sfc: add tracing of MCDI commands
authorEdward Cree <ecree@solarflare.com>
Wed, 27 May 2015 12:13:54 +0000 (13:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2015 17:54:51 +0000 (13:54 -0400)
commit75aba2a52d955e6721b798600b115c9d73d8995c
tree77084530e7a4972f353370262c0105ad58046bf9
parent14e1d0fa97f821b42e8683500cf4ec817bb5d940
sfc: add tracing of MCDI commands

MCDI tracing is conditional on CONFIG_SFC_MCDI_LOGGING, which is enabled
 by default.

Each MCDI command will produce a console line like
    sfc dom:bus:dev:fn ifname: MCDI RPC REQ: xxxxxxxx [yyyyyyyy...]
where xxxxxxxx etc. are the raw MCDI payload in 32-bit hex chunks.
The response will then produce a similar line with "RESP" instead of "REQ",
 and containing the MCDI response payload (if any).

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/Kconfig
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/mcdi.c
drivers/net/ethernet/sfc/mcdi.h