nfp: flower: add/remove predt_list entries
authorLouis Peens <louis.peens@corigine.com>
Thu, 5 May 2022 05:43:41 +0000 (14:43 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 May 2022 10:21:33 +0000 (11:21 +0100)
commite30b2b68c14f51156ae982047903bb37d4799a16
tree9fb8d1b5db9660400394ac7775595d4b4d5e08e1
parent29c691347e38248607eeab74691bed05115fca79
nfp: flower: add/remove predt_list entries

Add calls to add and remove flows to the predt_table. This very simply
just allocates and add a new pretun entry if detected as such, and
removes it when encountered on a delete flow.

Compatibility for older firmware is kept in place through the
DECAP_V2 feature bit.

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