aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch
diff options
context:
space:
mode:
Diffstat (limited to 'net/openvswitch')
-rw-r--r--net/openvswitch/vport-internal_dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/openvswitch/vport-internal_dev.c b/net/openvswitch/vport-internal_dev.c
index 322b8d206693..b6b1d7daa3cb 100644
--- a/net/openvswitch/vport-internal_dev.c
+++ b/net/openvswitch/vport-internal_dev.c
@@ -66,6 +66,7 @@ static int internal_dev_mac_addr(struct net_device *dev, void *p)
66 66
67 if (!is_valid_ether_addr(addr->sa_data)) 67 if (!is_valid_ether_addr(addr->sa_data))
68 return -EADDRNOTAVAIL; 68 return -EADDRNOTAVAIL;
69 dev->addr_assign_type &= ~NET_ADDR_RANDOM;
69 memcpy(dev->dev_addr, addr->sa_data, dev->addr_len); 70 memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
70 return 0; 71 return 0;
71} 72}
@@ -145,7 +146,7 @@ static void do_setup(struct net_device *netdev)
145 netdev->vlan_features = netdev->features; 146 netdev->vlan_features = netdev->features;
146 netdev->features |= NETIF_F_HW_VLAN_TX; 147 netdev->features |= NETIF_F_HW_VLAN_TX;
147 netdev->hw_features = netdev->features & ~NETIF_F_LLTX; 148 netdev->hw_features = netdev->features & ~NETIF_F_LLTX;
148 random_ether_addr(netdev->dev_addr); 149 eth_hw_addr_random(netdev);
149} 150}
150 151
151static struct vport *internal_dev_create(const struct vport_parms *parms) 152static struct vport *internal_dev_create(const struct vport_parms *parms)