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

For PF 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