nfp: flower: add get_flow_act_ct() for ct action
authorWentao Jia <wentao.jia@corigine.com>
Tue, 14 Mar 2023 06:36:05 +0000 (08:36 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Mar 2023 05:16:22 +0000 (22:16 -0700)
commit8a8db7aeaa6dae4ddae033858bf5b49aecfbbe42
tree55ae630bff52f459f93480efbad7b91c885102a7
parentfabdc10075b8f67b120091a3dc9173616f3ccebe
nfp: flower: add get_flow_act_ct() for ct action

CT action is a special case different from other actions, CT clear action
is not required when get ct action, but this case is not considered.
If CT clear action in the flow rule, skip the CT clear action when get ct
action, return the first ct action that is not a CT clear action

Signed-off-by: Wentao Jia <wentao.jia@corigine.com>
Acked-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/netronome/nfp/flower/conntrack.c