Re: [PATCH net-next 2/7] net: nexthop: Add NHA_OP_FLAGS
From: Jakub Kicinski <kuba@kernel.org>
Date: 2024-02-28 16:42:21
From: Jakub Kicinski <kuba@kernel.org>
Date: 2024-02-28 16:42:21
On Wed, 28 Feb 2024 16:58:24 +0100 Petr Machata wrote:
Um, so as I said, I mostly figured let's use bitfield because of the validation. I really like how it's all part of the policy and there's no explicit checking code. So I'd keep it as it is.
FWIW the same validation is possible for bare unsigned types with NLA_POLICY_MASK().