]> Gentwo Git Trees - linux/.git/commit
devlink/port: Check attributes early and constify
authorParav Pandit <parav@nvidia.com>
Wed, 13 Aug 2025 09:44:17 +0000 (12:44 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Aug 2025 00:35:20 +0000 (17:35 -0700)
commit41a6e8ab18642741437da932c2f5762b185e928c
treeb20dd62fac1175678f833353f118ab7bbf09ef95
parent0ebc0bcd0aa0037019aac996c50166c7baf44ff8
devlink/port: Check attributes early and constify

Constify the devlink port attributes to indicate they are read only
and does not depend on anything else. Therefore, validate it early
before setting in the devlink port.

Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Parav Pandit <parav@nvidia.com>
Link: https://patch.msgid.link/20250813094417.7269-3-parav@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/devlink.h
net/devlink/port.c