update ethtool version

Signed-off-by: Jim Ma <majinjing3@gmail.com>
This commit is contained in:
Jim Ma 2022-11-26 18:19:57 +08:00
parent 548dec7a69
commit c972114178
3 changed files with 4 additions and 0 deletions

1
igc.h
View File

@ -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

View File

@ -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);

View File

@ -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.";