> -----Original Message----- > From: Yu, DapengX <[email protected]> > Sent: Wednesday, November 24, 2021 16:12 > To: Yang, Qiming <[email protected]>; Zhang, Qi Z <[email protected]> > Cc: [email protected]; Wang, Haiyue <[email protected]>; Yu, DapengX > <[email protected]>; > [email protected] > Subject: [PATCH v2] net/ice: track the DCF state of PF > > From: Dapeng Yu <[email protected]> > > 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: [email protected] > > Signed-off-by: Dapeng Yu <[email protected]> > --- > V2: > * Move DCF state flag to another position > --- > drivers/net/ice/ice_dcf_ethdev.c | 12 ++++++++ > drivers/net/ice/ice_dcf_ethdev.h | 1 + > drivers/net/ice/ice_dcf_parent.c | 16 +++++++--- > drivers/net/ice/ice_ethdev.h | 2 ++ > drivers/net/ice/ice_generic_flow.c | 4 ++- > drivers/net/ice/ice_switch_filter.c | 45 +++++++++++++++++++++++++++-- > 6 files changed, 73 insertions(+), 7 deletions(-) >
LGTM, Acked-by: Haiyue Wang <[email protected]> > -- > 2.27.0

