diff options
author | 2014-05-22 20:07:00 -0300 | |
---|---|---|
committer | 2014-05-23 15:31:49 -0400 | |
commit | e68de36072e1b9012bc07fe18f83a6c30ce3d260 (patch) | |
tree | c4151a7e3906f130ae4fe2efb1aba9fad9367664 /include/net/protocol.h | |
parent | net: mvneta: Clean-up mvneta_init() (diff) | |
download | linux-dev-e68de36072e1b9012bc07fe18f83a6c30ce3d260.tar.xz linux-dev-e68de36072e1b9012bc07fe18f83a6c30ce3d260.zip |
net: mvneta: Use prepare/commit API to simplify MAC address setting
Use eth_prepare_mac_addr_change and eth_commit_mac_addr_change, instead
of manually checking and storing the MAC address, which makes the
code slightly more robust. This fixes the lack of valid MAC address check
in the driver's .ndo_set_mac_address hook.
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/protocol.h')
0 files changed, 0 insertions, 0 deletions