]> 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)
commit61c382052735f0005dca8740557fdd82aff8af51
treed07126ed452527557b7b22684f739b3cd945b920
parenta32fff0171593cd81cc99a0e3b23011781634eab
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