net/fm10k/base: improve re-map queues handle
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 8 Mar 2017 06:19:03 +0000 (01:19 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 13:52:52 +0000 (15:52 +0200)
commita94bceb1e30bc0cde391d9d2d3297995a3800412
treed47f3f2920f899f504c98732b4a9595b878956bd
parente4482482299daa715734d6d7576bfbc5c225a8b9
net/fm10k/base: improve re-map queues handle

Avoid potential FUM fault errors on a VF when updating MAC address
and VLAN information. Only use the register flow when the mailbox is
disconnected, by checking if the enqueue_tx returns
FM10K_MBX_ERR_NO_MBX. If the mailbox message can be sent, there is no
reason to bother with the register writes which are only intended to
be used during VF driver initialization.

Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/fm10k/base/fm10k_common.c
drivers/net/fm10k/base/fm10k_pf.c