]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc390fb71419d96a29e66a96751aaf09bfe85c9d6
treed07126ed452527557b7b22684f739b3cd945b920
parent59bf0c8fbbae820d31b6cc4656480e6be86bd35d
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