diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-15 12:40:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-15 12:40:05 -0400 |
commit | 2ed0e21b30b53d3a94e204196e523e6c8f732b56 (patch) | |
tree | de2635426477d86338a9469ce09ba0626052288f /drivers/net/qlge/qlge_ethtool.c | |
parent | 0fa213310cd8fa7a51071cdcf130e26fa56e9549 (diff) | |
parent | 9cbc1cb8cd46ce1f7645b9de249b2ce8460129bb (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1244 commits)
pkt_sched: Rename PSCHED_US2NS and PSCHED_NS2US
ipv4: Fix fib_trie rebalancing
Bluetooth: Fix issue with uninitialized nsh.type in DTL-1 driver
Bluetooth: Fix Kconfig issue with RFKILL integration
PIM-SM: namespace changes
ipv4: update ARPD help text
net: use a deferred timer in rt_check_expire
ieee802154: fix kconfig bool/tristate muckup
bonding: initialization rework
bonding: use is_zero_ether_addr
bonding: network device names are case sensative
bonding: elminate bad refcount code
bonding: fix style issues
bonding: fix destructor
bonding: remove bonding read/write semaphore
bonding: initialize before registration
bonding: bond_create always called with default parameters
x_tables: Convert printk to pr_err
netfilter: conntrack: optional reliable conntrack event delivery
list_nulls: add hlist_nulls_add_head and hlist_nulls_del
...
Diffstat (limited to 'drivers/net/qlge/qlge_ethtool.c')
-rw-r--r-- | drivers/net/qlge/qlge_ethtool.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/qlge/qlge_ethtool.c b/drivers/net/qlge/qlge_ethtool.c index 913b2a5fafc9..37c99fe79770 100644 --- a/drivers/net/qlge/qlge_ethtool.c +++ b/drivers/net/qlge/qlge_ethtool.c | |||
@@ -293,7 +293,10 @@ static void ql_get_drvinfo(struct net_device *ndev, | |||
293 | struct ql_adapter *qdev = netdev_priv(ndev); | 293 | struct ql_adapter *qdev = netdev_priv(ndev); |
294 | strncpy(drvinfo->driver, qlge_driver_name, 32); | 294 | strncpy(drvinfo->driver, qlge_driver_name, 32); |
295 | strncpy(drvinfo->version, qlge_driver_version, 32); | 295 | strncpy(drvinfo->version, qlge_driver_version, 32); |
296 | strncpy(drvinfo->fw_version, "N/A", 32); | 296 | snprintf(drvinfo->fw_version, 32, "v%d.%d.%d", |
297 | (qdev->fw_rev_id & 0x00ff0000) >> 16, | ||
298 | (qdev->fw_rev_id & 0x0000ff00) >> 8, | ||
299 | (qdev->fw_rev_id & 0x000000ff)); | ||
297 | strncpy(drvinfo->bus_info, pci_name(qdev->pdev), 32); | 300 | strncpy(drvinfo->bus_info, pci_name(qdev->pdev), 32); |
298 | drvinfo->n_stats = 0; | 301 | drvinfo->n_stats = 0; |
299 | drvinfo->testinfo_len = 0; | 302 | drvinfo->testinfo_len = 0; |
@@ -401,6 +404,7 @@ const struct ethtool_ops qlge_ethtool_ops = { | |||
401 | .get_rx_csum = ql_get_rx_csum, | 404 | .get_rx_csum = ql_get_rx_csum, |
402 | .set_rx_csum = ql_set_rx_csum, | 405 | .set_rx_csum = ql_set_rx_csum, |
403 | .get_tx_csum = ethtool_op_get_tx_csum, | 406 | .get_tx_csum = ethtool_op_get_tx_csum, |
407 | .set_tx_csum = ethtool_op_set_tx_csum, | ||
404 | .get_sg = ethtool_op_get_sg, | 408 | .get_sg = ethtool_op_get_sg, |
405 | .set_sg = ethtool_op_set_sg, | 409 | .set_sg = ethtool_op_set_sg, |
406 | .get_tso = ethtool_op_get_tso, | 410 | .get_tso = ethtool_op_get_tso, |