[net-next,0/5] Improve locking in the VCAP API

Message ID 20230117085544.591523-1-steen.hegelund@microchip.com
Headers
Series Improve locking in the VCAP API |

Message

Steen Hegelund Jan. 17, 2023, 8:55 a.m. UTC
  This improves the VCAP cache and the VCAP rule list protection against
access from different sources.

The VCAP Admin lock protects the list of rules for the VCAP instance as
well as the cache used for encoding and decoding rules.

This series provides dedicated functions for accessing rule statistics,
decoding rule content, verifying if a rule exists and getting a rule with
the lock held, as well as ensuring the use of the lock when the list of
rules or the cache is accessed.

Steen Hegelund (5):
  net: microchip: sparx5: Add support for rule count by cookie
  net: microchip: sparx5: Add support to check for existing VCAP rule id
  net: microchip: sparx5: Add VCAP admin locking in debugFS
  net: microchip: sparx5: Improve VCAP admin locking in the VCAP API
  net: microchip: sparx5: Add lock initialization to the KUNIT tests

 .../microchip/sparx5/sparx5_tc_flower.c       |  34 +--
 .../net/ethernet/microchip/vcap/vcap_api.c    | 234 ++++++++++++------
 .../ethernet/microchip/vcap/vcap_api_client.h |   2 +
 .../microchip/vcap/vcap_api_debugfs.c         |  14 +-
 .../microchip/vcap/vcap_api_debugfs_kunit.c   |   1 +
 .../ethernet/microchip/vcap/vcap_api_kunit.c  |   1 +
 .../microchip/vcap/vcap_api_private.h         |   3 +
 7 files changed, 175 insertions(+), 114 deletions(-)
  

Comments

patchwork-bot+netdevbpf@kernel.org Jan. 18, 2023, 2:40 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Tue, 17 Jan 2023 09:55:39 +0100 you wrote:
> This improves the VCAP cache and the VCAP rule list protection against
> access from different sources.
> 
> The VCAP Admin lock protects the list of rules for the VCAP instance as
> well as the cache used for encoding and decoding rules.
> 
> This series provides dedicated functions for accessing rule statistics,
> decoding rule content, verifying if a rule exists and getting a rule with
> the lock held, as well as ensuring the use of the lock when the list of
> rules or the cache is accessed.
> 
> [...]

Here is the summary with links:
  - [net-next,1/5] net: microchip: sparx5: Add support for rule count by cookie
    https://git.kernel.org/netdev/net-next/c/27d293cceee5
  - [net-next,2/5] net: microchip: sparx5: Add support to check for existing VCAP rule id
    https://git.kernel.org/netdev/net-next/c/975d86acaec7
  - [net-next,3/5] net: microchip: sparx5: Add VCAP admin locking in debugFS
    https://git.kernel.org/netdev/net-next/c/9579e2c271b4
  - [net-next,4/5] net: microchip: sparx5: Improve VCAP admin locking in the VCAP API
    https://git.kernel.org/netdev/net-next/c/1972b6d927ac
  - [net-next,5/5] net: microchip: sparx5: Add lock initialization to the KUNIT tests
    https://git.kernel.org/netdev/net-next/c/595655e08174

You are awesome, thank you!