net/fm10k: support switch restart on VF
authorXiao Wang <xiao.w.wang@intel.com>
Tue, 24 Oct 2017 13:45:51 +0000 (06:45 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:01 +0000 (02:33 +0200)
commitac0decfa08fa5916ddc2f3c0fa6bbb26f7e8489d
tree177a9eff4b55cfcc44c1978e7b2a76eb21d51a4b
parent6c9f372455839018cfc893de2a63cf2d7f8eca55
net/fm10k: support switch restart on VF

For VF events indicating a change in the state of the switch manager,
the driver will restore the basic port configurations and then pass this
event to application so that the application can restore any additional
configurations if required.

In this way, once the switch manager restarts, the DPDK application can
resume its network.

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/fm10k/fm10k_ethdev.c