net/ice: track DCF state of PF
authorDapeng Yu <dapengx.yu@intel.com>
Wed, 24 Nov 2021 08:12:20 +0000 (16:12 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Sun, 2 Jan 2022 08:31:06 +0000 (09:31 +0100)
commit285f63fc6bb72a07594af9a7652f5bae3a95eb52
tree7bd633f47030f0ee9be40f4ebb8bbf2335edf6db
parent9b8b48f43bc53f819315f38c8a78cbeac8fb09e5
net/ice: track DCF state of PF

When VF is reset, PF will change DCF state from ON to other state, if
flow creation, destroy, or redirect command is sent to DCF at this
time, it will fail.

This patch tracks DCF state and returns try-again error to caller when
DCF state is not ON.

Cc: stable@dpdk.org
Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
drivers/net/ice/ice_dcf_ethdev.c
drivers/net/ice/ice_dcf_ethdev.h
drivers/net/ice/ice_dcf_parent.c
drivers/net/ice/ice_ethdev.h
drivers/net/ice/ice_generic_flow.c
drivers/net/ice/ice_switch_filter.c