]> git.droids-corp.org - dpdk.git/commit
net/ice: workaround DCF reset failure
authorDapeng Yu <dapengx.yu@intel.com>
Tue, 26 Oct 2021 09:53:07 +0000 (17:53 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 27 Oct 2021 03:25:25 +0000 (05:25 +0200)
commitb4f0d4ab66b083af79763c8e7d713104ab079367
tree34b3601b1625cdb8eee45759e0b2be5c32f53442
parent41f2f05574b1da44207176ceffd82d1216028c96
net/ice: workaround DCF reset failure

After DCF is reset by PF, the DCF device un-initialization cannot
function normally, ignore the failure does not help since the kernel
does not clean up resource.

The patch workaround the issue by triggering an additional DCF enable/
disable cycle when a passive reset is detected.

Fixes: 1a86f4dbdf42 ("net/ice: support DCF device reset")
Cc: stable@dpdk.org
Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_dcf.c
drivers/net/ice/ice_dcf_ethdev.c