diff options
author | John W. Linville <linville@tuxdriver.com> | 2005-09-12 23:45:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-09-12 23:45:08 +0200 |
commit | 24b8e05dc1b03c1f80828e642838511c16e17250 (patch) | |
tree | a71afb4f32f31ab56da61966072386452e64dd32 /drivers/net/bnx2.c | |
parent | [TG3]: Add support for ETHTOOL_GPERMADDR. (diff) | |
download | linux-24b8e05dc1b03c1f80828e642838511c16e17250.tar.xz linux-24b8e05dc1b03c1f80828e642838511c16e17250.zip |
[BNX2]: Add support for ETHTOOL_GPERMADDR.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r-- | drivers/net/bnx2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 83598e32179c..3a2ace01e444 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c @@ -5015,6 +5015,7 @@ static struct ethtool_ops bnx2_ethtool_ops = { .phys_id = bnx2_phys_id, .get_stats_count = bnx2_get_stats_count, .get_ethtool_stats = bnx2_get_ethtool_stats, + .get_perm_addr = ethtool_op_get_perm_addr, }; /* Called with rtnl_lock */ @@ -5442,6 +5443,7 @@ bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) pci_set_drvdata(pdev, dev); memcpy(dev->dev_addr, bp->mac_addr, 6); + memcpy(dev->perm_addr, bp->mac_addr, 6); bp->name = board_info[ent->driver_data].name, printk(KERN_INFO "%s: %s (%c%d) PCI%s %s %dMHz found at mem %lx, " "IRQ %d, ", |