Thu, Oct 26, 2023 at 11:41:06AM CEST, razor@xxxxxxxxxxxxx wrote: >Use netlink's NLA_POLICY_VALIDATE_FN() type for mode and primary/peer >policy with custom validation functions to return better errors. This >simplifies the logic a bit and relies on netlink's policy validation. >We don't have to specify len because the type is NLA_U32 and attribute >length is enforced by netlink. > >Suggested-by: Jiri Pirko <jiri@xxxxxxxxxxx> >Signed-off-by: Nikolay Aleksandrov <razor@xxxxxxxxxxxxx> Reviewed-by: Jiri Pirko <jiri@xxxxxxxxxx>