]> git.droids-corp.org - dpdk.git/commit
net/iavf: fix VF reset
authorYiding Zhou <yidingx.zhou@intel.com>
Mon, 27 Jun 2022 07:22:32 +0000 (15:22 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 5 Jul 2022 01:55:32 +0000 (03:55 +0200)
commit196f35f81c962a1eae3f63bd621dfd9ebbf9a926
treebdba88c7c9253f884af9ed8a0ccac2398d2435e9
parentb84d7eb8862676d2b06e8666ed78479bbbffd17a
net/iavf: fix VF reset

When the VF is in closed state, the vf_reset flag can not be reverted
if the VF is reset asynchronously. This prevents all virtchnl commands
from executing, causing subsequent calls to iavf_dev_reset() to fail.

So the vf_reset flag needs to be reverted even when VF is in closed state.

Fixes: 676d986b4b86 ("net/iavf: fix crash after VF reset failure")
Cc: stable@dpdk.org
Signed-off-by: Yiding Zhou <yidingx.zhou@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_ethdev.c