]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: flower-ct: add delete flow handling for ct
authorLouis Peens <louis.peens@corigine.com>
Wed, 16 Jun 2021 10:01:59 +0000 (12:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2021 19:42:52 +0000 (12:42 -0700)
commiteee034f848c7014f78c9e6b48303ca348fe52ab6
tree892ab85296b7249a6e9d26eb4b7740f43f1af089
parent55eec08c7a25026d0952cf3dac458e571c376eb3
nfp: flower-ct: add delete flow handling for ct

Add functions to handle delete flow callbacks for ct flows. Also
accept the flows for offloading by returning 0 instead of -EOPNOTSUPP.
Flows will still not actually be offloaded to hw, but at this point
it's difficult to not accept the flows and also exercise the cleanup
paths properly. Traffic will still be handled safely through the
fallback path.

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
drivers/net/ethernet/netronome/nfp/flower/conntrack.h
drivers/net/ethernet/netronome/nfp/flower/offload.c