diff options
Diffstat (limited to 'include/linux/etherdevice.h')
-rw-r--r-- | include/linux/etherdevice.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h index 243eea1e33d8..c623861964e4 100644 --- a/include/linux/etherdevice.h +++ b/include/linux/etherdevice.h | |||
@@ -40,6 +40,8 @@ extern int eth_header_cache(const struct neighbour *neigh, struct hh_cache *hh, | |||
40 | extern void eth_header_cache_update(struct hh_cache *hh, | 40 | extern void eth_header_cache_update(struct hh_cache *hh, |
41 | const struct net_device *dev, | 41 | const struct net_device *dev, |
42 | const unsigned char *haddr); | 42 | const unsigned char *haddr); |
43 | extern int eth_prepare_mac_addr_change(struct net_device *dev, void *p); | ||
44 | extern void eth_commit_mac_addr_change(struct net_device *dev, void *p); | ||
43 | extern int eth_mac_addr(struct net_device *dev, void *p); | 45 | extern int eth_mac_addr(struct net_device *dev, void *p); |
44 | extern int eth_change_mtu(struct net_device *dev, int new_mtu); | 46 | extern int eth_change_mtu(struct net_device *dev, int new_mtu); |
45 | extern int eth_validate_addr(struct net_device *dev); | 47 | extern int eth_validate_addr(struct net_device *dev); |
@@ -192,7 +194,7 @@ static inline void eth_zero_addr(u8 *addr) | |||
192 | */ | 194 | */ |
193 | static inline void eth_hw_addr_random(struct net_device *dev) | 195 | static inline void eth_hw_addr_random(struct net_device *dev) |
194 | { | 196 | { |
195 | dev->addr_assign_type |= NET_ADDR_RANDOM; | 197 | dev->addr_assign_type = NET_ADDR_RANDOM; |
196 | eth_random_addr(dev->dev_addr); | 198 | eth_random_addr(dev->dev_addr); |
197 | } | 199 | } |
198 | 200 | ||