[TG3]: Add support for ETHTOOL_GPERMADDR.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by John W. Linville and committed by David S. Miller 2ff43697 4f63b877

+4
+4
drivers/net/tg3.c
··· 8305 8305 .get_ethtool_stats = tg3_get_ethtool_stats, 8306 8306 .get_coalesce = tg3_get_coalesce, 8307 8307 .set_coalesce = tg3_set_coalesce, 8308 + .get_perm_addr = ethtool_op_get_perm_addr, 8308 8309 }; 8309 8310 8310 8311 static void __devinit tg3_get_eeprom_size(struct tg3 *tp) ··· 9784 9783 if (prom_getproplen(node, "local-mac-address") == 6) { 9785 9784 prom_getproperty(node, "local-mac-address", 9786 9785 dev->dev_addr, 6); 9786 + memcpy(dev->perm_addr, dev->dev_addr, 6); 9787 9787 return 0; 9788 9788 } 9789 9789 } ··· 9796 9794 struct net_device *dev = tp->dev; 9797 9795 9798 9796 memcpy(dev->dev_addr, idprom->id_ethaddr, 6); 9797 + memcpy(dev->perm_addr, idprom->id_ethaddr, 6); 9799 9798 return 0; 9800 9799 } 9801 9800 #endif ··· 9866 9863 #endif 9867 9864 return -EINVAL; 9868 9865 } 9866 + memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len); 9869 9867 return 0; 9870 9868 } 9871 9869