.. | .. |
---|
300 | 300 | } |
---|
301 | 301 | |
---|
302 | 302 | /** |
---|
| 303 | + * eth_hw_addr_set - Assign Ethernet address to a net_device |
---|
| 304 | + * @dev: pointer to net_device structure |
---|
| 305 | + * @addr: address to assign |
---|
| 306 | + * |
---|
| 307 | + * Assign given address to the net_device, addr_assign_type is not changed. |
---|
| 308 | + */ |
---|
| 309 | +static inline void eth_hw_addr_set(struct net_device *dev, const u8 *addr) |
---|
| 310 | +{ |
---|
| 311 | + ether_addr_copy(dev->dev_addr, addr); |
---|
| 312 | +} |
---|
| 313 | + |
---|
| 314 | +/** |
---|
303 | 315 | * eth_hw_addr_inherit - Copy dev_addr from another net_device |
---|
304 | 316 | * @dst: pointer to net_device to copy dev_addr to |
---|
305 | 317 | * @src: pointer to net_device to copy dev_addr from |
---|