[PATCH] sk98lin: add permanent address support
Add permanent address and link status support via ethtool. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
Родитель
596f86a8d8
Коммит
4f4c815042
|
@ -549,4 +549,6 @@ struct ethtool_ops SkGeEthtoolOps = {
|
||||||
.phys_id = locateDevice,
|
.phys_id = locateDevice,
|
||||||
.get_pauseparam = getPauseParams,
|
.get_pauseparam = getPauseParams,
|
||||||
.set_pauseparam = setPauseParams,
|
.set_pauseparam = setPauseParams,
|
||||||
|
.get_link = ethtool_op_get_link,
|
||||||
|
.get_perm_addr = ethtool_op_get_perm_addr,
|
||||||
};
|
};
|
||||||
|
|
|
@ -4908,8 +4908,8 @@ static int __devinit skge_probe_one(struct pci_dev *pdev,
|
||||||
|
|
||||||
SkGeYellowLED(pAC, pAC->IoBase, 1);
|
SkGeYellowLED(pAC, pAC->IoBase, 1);
|
||||||
|
|
||||||
|
|
||||||
memcpy(&dev->dev_addr, &pAC->Addr.Net[0].CurrentMacAddress, 6);
|
memcpy(&dev->dev_addr, &pAC->Addr.Net[0].CurrentMacAddress, 6);
|
||||||
|
memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
|
||||||
|
|
||||||
SkGeProcCreate(dev);
|
SkGeProcCreate(dev);
|
||||||
|
|
||||||
|
@ -4962,6 +4962,7 @@ static int __devinit skge_probe_one(struct pci_dev *pdev,
|
||||||
SkGeProcCreate(dev);
|
SkGeProcCreate(dev);
|
||||||
memcpy(&dev->dev_addr,
|
memcpy(&dev->dev_addr,
|
||||||
&pAC->Addr.Net[1].CurrentMacAddress, 6);
|
&pAC->Addr.Net[1].CurrentMacAddress, 6);
|
||||||
|
memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
|
||||||
|
|
||||||
printk("%s: %s\n", dev->name, pAC->DeviceStr);
|
printk("%s: %s\n", dev->name, pAC->DeviceStr);
|
||||||
printk(" PrefPort:B RlmtMode:Dual Check Link State\n");
|
printk(" PrefPort:B RlmtMode:Dual Check Link State\n");
|
||||||
|
|
Загрузка…
Ссылка в новой задаче