Skip to contentSkip to conversation

e100, e1000, ixgb: add MODULE_VERSION tags

PATCH In review Matt Domsch 2 participants 2 messages Nov 2, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 e100, e1000, ixgb: add MODULE_VERSION tags

Patch below adds MODULE_VERSION tags to the e100, e1000, and ixgb drivers. Tools like DKMS will make use of this information to determine if a given driver is older or newer than another given driver based on this version number.

Signature · 58 lines
Matt Domsch
Sr. Software Engineer, Lead Engineer
Dell Linux Solutions linux.dell.com & www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com

===== drivers/net/e100.c 1.30 vs edited =====
--- 1.30/drivers/net/e100.c	2004-10-25 02:27:41 -05:00
+++ edited/drivers/net/e100.c	2004-11-02 12:49:44 -06:00
@@ -166,6 +166,7 @@
 MODULE_DESCRIPTION(DRV_DESCRIPTION);
 MODULE_AUTHOR(DRV_COPYRIGHT);
 MODULE_LICENSE("GPL");
+MODULE_VERSION(DRV_VERSION);
 
 static int debug = 3;
 module_param(debug, int, 0);
===== drivers/net/e1000/e1000_main.c 1.137 vs edited =====
--- 1.137/drivers/net/e1000/e1000_main.c	2004-10-25 22:41:15 -05:00
+++ edited/drivers/net/e1000/e1000_main.c	2004-11-02 12:55:04 -06:00
@@ -48,7 +48,8 @@
 #else
 #define DRIVERNAPI "-NAPI"
 #endif
-char e1000_driver_version[] = "5.5.4-k2"DRIVERNAPI;
+#define DRV_VERSION "5.5.4-k2"DRIVERNAPI
+char e1000_driver_version[] = DRV_VERSION;
 char e1000_copyright[] = "Copyright (c) 1999-2004 Intel Corporation.";
 
 /* e1000_pci_tbl - PCI Device ID Table
@@ -196,6 +197,7 @@
 MODULE_AUTHOR("Intel Corporation, <[email protected]>");
 MODULE_DESCRIPTION("Intel(R) PRO/1000 Network Driver");
 MODULE_LICENSE("GPL");
+MODULE_VERSION(DRV_VERSION);
 
 static int debug = NETIF_MSG_DRV | NETIF_MSG_PROBE;
 module_param(debug, int, 0);
===== drivers/net/ixgb/ixgb_main.c 1.18 vs edited =====
--- 1.18/drivers/net/ixgb/ixgb_main.c	2004-10-25 20:04:30 -05:00
+++ edited/drivers/net/ixgb/ixgb_main.c	2004-11-02 12:56:03 -06:00
@@ -30,7 +30,8 @@
 
 char ixgb_driver_name[] = "ixgb";
 char ixgb_driver_string[] = "Intel(R) PRO/10GbE Network Driver";
-char ixgb_driver_version[] = "1.0.66-k2";
+#define DRV_VERSION "1.0.66-k2"
+char ixgb_driver_version[] = DRV_VERSION;
 char ixgb_copyright[] = "Copyright (c) 2001-2004 Intel Corporation.";
 
 /* ixgb_pci_tbl - PCI Device ID Table
@@ -138,6 +139,7 @@
 MODULE_AUTHOR("Intel Corporation, <[email protected]>");
 MODULE_DESCRIPTION("Intel(R) PRO/10GbE Network Driver");
 MODULE_LICENSE("GPL");
+MODULE_VERSION(DRV_VERSION);
 
 /* some defines for controlling descriptor fetches in h/w */
 #define RXDCTL_PTHRESH_DEFAULT 128	/* chip considers prefech below this */
#1 lore raw
Quoted 2 lines · Matt Domsch

Patch below adds MODULE_VERSION tags to the e100, e1000, and ixgb drivers. Tools like DKMS will make use of this information to

I had recently posted patches to this effect for e100, e1000 (nearly identical to yours) and several others. I did not, however, include ixgb, so I'm sure that one will be quite welcome! :-)

John

Signature · 2 lines
John W. Linville
[email protected]