diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2005-08-31 21:29:29 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-08-31 22:43:42 -0400 |
commit | ee05f031ec72cc06abc4002992649c3a8344d246 (patch) | |
tree | 75fdfcc259b9a62796766219df10799cd9ad342d /drivers/net | |
parent | 59f17aebabef709a32a8fc09b4cd3507f32dea01 (diff) |
[PATCH] iseries_veth: Be consistent about driver name, increment version
The iseries_veth driver tells sysfs that it's called 'iseries_veth', but if
you ask it via ethtool it thinks it's called 'veth'. I think this comes from
2.4 when the driver was called 'veth', but it's definitely called
'iseries_veth' now, so fix it.
To make sure we don't do it again define DRV_NAME and use it everywhere.
While we're at it, change the version number to 2.0, to reflect the changes
made in this patch series.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/iseries_veth.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/net/iseries_veth.c b/drivers/net/iseries_veth.c index a3855e94fbc5..dc5d089bf184 100644 --- a/drivers/net/iseries_veth.c +++ b/drivers/net/iseries_veth.c | |||
@@ -125,6 +125,9 @@ struct veth_lpevent { | |||
125 | 125 | ||
126 | }; | 126 | }; |
127 | 127 | ||
128 | #define DRV_NAME "iseries_veth" | ||
129 | #define DRV_VERSION "2.0" | ||
130 | |||
128 | #define VETH_NUMBUFFERS (120) | 131 | #define VETH_NUMBUFFERS (120) |
129 | #define VETH_ACKTIMEOUT (1000000) /* microseconds */ | 132 | #define VETH_ACKTIMEOUT (1000000) /* microseconds */ |
130 | #define VETH_MAX_MCAST (12) | 133 | #define VETH_MAX_MCAST (12) |
@@ -227,14 +230,14 @@ static void veth_timed_reset(unsigned long ptr); | |||
227 | */ | 230 | */ |
228 | 231 | ||
229 | #define veth_info(fmt, args...) \ | 232 | #define veth_info(fmt, args...) \ |
230 | printk(KERN_INFO "iseries_veth: " fmt, ## args) | 233 | printk(KERN_INFO DRV_NAME ": " fmt, ## args) |
231 | 234 | ||
232 | #define veth_error(fmt, args...) \ | 235 | #define veth_error(fmt, args...) \ |
233 | printk(KERN_ERR "iseries_veth: Error: " fmt, ## args) | 236 | printk(KERN_ERR DRV_NAME ": Error: " fmt, ## args) |
234 | 237 | ||
235 | #ifdef DEBUG | 238 | #ifdef DEBUG |
236 | #define veth_debug(fmt, args...) \ | 239 | #define veth_debug(fmt, args...) \ |
237 | printk(KERN_DEBUG "iseries_veth: " fmt, ## args) | 240 | printk(KERN_DEBUG DRV_NAME ": " fmt, ## args) |
238 | #else | 241 | #else |
239 | #define veth_debug(fmt, args...) do {} while (0) | 242 | #define veth_debug(fmt, args...) do {} while (0) |
240 | #endif | 243 | #endif |
@@ -997,9 +1000,10 @@ static void veth_set_multicast_list(struct net_device *dev) | |||
997 | 1000 | ||
998 | static void veth_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) | 1001 | static void veth_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) |
999 | { | 1002 | { |
1000 | strncpy(info->driver, "veth", sizeof(info->driver) - 1); | 1003 | strncpy(info->driver, DRV_NAME, sizeof(info->driver) - 1); |
1001 | info->driver[sizeof(info->driver) - 1] = '\0'; | 1004 | info->driver[sizeof(info->driver) - 1] = '\0'; |
1002 | strncpy(info->version, "1.0", sizeof(info->version) - 1); | 1005 | strncpy(info->version, DRV_VERSION, sizeof(info->version) - 1); |
1006 | info->version[sizeof(info->version) - 1] = '\0'; | ||
1003 | } | 1007 | } |
1004 | 1008 | ||
1005 | static int veth_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) | 1009 | static int veth_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) |
@@ -1642,7 +1646,7 @@ static struct vio_device_id veth_device_table[] __devinitdata = { | |||
1642 | MODULE_DEVICE_TABLE(vio, veth_device_table); | 1646 | MODULE_DEVICE_TABLE(vio, veth_device_table); |
1643 | 1647 | ||
1644 | static struct vio_driver veth_driver = { | 1648 | static struct vio_driver veth_driver = { |
1645 | .name = "iseries_veth", | 1649 | .name = DRV_NAME, |
1646 | .id_table = veth_device_table, | 1650 | .id_table = veth_device_table, |
1647 | .probe = veth_probe, | 1651 | .probe = veth_probe, |
1648 | .remove = veth_remove | 1652 | .remove = veth_remove |