Re: [PATCH net-next v3 01/13] devlink: expose devlink instance index over netlink

From
Jiri Pirko <jiri@resnulli.us>
Date
2026-03-07 07:52:30
Also in
linux-doc, linux-rdma, linux-trace-kernel
Reply to
Jakub Kicinski, 2026-03-07
Sat, Mar 07, 2026 at 04:32:53AM +0100, kuba@kernel.org wrote:
On Wed,  4 Mar 2026 17:00:10 +0100 Jiri Pirko wrote:
quoted
+      -
+        name: index
+        type: uint
+        doc: Unique devlink instance index.
AI complains on patch 6 that the index is truncated because it's saved
to a u32. Let's add:

       checks:
          max: u32-max

here and the policy will take care of the check, you can then remove
the explicit checks too
Okay. Thanks!
-- 
pw-bot: cr
Thread (16 messages) 16 messages, 2 authors, last reply 2026-03-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help