nfp: flower: refactor function "is_pre_ct_flow"
authorWentao Jia <wentao.jia@corigine.com>
Tue, 14 Mar 2023 06:36:06 +0000 (08:36 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Mar 2023 05:16:22 +0000 (22:16 -0700)
commitcee7b339d806f71df611087724ddfbaad2d8f8b7
tree9ed0d1c1c9574676b99c8ccdbc1231a038d8409b
parent8a8db7aeaa6dae4ddae033858bf5b49aecfbbe42
nfp: flower: refactor function "is_pre_ct_flow"

In the scenario of multiple ct zones, ct state key match and ct action
is present in one flow rule, the flow rule is classified to post_ct_flow
in design.

There is no ct state key match for pre ct flow, the judging condition
is added to function "is_pre_ct_flow".

Chain_index is another field for judging which flows are pre ct flow
If chain_index not 0, the flow is not pre ct flow.

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