mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
net: microchip: sparx5: Add VCAP locking to protect rules
This ensures that the VCAP cache and the lists maintained in the VCAP instance is protected when accessed by different clients. Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
72d84dd609
commit
71c9de9952
@@ -167,6 +167,7 @@ struct vcap_admin {
|
||||
struct list_head list; /* for insertion in vcap_control */
|
||||
struct list_head rules; /* list of rules */
|
||||
struct list_head enabled; /* list of enabled ports */
|
||||
struct mutex lock; /* control access to rules */
|
||||
enum vcap_type vtype; /* type of vcap */
|
||||
int vinst; /* instance number within the same type */
|
||||
int first_cid; /* first chain id in this vcap */
|
||||
|
||||
Reference in New Issue
Block a user