net: microchip: sparx5: Provide rule count, key removal and keyset select
authorSteen Hegelund <steen.hegelund@microchip.com>
Tue, 7 Mar 2023 13:41:00 +0000 (14:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Mar 2023 13:19:43 +0000 (13:19 +0000)
commitbfcb94aacc92f7025bd86a545037e5eb8db00e32
tree353b7fac38f33711e741f86447d2b5e9b287a01d
parentfbd3dce9580882580b7d4779569062e371e8be48
net: microchip: sparx5: Provide rule count, key removal and keyset select

This provides these 3 functions in the VCAP API:

- Count the number of rules in a VCAP lookup (chain)
- Remove a key from a VCAP rule
- Find the keyset that gives the smallest rule list from a list of keysets

Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/vcap/vcap_api.c
drivers/net/ethernet/microchip/vcap/vcap_api_client.h