diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2015-08-27 09:46:48 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-28 01:42:47 +0300 |
commit | 87cd3dcaf4bd135e44ee187baf788deeb011e58d (patch) | |
tree | b98c515fc62233284ce98bcd25866cff8b4db197 /drivers/net/geneve.c | |
parent | d2d427b3927bd7a0348fc7f323d0e291f79a2779 (diff) | |
download | linux-87cd3dcaf4bd135e44ee187baf788deeb011e58d.tar.xz |
geneve: Initialize ethernet address in device setup.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Reviewed-by: Jesse Gross <jesse@nicira.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Acked-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/geneve.c')
-rw-r--r-- | drivers/net/geneve.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index 897e1a3f035b..95e9da0a52f2 100644 --- a/drivers/net/geneve.c +++ b/drivers/net/geneve.c @@ -297,6 +297,7 @@ static void geneve_setup(struct net_device *dev) netif_keep_dst(dev); dev->priv_flags |= IFF_LIVE_ADDR_CHANGE | IFF_NO_QUEUE; + eth_hw_addr_random(dev); } static const struct nla_policy geneve_policy[IFLA_GENEVE_MAX + 1] = { @@ -364,9 +365,6 @@ static int geneve_newlink(struct net *net, struct net_device *dev, return -EBUSY; } - if (tb[IFLA_ADDRESS] == NULL) - eth_hw_addr_random(dev); - err = register_netdevice(dev); if (err) return err; |