From e6fbe86841f22eac08bae49caa40b7e07a17722d Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 8 Dec 2013 16:08:14 +0100 Subject: [PATCH] backports: do not call dev_hw_addr_random() SLES 11 SP3 does not have dev_hw_addr_random() so this patch includes the stuff which would be done in dev_hw_addr_random() in eth_hw_addr_random(). Signed-off-by: Hauke Mehrtens Signed-off-by: Luis R. Rodriguez --- backport/backport-include/linux/etherdevice.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backport/backport-include/linux/etherdevice.h b/backport/backport-include/linux/etherdevice.h index de0744c867a5..5a6096d74ddf 100644 --- a/backport/backport-include/linux/etherdevice.h +++ b/backport/backport-include/linux/etherdevice.h @@ -40,7 +40,8 @@ static inline void eth_hw_addr_random(struct net_device *dev) #define eth_hw_addr_random LINUX_BACKPORT(eth_hw_addr_random) static inline void eth_hw_addr_random(struct net_device *dev) { - dev_hw_addr_random(dev, dev->dev_addr); + dev->addr_assign_type |= NET_ADDR_RANDOM; + random_ether_addr(dev->dev_addr); } #endif -- 2.30.2