OSDN Git Service

nfp: flower-ct: compile match sections of flow_payload
authorLouis Peens <louis.peens@corigine.com>
Thu, 22 Jul 2021 07:58:04 +0000 (09:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jul 2021 09:22:22 +0000 (02:22 -0700)
commit5a2b930416462a2ff09e507728ccfbfa7cb65ed8
treed07126ed452527557b7b22684f739b3cd945b920
parent71e88cfb92601a50e965389a507a71df12056b20
nfp: flower-ct: compile match sections of flow_payload

Add in the code to compile match part of the payload that will be
sent to the firmware. This works similar to match.c does it, but
since three flows needs to be merged it iterates through all three
rules in a loop and combine the match fields to get the most strict
match as result.

Signed-off-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/conntrack.c