net/enic: fix setting MAC address when a port is restarted
authorNelson Escobar <neescoba@cisco.com>
Fri, 8 Jul 2016 01:10:21 +0000 (18:10 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 8 Jul 2016 20:59:08 +0000 (22:59 +0200)
commite5b60cf1199c51ee51c287988bdda3522fee748c
treed9625f6a6e59a960ea95711606c0e44368e06922
parent0392743c3f0928fb0f7a161d9131d2a174b5c994
net/enic: fix setting MAC address when a port is restarted

enic_disable() removed the MAC address when a port was shut down but
enic_enable() didn't add the MAC address back when the port was
started again. Move where we set the MAC address for the adapter from
enic_setup_finish() to a enic_enable() so that port restarting works
properly.

Fixes: fefed3d1e62c ("enic: new driver")

Signed-off-by: Nelson Escobar <neescoba@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_main.c