i40e: Add helper for VF inited state check with timeout
authorIvan Vecera <ivecera@redhat.com>
Thu, 13 Jul 2023 14:57:54 +0000 (16:57 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 14 Jul 2023 17:08:46 +0000 (10:08 -0700)
commitdf84f0ce569dbec8cb4895a9aafab53fc9306320
tree3d0dfd34564be5ef765d3d883f8a91da42692dbe
parent68af900072c157c0cdce0256968edd15067e1e5a
i40e: Add helper for VF inited state check with timeout

Move the check for VF inited state (with optional up-to 300ms
timeout to separate helper i40e_check_vf_init_timeout() that
will be used in the following commit.

Tested-by: Ma Yuying <yuma@redhat.com>
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c