diff options
24 files changed, 26 insertions, 27 deletions
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index 85e044567f68..c4834c23be35 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c | |||
@@ -87,7 +87,7 @@ static void __init macb_get_hwaddr(struct macb *bp) | |||
87 | memcpy(bp->dev->dev_addr, addr, sizeof(addr)); | 87 | memcpy(bp->dev->dev_addr, addr, sizeof(addr)); |
88 | } else { | 88 | } else { |
89 | netdev_info(bp->dev, "invalid hw address, using random\n"); | 89 | netdev_info(bp->dev, "invalid hw address, using random\n"); |
90 | random_ether_addr(bp->dev->dev_addr); | 90 | eth_hw_addr_random(bp->dev); |
91 | } | 91 | } |
92 | } | 92 | } |
93 | 93 | ||
diff --git a/drivers/net/ethernet/cirrus/ep93xx_eth.c b/drivers/net/ethernet/cirrus/ep93xx_eth.c index c21e5ab8d1ef..78c55213eaf7 100644 --- a/drivers/net/ethernet/cirrus/ep93xx_eth.c +++ b/drivers/net/ethernet/cirrus/ep93xx_eth.c | |||
@@ -859,7 +859,7 @@ static int ep93xx_eth_probe(struct platform_device *pdev) | |||
859 | ep->mdc_divisor = 40; /* Max HCLK 100 MHz, min MDIO clk 2.5 MHz. */ | 859 | ep->mdc_divisor = 40; /* Max HCLK 100 MHz, min MDIO clk 2.5 MHz. */ |
860 | 860 | ||
861 | if (is_zero_ether_addr(dev->dev_addr)) | 861 | if (is_zero_ether_addr(dev->dev_addr)) |
862 | random_ether_addr(dev->dev_addr); | 862 | eth_hw_addr_random(dev); |
863 | 863 | ||
864 | err = register_netdev(dev); | 864 | err = register_netdev(dev); |
865 | if (err) { | 865 | if (err) { |
diff --git a/drivers/net/ethernet/davicom/dm9000.c b/drivers/net/ethernet/davicom/dm9000.c index 42383ab5227e..36499d5edd95 100644 --- a/drivers/net/ethernet/davicom/dm9000.c +++ b/drivers/net/ethernet/davicom/dm9000.c | |||
@@ -1585,7 +1585,7 @@ dm9000_probe(struct platform_device *pdev) | |||
1585 | dev_warn(db->dev, "%s: Invalid ethernet MAC address. Please " | 1585 | dev_warn(db->dev, "%s: Invalid ethernet MAC address. Please " |
1586 | "set using ifconfig\n", ndev->name); | 1586 | "set using ifconfig\n", ndev->name); |
1587 | 1587 | ||
1588 | random_ether_addr(ndev->dev_addr); | 1588 | eth_hw_addr_random(ndev); |
1589 | mac_src = "random"; | 1589 | mac_src = "random"; |
1590 | } | 1590 | } |
1591 | 1591 | ||
diff --git a/drivers/net/ethernet/dnet.c b/drivers/net/ethernet/dnet.c index 8536e376555a..b276469f74e9 100644 --- a/drivers/net/ethernet/dnet.c +++ b/drivers/net/ethernet/dnet.c | |||
@@ -895,7 +895,7 @@ static int __devinit dnet_probe(struct platform_device *pdev) | |||
895 | 895 | ||
896 | if (!is_valid_ether_addr(dev->dev_addr)) { | 896 | if (!is_valid_ether_addr(dev->dev_addr)) { |
897 | /* choose a random ethernet address */ | 897 | /* choose a random ethernet address */ |
898 | random_ether_addr(dev->dev_addr); | 898 | eth_hw_addr_random(dev); |
899 | __dnet_set_hwaddr(bp); | 899 | __dnet_set_hwaddr(bp); |
900 | } | 900 | } |
901 | 901 | ||
diff --git a/drivers/net/ethernet/faraday/ftgmac100.c b/drivers/net/ethernet/faraday/ftgmac100.c index 47f85c337cf7..16b07048274c 100644 --- a/drivers/net/ethernet/faraday/ftgmac100.c +++ b/drivers/net/ethernet/faraday/ftgmac100.c | |||
@@ -1289,7 +1289,7 @@ static int ftgmac100_probe(struct platform_device *pdev) | |||
1289 | netdev_info(netdev, "irq %d, mapped at %p\n", priv->irq, priv->base); | 1289 | netdev_info(netdev, "irq %d, mapped at %p\n", priv->irq, priv->base); |
1290 | 1290 | ||
1291 | if (!is_valid_ether_addr(netdev->dev_addr)) { | 1291 | if (!is_valid_ether_addr(netdev->dev_addr)) { |
1292 | random_ether_addr(netdev->dev_addr); | 1292 | eth_hw_addr_random(netdev); |
1293 | netdev_info(netdev, "generated random MAC address %pM\n", | 1293 | netdev_info(netdev, "generated random MAC address %pM\n", |
1294 | netdev->dev_addr); | 1294 | netdev->dev_addr); |
1295 | } | 1295 | } |
diff --git a/drivers/net/ethernet/faraday/ftmac100.c b/drivers/net/ethernet/faraday/ftmac100.c index bb336a0959c9..829b1092fd78 100644 --- a/drivers/net/ethernet/faraday/ftmac100.c +++ b/drivers/net/ethernet/faraday/ftmac100.c | |||
@@ -1133,7 +1133,7 @@ static int ftmac100_probe(struct platform_device *pdev) | |||
1133 | netdev_info(netdev, "irq %d, mapped at %p\n", priv->irq, priv->base); | 1133 | netdev_info(netdev, "irq %d, mapped at %p\n", priv->irq, priv->base); |
1134 | 1134 | ||
1135 | if (!is_valid_ether_addr(netdev->dev_addr)) { | 1135 | if (!is_valid_ether_addr(netdev->dev_addr)) { |
1136 | random_ether_addr(netdev->dev_addr); | 1136 | eth_hw_addr_random(netdev); |
1137 | netdev_info(netdev, "generated random MAC address %pM\n", | 1137 | netdev_info(netdev, "generated random MAC address %pM\n", |
1138 | netdev->dev_addr); | 1138 | netdev->dev_addr); |
1139 | } | 1139 | } |
diff --git a/drivers/net/ethernet/mipsnet.c b/drivers/net/ethernet/mipsnet.c index dbc666a3d523..db5285befe2a 100644 --- a/drivers/net/ethernet/mipsnet.c +++ b/drivers/net/ethernet/mipsnet.c | |||
@@ -281,7 +281,7 @@ static int __devinit mipsnet_probe(struct platform_device *dev) | |||
281 | * Lacking any better mechanism to allocate a MAC address we use a | 281 | * Lacking any better mechanism to allocate a MAC address we use a |
282 | * random one ... | 282 | * random one ... |
283 | */ | 283 | */ |
284 | random_ether_addr(netdev->dev_addr); | 284 | eth_hw_addr_random(netdev); |
285 | 285 | ||
286 | err = register_netdev(netdev); | 286 | err = register_netdev(netdev); |
287 | if (err) { | 287 | if (err) { |
diff --git a/drivers/net/ethernet/natsemi/macsonic.c b/drivers/net/ethernet/natsemi/macsonic.c index f1b85561c650..e640e23460de 100644 --- a/drivers/net/ethernet/natsemi/macsonic.c +++ b/drivers/net/ethernet/natsemi/macsonic.c | |||
@@ -307,7 +307,7 @@ static void __devinit mac_onboard_sonic_ethernet_addr(struct net_device *dev) | |||
307 | 307 | ||
308 | printk(KERN_WARNING "macsonic: MAC address in CAM entry 15 " | 308 | printk(KERN_WARNING "macsonic: MAC address in CAM entry 15 " |
309 | "seems invalid, will use a random MAC\n"); | 309 | "seems invalid, will use a random MAC\n"); |
310 | random_ether_addr(dev->dev_addr); | 310 | eth_hw_addr_random(dev); |
311 | } | 311 | } |
312 | 312 | ||
313 | static int __devinit mac_onboard_sonic_probe(struct net_device *dev) | 313 | static int __devinit mac_onboard_sonic_probe(struct net_device *dev) |
diff --git a/drivers/net/ethernet/rdc/r6040.c b/drivers/net/ethernet/rdc/r6040.c index 76cab284876b..b96e1920e045 100644 --- a/drivers/net/ethernet/rdc/r6040.c +++ b/drivers/net/ethernet/rdc/r6040.c | |||
@@ -1151,7 +1151,7 @@ static int __devinit r6040_init_one(struct pci_dev *pdev, | |||
1151 | if (!(adrp[0] || adrp[1] || adrp[2])) { | 1151 | if (!(adrp[0] || adrp[1] || adrp[2])) { |
1152 | netdev_warn(dev, "MAC address not initialized, " | 1152 | netdev_warn(dev, "MAC address not initialized, " |
1153 | "generating random\n"); | 1153 | "generating random\n"); |
1154 | random_ether_addr(dev->dev_addr); | 1154 | eth_hw_addr_random(dev); |
1155 | } | 1155 | } |
1156 | 1156 | ||
1157 | /* Link new device into r6040_root_dev */ | 1157 | /* Link new device into r6040_root_dev */ |
diff --git a/drivers/net/ethernet/sis/sis900.c b/drivers/net/ethernet/sis/sis900.c index f968898c86db..5ccf02e7e3ad 100644 --- a/drivers/net/ethernet/sis/sis900.c +++ b/drivers/net/ethernet/sis/sis900.c | |||
@@ -527,7 +527,7 @@ static int __devinit sis900_probe(struct pci_dev *pci_dev, | |||
527 | ret = sis900_get_mac_addr(pci_dev, net_dev); | 527 | ret = sis900_get_mac_addr(pci_dev, net_dev); |
528 | 528 | ||
529 | if (!ret || !is_valid_ether_addr(net_dev->dev_addr)) { | 529 | if (!ret || !is_valid_ether_addr(net_dev->dev_addr)) { |
530 | random_ether_addr(net_dev->dev_addr); | 530 | eth_hw_addr_random(net_dev); |
531 | printk(KERN_WARNING "%s: Unreadable or invalid MAC address," | 531 | printk(KERN_WARNING "%s: Unreadable or invalid MAC address," |
532 | "using random generated one\n", dev_name); | 532 | "using random generated one\n", dev_name); |
533 | } | 533 | } |
diff --git a/drivers/net/ethernet/smsc/smsc9420.c b/drivers/net/ethernet/smsc/smsc9420.c index ee1a1680b7a8..38386478532b 100644 --- a/drivers/net/ethernet/smsc/smsc9420.c +++ b/drivers/net/ethernet/smsc/smsc9420.c | |||
@@ -509,10 +509,9 @@ static void smsc9420_check_mac_address(struct net_device *dev) | |||
509 | smsc_dbg(PROBE, "Mac Address is read from EEPROM"); | 509 | smsc_dbg(PROBE, "Mac Address is read from EEPROM"); |
510 | } else { | 510 | } else { |
511 | /* eeprom values are invalid, generate random MAC */ | 511 | /* eeprom values are invalid, generate random MAC */ |
512 | random_ether_addr(dev->dev_addr); | 512 | eth_hw_addr_random(dev); |
513 | smsc9420_set_mac_address(dev); | 513 | smsc9420_set_mac_address(dev); |
514 | smsc_dbg(PROBE, | 514 | smsc_dbg(PROBE, "MAC Address is set to random"); |
515 | "MAC Address is set to random_ether_addr"); | ||
516 | } | 515 | } |
517 | } | 516 | } |
518 | } | 517 | } |
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 166fc95e5baf..ab36dfcbd817 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | |||
@@ -910,7 +910,7 @@ static void stmmac_check_ether_addr(struct stmmac_priv *priv) | |||
910 | priv->dev->base_addr, | 910 | priv->dev->base_addr, |
911 | priv->dev->dev_addr, 0); | 911 | priv->dev->dev_addr, 0); |
912 | if (!is_valid_ether_addr(priv->dev->dev_addr)) | 912 | if (!is_valid_ether_addr(priv->dev->dev_addr)) |
913 | random_ether_addr(priv->dev->dev_addr); | 913 | eth_hw_addr_random(priv->dev); |
914 | } | 914 | } |
915 | pr_warning("%s: device MAC address %pM\n", priv->dev->name, | 915 | pr_warning("%s: device MAC address %pM\n", priv->dev->name, |
916 | priv->dev->dev_addr); | 916 | priv->dev->dev_addr); |
diff --git a/drivers/net/ethernet/toshiba/tc35815.c b/drivers/net/ethernet/toshiba/tc35815.c index d117ad475c3e..651a70c55e6e 100644 --- a/drivers/net/ethernet/toshiba/tc35815.c +++ b/drivers/net/ethernet/toshiba/tc35815.c | |||
@@ -849,7 +849,7 @@ static int __devinit tc35815_init_one(struct pci_dev *pdev, | |||
849 | /* Retrieve the ethernet address. */ | 849 | /* Retrieve the ethernet address. */ |
850 | if (tc35815_init_dev_addr(dev)) { | 850 | if (tc35815_init_dev_addr(dev)) { |
851 | dev_warn(&pdev->dev, "not valid ether addr\n"); | 851 | dev_warn(&pdev->dev, "not valid ether addr\n"); |
852 | random_ether_addr(dev->dev_addr); | 852 | eth_hw_addr_random(dev); |
853 | } | 853 | } |
854 | 854 | ||
855 | rc = register_netdev(dev); | 855 | rc = register_netdev(dev); |
diff --git a/drivers/net/ethernet/via/via-rhine.c b/drivers/net/ethernet/via/via-rhine.c index cb2ff28a0602..39b8cf3dafcd 100644 --- a/drivers/net/ethernet/via/via-rhine.c +++ b/drivers/net/ethernet/via/via-rhine.c | |||
@@ -983,7 +983,7 @@ static int __devinit rhine_init_one(struct pci_dev *pdev, | |||
983 | if (!is_valid_ether_addr(dev->dev_addr)) { | 983 | if (!is_valid_ether_addr(dev->dev_addr)) { |
984 | /* Report it and use a random ethernet address instead */ | 984 | /* Report it and use a random ethernet address instead */ |
985 | netdev_err(dev, "Invalid MAC address: %pM\n", dev->dev_addr); | 985 | netdev_err(dev, "Invalid MAC address: %pM\n", dev->dev_addr); |
986 | random_ether_addr(dev->dev_addr); | 986 | eth_hw_addr_random(dev); |
987 | netdev_info(dev, "Using random MAC address: %pM\n", | 987 | netdev_info(dev, "Using random MAC address: %pM\n", |
988 | dev->dev_addr); | 988 | dev->dev_addr); |
989 | } | 989 | } |
diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c index e05b645bbc32..344dceb1aaf9 100644 --- a/drivers/net/ifb.c +++ b/drivers/net/ifb.c | |||
@@ -184,7 +184,7 @@ static void ifb_setup(struct net_device *dev) | |||
184 | dev->flags |= IFF_NOARP; | 184 | dev->flags |= IFF_NOARP; |
185 | dev->flags &= ~IFF_MULTICAST; | 185 | dev->flags &= ~IFF_MULTICAST; |
186 | dev->priv_flags &= ~(IFF_XMIT_DST_RELEASE | IFF_TX_SKB_SHARING); | 186 | dev->priv_flags &= ~(IFF_XMIT_DST_RELEASE | IFF_TX_SKB_SHARING); |
187 | random_ether_addr(dev->dev_addr); | 187 | eth_hw_addr_random(dev); |
188 | } | 188 | } |
189 | 189 | ||
190 | static netdev_tx_t ifb_xmit(struct sk_buff *skb, struct net_device *dev) | 190 | static netdev_tx_t ifb_xmit(struct sk_buff *skb, struct net_device *dev) |
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 93c5d72711b0..2c5d34957c57 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -531,7 +531,7 @@ static void tun_net_init(struct net_device *dev) | |||
531 | ether_setup(dev); | 531 | ether_setup(dev); |
532 | dev->priv_flags &= ~IFF_TX_SKB_SHARING; | 532 | dev->priv_flags &= ~IFF_TX_SKB_SHARING; |
533 | 533 | ||
534 | random_ether_addr(dev->dev_addr); | 534 | eth_hw_addr_random(dev); |
535 | 535 | ||
536 | dev->tx_queue_len = TUN_READQ_SIZE; /* We prefer our own queue length */ | 536 | dev->tx_queue_len = TUN_READQ_SIZE; /* We prefer our own queue length */ |
537 | break; | 537 | break; |
diff --git a/drivers/net/usb/smsc75xx.c b/drivers/net/usb/smsc75xx.c index 3b017bbd2a22..187d01ccb973 100644 --- a/drivers/net/usb/smsc75xx.c +++ b/drivers/net/usb/smsc75xx.c | |||
@@ -615,7 +615,7 @@ static void smsc75xx_init_mac_address(struct usbnet *dev) | |||
615 | } | 615 | } |
616 | 616 | ||
617 | /* no eeprom, or eeprom values are invalid. generate random MAC */ | 617 | /* no eeprom, or eeprom values are invalid. generate random MAC */ |
618 | random_ether_addr(dev->net->dev_addr); | 618 | eth_hw_addr_random(dev->net); |
619 | netif_dbg(dev, ifup, dev->net, "MAC address set to random_ether_addr"); | 619 | netif_dbg(dev, ifup, dev->net, "MAC address set to random_ether_addr"); |
620 | } | 620 | } |
621 | 621 | ||
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index d45520e6dd48..5f19f84d3494 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c | |||
@@ -614,7 +614,7 @@ static void smsc95xx_init_mac_address(struct usbnet *dev) | |||
614 | } | 614 | } |
615 | 615 | ||
616 | /* no eeprom, or eeprom values are invalid. generate random MAC */ | 616 | /* no eeprom, or eeprom values are invalid. generate random MAC */ |
617 | random_ether_addr(dev->net->dev_addr); | 617 | eth_hw_addr_random(dev->net); |
618 | netif_dbg(dev, ifup, dev->net, "MAC address set to random_ether_addr\n"); | 618 | netif_dbg(dev, ifup, dev->net, "MAC address set to random_ether_addr\n"); |
619 | } | 619 | } |
620 | 620 | ||
diff --git a/drivers/net/veth.c b/drivers/net/veth.c index 49f4667e1fa3..b8a697f5cb69 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c | |||
@@ -346,7 +346,7 @@ static int veth_newlink(struct net *src_net, struct net_device *dev, | |||
346 | } | 346 | } |
347 | 347 | ||
348 | if (tbp[IFLA_ADDRESS] == NULL) | 348 | if (tbp[IFLA_ADDRESS] == NULL) |
349 | random_ether_addr(peer->dev_addr); | 349 | eth_hw_addr_random(peer); |
350 | 350 | ||
351 | err = register_netdevice(peer); | 351 | err = register_netdevice(peer); |
352 | put_net(net); | 352 | put_net(net); |
@@ -368,7 +368,7 @@ static int veth_newlink(struct net *src_net, struct net_device *dev, | |||
368 | */ | 368 | */ |
369 | 369 | ||
370 | if (tb[IFLA_ADDRESS] == NULL) | 370 | if (tb[IFLA_ADDRESS] == NULL) |
371 | random_ether_addr(dev->dev_addr); | 371 | eth_hw_addr_random(dev); |
372 | 372 | ||
373 | if (tb[IFLA_IFNAME]) | 373 | if (tb[IFLA_IFNAME]) |
374 | nla_strlcpy(dev->name, tb[IFLA_IFNAME], IFNAMSIZ); | 374 | nla_strlcpy(dev->name, tb[IFLA_IFNAME], IFNAMSIZ); |
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 83c503ed4ae8..019da012669f 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c | |||
@@ -1060,7 +1060,7 @@ static int virtnet_probe(struct virtio_device *vdev) | |||
1060 | if (virtio_config_val_len(vdev, VIRTIO_NET_F_MAC, | 1060 | if (virtio_config_val_len(vdev, VIRTIO_NET_F_MAC, |
1061 | offsetof(struct virtio_net_config, mac), | 1061 | offsetof(struct virtio_net_config, mac), |
1062 | dev->dev_addr, dev->addr_len) < 0) | 1062 | dev->dev_addr, dev->addr_len) < 0) |
1063 | random_ether_addr(dev->dev_addr); | 1063 | eth_hw_addr_random(dev); |
1064 | 1064 | ||
1065 | /* Set up our device-specific information */ | 1065 | /* Set up our device-specific information */ |
1066 | vi = netdev_priv(dev); | 1066 | vi = netdev_priv(dev); |
diff --git a/drivers/net/wan/hdlc_fr.c b/drivers/net/wan/hdlc_fr.c index eb2028187fbe..7c6cb4f31798 100644 --- a/drivers/net/wan/hdlc_fr.c +++ b/drivers/net/wan/hdlc_fr.c | |||
@@ -1087,7 +1087,7 @@ static int fr_add_pvc(struct net_device *frad, unsigned int dlci, int type) | |||
1087 | } | 1087 | } |
1088 | 1088 | ||
1089 | if (type == ARPHRD_ETHER) | 1089 | if (type == ARPHRD_ETHER) |
1090 | random_ether_addr(dev->dev_addr); | 1090 | eth_hw_addr_random(dev); |
1091 | else { | 1091 | else { |
1092 | *(__be16*)dev->dev_addr = htons(dlci); | 1092 | *(__be16*)dev->dev_addr = htons(dlci); |
1093 | dlci_to_q922(dev->broadcast, dlci); | 1093 | dlci_to_q922(dev->broadcast, dlci); |
diff --git a/drivers/net/wan/hdlc_raw_eth.c b/drivers/net/wan/hdlc_raw_eth.c index 05c9b0b96239..3ab72b3082de 100644 --- a/drivers/net/wan/hdlc_raw_eth.c +++ b/drivers/net/wan/hdlc_raw_eth.c | |||
@@ -101,7 +101,7 @@ static int raw_eth_ioctl(struct net_device *dev, struct ifreq *ifr) | |||
101 | old_qlen = dev->tx_queue_len; | 101 | old_qlen = dev->tx_queue_len; |
102 | ether_setup(dev); | 102 | ether_setup(dev); |
103 | dev->tx_queue_len = old_qlen; | 103 | dev->tx_queue_len = old_qlen; |
104 | random_ether_addr(dev->dev_addr); | 104 | eth_hw_addr_random(dev); |
105 | netif_dormant_off(dev); | 105 | netif_dormant_off(dev); |
106 | return 0; | 106 | return 0; |
107 | } | 107 | } |
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index 0286d78c589c..b59414a0c1ee 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c | |||
@@ -1536,7 +1536,7 @@ static int ipgre_newlink(struct net *src_net, struct net_device *dev, struct nla | |||
1536 | return -EEXIST; | 1536 | return -EEXIST; |
1537 | 1537 | ||
1538 | if (dev->type == ARPHRD_ETHER && !tb[IFLA_ADDRESS]) | 1538 | if (dev->type == ARPHRD_ETHER && !tb[IFLA_ADDRESS]) |
1539 | random_ether_addr(dev->dev_addr); | 1539 | eth_hw_addr_random(dev); |
1540 | 1540 | ||
1541 | mtu = ipgre_tunnel_bind_dev(dev); | 1541 | mtu = ipgre_tunnel_bind_dev(dev); |
1542 | if (!tb[IFLA_MTU]) | 1542 | if (!tb[IFLA_MTU]) |
diff --git a/net/l2tp/l2tp_eth.c b/net/l2tp/l2tp_eth.c index d2726a74597d..63fe5f353f04 100644 --- a/net/l2tp/l2tp_eth.c +++ b/net/l2tp/l2tp_eth.c | |||
@@ -64,7 +64,7 @@ static int l2tp_eth_dev_init(struct net_device *dev) | |||
64 | struct l2tp_eth *priv = netdev_priv(dev); | 64 | struct l2tp_eth *priv = netdev_priv(dev); |
65 | 65 | ||
66 | priv->dev = dev; | 66 | priv->dev = dev; |
67 | random_ether_addr(dev->dev_addr); | 67 | eth_hw_addr_random(dev); |
68 | memset(&dev->broadcast[0], 0xff, 6); | 68 | memset(&dev->broadcast[0], 0xff, 6); |
69 | 69 | ||
70 | return 0; | 70 | return 0; |