]> 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)
commitb3d8a5c4f0bc2c882c5824da3e069123a6c09718
tree892ab85296b7249a6e9d26eb4b7740f43f1af089
parentb96151d3b9476ee369ba552da96f0e4743c3d5c2
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