devlink: remove no longer true locking comment from port_new/del()
authorJiri Pirko <jiri@nvidia.com>
Tue, 23 May 2023 12:38:00 +0000 (14:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 May 2023 09:34:26 +0000 (10:34 +0100)
All commands are called holding instance lock. Remove the outdated
comment that says otherwise.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/devlink.h

index ccea6e0..24a48f3 100644 (file)
@@ -1506,8 +1506,6 @@ struct devlink_ops {
         * attributes
         *
         * Notes:
-        *      - Called without devlink instance lock being held. Drivers must
-        *        implement own means of synchronization
         *      - On success, drivers must register a port with devlink core
         *
         * Return: 0 on success, negative value otherwise.
@@ -1525,8 +1523,6 @@ struct devlink_ops {
         * to delete a previously created port function
         *
         * Notes:
-        *      - Called without devlink instance lock being held. Drivers must
-        *        implement own means of synchronization
         *      - On success, drivers must unregister the corresponding devlink
         *        port
         *