diff options
author | Edward Cree <ecree@solarflare.com> | 2015-05-27 14:14:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-27 19:54:51 +0200 |
commit | e7fef9b45ae188066bb6eb3dde8310d33c2f7d5e (patch) | |
tree | da1beb9d41e358b394c2ebd6ae3a3f756b5ffeb4 /drivers/net/ethernet/sfc/mcdi.h | |
parent | sfc: add tracing of MCDI commands (diff) | |
download | linux-e7fef9b45ae188066bb6eb3dde8310d33c2f7d5e.tar.xz linux-e7fef9b45ae188066bb6eb3dde8310d33c2f7d5e.zip |
sfc: add sysfs entry to control MCDI tracing
MCDI tracing is enabled per-function with a sysfs file
/sys/class/net/<NET_DEV>/device/mcdi_logging
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/mcdi.h')
-rw-r--r-- | drivers/net/ethernet/sfc/mcdi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/mcdi.h b/drivers/net/ethernet/sfc/mcdi.h index b783a2dff80f..1838afe2da92 100644 --- a/drivers/net/ethernet/sfc/mcdi.h +++ b/drivers/net/ethernet/sfc/mcdi.h @@ -59,6 +59,7 @@ enum efx_mcdi_mode { * @async_list: Queue of asynchronous requests * @async_timer: Timer for asynchronous request timeout * @logging_buffer: buffer that may be used to build MCDI tracing messages + * @logging_enabled: whether to trace MCDI */ struct efx_mcdi_iface { struct efx_nic *efx; @@ -77,6 +78,7 @@ struct efx_mcdi_iface { struct timer_list async_timer; #ifdef CONFIG_SFC_MCDI_LOGGING char *logging_buffer; + bool logging_enabled; #endif }; |