]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower-ct: make a full copy of the rule when it is a NFT flow
authorYinjun Zhang <yinjun.zhang@corigine.com>
Wed, 16 Jun 2021 10:02:02 +0000 (12:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2021 19:42:52 +0000 (12:42 -0700)
commitbf310bb65d0c53cbf1600f4fa44dda42a97bb02b
tree8776169ade4757dfc6146a8561d2016495051d95
parent3d69bbbf74bfdca86ea0bf7d830ce0fa69c0cdfe
nfp: flower-ct: make a full copy of the rule when it is a NFT flow

The nft flow will be destroyed after offload cb returns. This means
we need save a full copy of it since it can be referenced through
other paths other than just the offload cb, for example when a new
pre_ct or post_ct entry is added, and it needs to be merged with
an existing nft entry.

Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Signed-off-by: Louis Peens <louis.peens@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