From c972114178b74a90c5ded1c979a4d16ebfa6ab48 Mon Sep 17 00:00:00 2001 From: Jim Ma Date: Sat, 26 Nov 2022 18:19:57 +0800 Subject: [PATCH] update ethtool version Signed-off-by: Jim Ma --- igc.h | 1 + igc_ethtool.c | 1 + igc_main.c | 2 ++ 3 files changed, 4 insertions(+) diff --git a/igc.h b/igc.h index e549387..20785ff 100644 --- a/igc.h +++ b/igc.h @@ -244,6 +244,7 @@ void igc_rings_dump(struct igc_adapter *adapter); void igc_regs_dump(struct igc_adapter *adapter); extern char igc_driver_name[]; +extern char igc_driver_version[]; #define IGC_REGS_LEN 740 diff --git a/igc_ethtool.c b/igc_ethtool.c index a0fed0e..ce5539f 100644 --- a/igc_ethtool.c +++ b/igc_ethtool.c @@ -144,6 +144,7 @@ static void igc_ethtool_get_drvinfo(struct net_device *netdev, u16 gphy_version; strscpy(drvinfo->driver, igc_driver_name, sizeof(drvinfo->driver)); + strscpy(drvinfo->version, igc_driver_version, sizeof(drvinfo->version)); /* NVM image version is reported as firmware version for i225 device */ hw->nvm.ops.read(hw, IGC_NVM_DEV_STARTER, 1, &nvm_version); diff --git a/igc_main.c b/igc_main.c index d5a2229..1bfe333 100644 --- a/igc_main.c +++ b/igc_main.c @@ -35,6 +35,8 @@ module_param(debug, int, 0); MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all)"); char igc_driver_name[] = "igc"; +char igc_driver_version[] = DRV_VERSION; + static const char igc_driver_string[] = DRV_SUMMARY; static const char igc_copyright[] = "Copyright(c) 2018 Intel Corporation. Copyright(c) 2022 Jim Ma.";