OSDN Git Service

Merge branch 'sparx5-vcap-improve-locking'
authorDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2023 14:31:43 +0000 (14:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2023 14:31:43 +0000 (14:31 +0000)
commitbed91ac0810634e0ae58e575d8a1fb7893b4ac72
treee8cea0aeb82461f18517627ee96ac4f074c7a86d
parent0d4cda805a183bbe523f2407edb5c14ade50b841
parent595655e081746f6fca8263154fd6fb5f2b22da24
Merge branch 'sparx5-vcap-improve-locking'

Steen Hegelund says:

====================
sparx5: Improve locking in the VCAP API

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.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>