]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cisco/enic: use eth_hw_addr_random() instead of random_ether_addr()
authorDanny Kukawka <danny.kukawka@bisect.de>
Sat, 18 Feb 2012 06:50:43 +0000 (01:50 -0500)
committerJoe Jin <joe.jin@oracle.com>
Wed, 29 Aug 2012 00:22:11 +0000 (08:22 +0800)
commit2512279da977c9ca633ba355b86fa033437e1bd1
tree36b76ec462c62053c1510b01d73e298f668b35fb
parentd9adf6f1b6835c9a2a2373e275dce4b665c05e3e
cisco/enic: use eth_hw_addr_random() instead of random_ether_addr()

Use dev_hw_addr_random() instead of calling random_ether_addr()
to set addr_assign_type correctly to NET_ADDR_RANDOM.

Reset the state to NET_ADDR_PERM as soon as the MAC get
changed via .ndo_set_mac_address.

v3: adapt to net-next
v2: use bitops, adapt to eth_hw_addr_random(), add a comment

(cherry picked from commit da1943164677ae2cdd630196b79089d476726348)
Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/enic/enic_main.c