[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z7VkiOkRxL3vOL0G@mini-arch>
Date: Tue, 18 Feb 2025 20:56:40 -0800
From: Stanislav Fomichev <stfomichev@...il.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: Stanislav Fomichev <sdf@...ichev.me>, netdev@...r.kernel.org,
davem@...emloft.net, edumazet@...gle.com, pabeni@...hat.com,
Saeed Mahameed <saeed@...nel.org>
Subject: Re: [PATCH net-next v4 10/12] net: dummy: add dummy shaper API
On 02/18, Jakub Kicinski wrote:
> On Mon, 17 Feb 2025 18:09:46 -0800 Stanislav Fomichev wrote:
> > A lot of selftests are using dummy module, convert it to netdev
> > instance lock to expand the test coverage.
>
> I think the next version should be ready for merging.
> What should we do with this patch?
> Can we add a bool inside struct net_device to opt-in
> for the ndo locking, without having to declare empty
> ops? I think more drivers could benefit from it that way.
Awesome, will drop this patch and add another one with a bool opt-in!
LMK if you prefer other name or a better comment:
@@ -2456,6 +2456,12 @@ struct net_device {
*/
bool up;
+ /**
+ * @request_ops_lock: request the core to run all @netdev_ops and
+ * @ethtool_ops under the @lock.
+ */
+ bool request_ops_lock;
+
/**
* @lock: netdev-scope lock, protects a small selection of fields.
* Should always be taken using netdev_lock() / netdev_unlock() helpers.
Powered by blists - more mailing lists