fm10k: fix switch synchronization
authorChen Jing D(Mark) <jing.d.chen@intel.com>
Fri, 29 May 2015 08:10:42 +0000 (16:10 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 22 Jun 2015 15:27:59 +0000 (17:27 +0200)
commit13cbb05d89e38454ccd65f773c6a1a2ed6d314aa
tree0e7aae5db5613dbb3c048f9cab81c99e1d198ed8
parentbb9e1c066a0322a62e7a6b9fe1d92b67aa97e63f
fm10k: fix switch synchronization

In fm10k, PF driver needs to communicate with switch through
mailbox if it needs to add/delete MAC address.
This fix will validate if switch is ready before going forward.
Then, it is necessary to acquire LPORT_MAP info after issuing
MAC addr request to switch.

Signed-off-by: Chen Jing D(Mark) <jing.d.chen@intel.com>
Acked-by: Shaopeng He <shaopeng.he@intel.com>
Tested-by: Michael Qiu <michael.qiu@intel.com>
Acked-by: Michael Qiu <michael.qiu@intel.com>
drivers/net/fm10k/fm10k_ethdev.c