summaryrefslogtreecommitdiff
path: root/drivers/net/ne2k-pci.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2005-09-12 10:48:57 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-09-14 08:29:32 -0400
commit78b345890a91dc57fecea8b6792012e0098c058f (patch)
tree44ff0982df849e25efb6d5835f8bd1a0dd4bfb4a /drivers/net/ne2k-pci.c
parentdf859c519ef7b72d9be7396443316da87272e8b6 (diff)
downloadlinux-3.10-78b345890a91dc57fecea8b6792012e0098c058f.tar.gz
linux-3.10-78b345890a91dc57fecea8b6792012e0098c058f.tar.bz2
linux-3.10-78b345890a91dc57fecea8b6792012e0098c058f.zip
[PATCH] ne2k-pci: support ETHTOOL_GPERMADDR
Add support for ETHTOOL_GPERMADDR to ne2k-pci. Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/ne2k-pci.c')
-rw-r--r--drivers/net/ne2k-pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ne2k-pci.c b/drivers/net/ne2k-pci.c
index f1c01ac2910..e531a4eedfe 100644
--- a/drivers/net/ne2k-pci.c
+++ b/drivers/net/ne2k-pci.c
@@ -372,6 +372,7 @@ static int __devinit ne2k_pci_init_one (struct pci_dev *pdev,
printk("%2.2X%s", SA_prom[i], i == 5 ? ".\n": ":");
dev->dev_addr[i] = SA_prom[i];
}
+ memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
return 0;
@@ -637,6 +638,7 @@ static struct ethtool_ops ne2k_pci_ethtool_ops = {
.get_drvinfo = ne2k_pci_get_drvinfo,
.get_tx_csum = ethtool_op_get_tx_csum,
.get_sg = ethtool_op_get_sg,
+ .get_perm_addr = ethtool_op_get_perm_addr,
};
static void __devexit ne2k_pci_remove_one (struct pci_dev *pdev)