net: microchip: sparx5: Add support to check for existing VCAP rule id
authorSteen Hegelund <steen.hegelund@microchip.com>
Tue, 17 Jan 2023 08:55:41 +0000 (09:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2023 14:31:43 +0000 (14:31 +0000)
commit975d86acaec78306a88b4575a2c6357b97c2c4db
tree779dec3eb451ae6240b04de0570ed1a2dda28d01
parent27d293cceee50223c2f79978c098e9d1358b4ba6
net: microchip: sparx5: Add support to check for existing VCAP rule id

Add a new function that just checks if the VCAP rule id is already used by
an existing rule.

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