OSDN Git Service

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)
commit4772ad3f58d2423ab4a6587e422eeac3ab8be369
tree8776169ade4757dfc6146a8561d2016495051d95
parent95255017e0a84692faa33fdc0746433987b5aff0
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