aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/efx_common.h
diff options
context:
space:
mode:
authorAlex Maftei (amaftei) <amaftei@solarflare.com>2020-01-09 15:45:45 +0000
committerDavid S. Miller <davem@davemloft.net>2020-01-09 10:58:35 -0800
commitb69f7a3e53ff4bc966e56b62af955fdfa10ffa7d (patch)
tree39cd03df1c26fe206e38fef228b8a961c65ba3dd /drivers/net/ethernet/sfc/efx_common.h
parentb5775b476ef7b28a3895335a2b8533e10ba36b16 (diff)
downloadkernel_replicant_linux-b69f7a3e53ff4bc966e56b62af955fdfa10ffa7d.tar.gz
kernel_replicant_linux-b69f7a3e53ff4bc966e56b62af955fdfa10ffa7d.tar.bz2
kernel_replicant_linux-b69f7a3e53ff4bc966e56b62af955fdfa10ffa7d.zip
sfc: move MCDI logging device attribute
A few bits were extracted from other functions. Signed-off-by: Alexandru-Mihai Maftei <amaftei@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/efx_common.h')
-rw-r--r--drivers/net/ethernet/sfc/efx_common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/efx_common.h b/drivers/net/ethernet/sfc/efx_common.h
index c602e5257088..e03404d1dc0a 100644
--- a/drivers/net/ethernet/sfc/efx_common.h
+++ b/drivers/net/ethernet/sfc/efx_common.h
@@ -55,6 +55,14 @@ static inline int efx_check_disabled(struct efx_nic *efx)
return 0;
}
+#ifdef CONFIG_SFC_MCDI_LOGGING
+void efx_init_mcdi_logging(struct efx_nic *efx);
+void efx_fini_mcdi_logging(struct efx_nic *efx);
+#else
+static inline void efx_init_mcdi_logging(struct efx_nic *efx) {}
+static inline void efx_fini_mcdi_logging(struct efx_nic *efx) {}
+#endif
+
void efx_mac_reconfigure(struct efx_nic *efx);
void efx_link_status_changed(struct efx_nic *efx);