summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/ethtool_common.h
diff options
context:
space:
mode:
authorEdward Cree <ecree@solarflare.com>2020-07-02 18:31:43 +0200
committerDavid S. Miller <davem@davemloft.net>2020-07-02 23:47:40 +0200
commitbcacac7a8cd9939a991fd20acb1b9f57251363b9 (patch)
tree6dd2892e7c5e5ca3a774c12d3db69eb1b965ab62 /drivers/net/ethernet/sfc/ethtool_common.h
parentsfc: initialise RSS context ID to 'no RSS context' in efx_init_struct() (diff)
downloadlinux-bcacac7a8cd9939a991fd20acb1b9f57251363b9.tar.xz
linux-bcacac7a8cd9939a991fd20acb1b9f57251363b9.zip
sfc: get drvinfo driver name from outside the common code
Since ethtool_common.o will be built into both sfc and sfc_ef100 drivers, it can't use KBUILD_MODNAME directly. Instead, make it reference a string provided by the individual driver code. Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/ethtool_common.h')
-rw-r--r--drivers/net/ethernet/sfc/ethtool_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/ethtool_common.h b/drivers/net/ethernet/sfc/ethtool_common.h
index 7bfbbd08a1ef..3f3aaa92fbb5 100644
--- a/drivers/net/ethernet/sfc/ethtool_common.h
+++ b/drivers/net/ethernet/sfc/ethtool_common.h
@@ -11,6 +11,8 @@
#ifndef EFX_ETHTOOL_COMMON_H
#define EFX_ETHTOOL_COMMON_H
+extern const char *efx_driver_name;
+
void efx_ethtool_get_drvinfo(struct net_device *net_dev,
struct ethtool_drvinfo *info);
u32 efx_ethtool_get_msglevel(struct net_device *net_dev);