On Thu, 28 Mar 2024 19:53:33 +0100 Johannes Berg wrote: > I suppose we could even define a > > nla_for_each_type(..., type) That's probably a good idea for the kernel! We already have a bunch of the loops with the if (type != DESIRED) continue, as you mentioned.