[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230117085544.591523-1-steen.hegelund@microchip.com>
Date: Tue, 17 Jan 2023 09:55:39 +0100
From: Steen Hegelund <steen.hegelund@...rochip.com>
To: "David S . Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
CC: Steen Hegelund <steen.hegelund@...rochip.com>,
<UNGLinuxDriver@...rochip.com>,
Randy Dunlap <rdunlap@...radead.org>,
"Casper Andersson" <casper.casan@...il.com>,
Russell King <rmk+kernel@...linux.org.uk>,
Wan Jiabing <wanjiabing@...o.com>,
"Nathan Huckleberry" <nhuck@...gle.com>,
<linux-kernel@...r.kernel.org>, <netdev@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
"Steen Hegelund" <Steen.Hegelund@...rochip.com>,
Daniel Machon <daniel.machon@...rochip.com>,
Horatiu Vultur <horatiu.vultur@...rochip.com>,
Lars Povlsen <lars.povlsen@...rochip.com>,
Dan Carpenter <error27@...il.com>,
Michael Walle <michael@...le.cc>
Subject: [PATCH net-next 0/5] 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.
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(-)
--
2.39.0
Powered by blists - more mailing lists