Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6697
b: refs/heads/master
c: ee05f03
h: refs/heads/master
i:
  6695: ea98781
v: v3
  • Loading branch information
Michael Ellerman authored and Jeff Garzik committed Sep 1, 2005
1 parent c3640a8 commit c74c98f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 59f17aebabef709a32a8fc09b4cd3507f32dea01
refs/heads/master: ee05f031ec72cc06abc4002992649c3a8344d246
16 changes: 10 additions & 6 deletions trunk/drivers/net/iseries_veth.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ struct veth_lpevent {

};

#define DRV_NAME "iseries_veth"
#define DRV_VERSION "2.0"

#define VETH_NUMBUFFERS (120)
#define VETH_ACKTIMEOUT (1000000) /* microseconds */
#define VETH_MAX_MCAST (12)
Expand Down Expand Up @@ -227,14 +230,14 @@ static void veth_timed_reset(unsigned long ptr);
*/

#define veth_info(fmt, args...) \
printk(KERN_INFO "iseries_veth: " fmt, ## args)
printk(KERN_INFO DRV_NAME ": " fmt, ## args)

#define veth_error(fmt, args...) \
printk(KERN_ERR "iseries_veth: Error: " fmt, ## args)
printk(KERN_ERR DRV_NAME ": Error: " fmt, ## args)

#ifdef DEBUG
#define veth_debug(fmt, args...) \
printk(KERN_DEBUG "iseries_veth: " fmt, ## args)
printk(KERN_DEBUG DRV_NAME ": " fmt, ## args)
#else
#define veth_debug(fmt, args...) do {} while (0)
#endif
Expand Down Expand Up @@ -997,9 +1000,10 @@ static void veth_set_multicast_list(struct net_device *dev)

static void veth_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
{
strncpy(info->driver, "veth", sizeof(info->driver) - 1);
strncpy(info->driver, DRV_NAME, sizeof(info->driver) - 1);
info->driver[sizeof(info->driver) - 1] = '\0';
strncpy(info->version, "1.0", sizeof(info->version) - 1);
strncpy(info->version, DRV_VERSION, sizeof(info->version) - 1);
info->version[sizeof(info->version) - 1] = '\0';
}

static int veth_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd)
Expand Down Expand Up @@ -1642,7 +1646,7 @@ static struct vio_device_id veth_device_table[] __devinitdata = {
MODULE_DEVICE_TABLE(vio, veth_device_table);

static struct vio_driver veth_driver = {
.name = "iseries_veth",
.name = DRV_NAME,
.id_table = veth_device_table,
.probe = veth_probe,
.remove = veth_remove
Expand Down

0 comments on commit c74c98f

Please sign in to comment.