net/iavf: add watchdog for VF FLR
authorRadu Nicolau <radu.nicolau@intel.com>
Thu, 28 Oct 2021 16:04:59 +0000 (17:04 +0100)
committerQi Zhang <qi.z.zhang@intel.com>
Fri, 29 Oct 2021 02:22:25 +0000 (04:22 +0200)
commit4bcfaf7316bf358c2096961c354920ddcf408b8b
tree65fb624b45e35dad7037a05313982cb3c2cf2b29
parentccb49b834cd75fcdcef656a9d58c8dff3a9f0731
net/iavf: add watchdog for VF FLR

Add watchdog to iAVF PMD which support monitoring the VFLR register. If
the device is not already in reset then if a VF reset in progress is
detected then notify user through callback and set into reset state.
If the device is already in reset then poll for completion of reset.

The watchdog is disabled by default, to enable it set
IAVF_DEV_WATCHDOG_PERIOD to a non zero value (microseconds)

Signed-off-by: Declan Doherty <declan.doherty@intel.com>
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/iavf/iavf.h
drivers/net/iavf/iavf_ethdev.c