diff options
author | John W. Linville <linville@tuxdriver.com> | 2005-09-12 10:48:57 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-09-14 08:30:02 -0400 |
commit | 56230d538233ba037eb679b0fc0b218d33b9b8b8 (patch) | |
tree | 93426d6062682766763ecbfe2486727aad06867c | |
parent | 6d6525b7f74f9593e647f8c17b1de0f652e1f177 (diff) |
[PATCH] skge: support ETHTOOL_GPERMADDR
Add support for ETHTOOL_GPERMADDR to skge.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
-rw-r--r-- | drivers/net/skge.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/skge.c b/drivers/net/skge.c index d7c98515fdfd..757c83387a29 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c | |||
@@ -743,6 +743,7 @@ static struct ethtool_ops skge_ethtool_ops = { | |||
743 | .phys_id = skge_phys_id, | 743 | .phys_id = skge_phys_id, |
744 | .get_stats_count = skge_get_stats_count, | 744 | .get_stats_count = skge_get_stats_count, |
745 | .get_ethtool_stats = skge_get_ethtool_stats, | 745 | .get_ethtool_stats = skge_get_ethtool_stats, |
746 | .get_perm_addr = ethtool_op_get_perm_addr, | ||
746 | }; | 747 | }; |
747 | 748 | ||
748 | /* | 749 | /* |
@@ -3080,6 +3081,7 @@ static struct net_device *skge_devinit(struct skge_hw *hw, int port, | |||
3080 | 3081 | ||
3081 | /* read the mac address */ | 3082 | /* read the mac address */ |
3082 | memcpy_fromio(dev->dev_addr, hw->regs + B2_MAC_1 + port*8, ETH_ALEN); | 3083 | memcpy_fromio(dev->dev_addr, hw->regs + B2_MAC_1 + port*8, ETH_ALEN); |
3084 | memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len); | ||
3083 | 3085 | ||
3084 | /* device is off until link detection */ | 3086 | /* device is off until link detection */ |
3085 | netif_carrier_off(dev); | 3087 | netif_carrier_off(dev); |