Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: sched: uapi: add more sanely named duplicate defines

The TCA_FLOWER_KEY_CFM enum has a UNSPEC and MAX with _OPT
in the name, but the real attributes don't. Add a MAX that
more reasonably matches the attrs.

The PAD in TCA_TAPRIO is the only attr which doesn't have
_ATTR in it, perhaps signifying that it's not a real attr?
If so interesting idea in abstract but it makes codegen painful.

Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250513221752.843102-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

+2
+1
include/uapi/linux/pkt_cls.h
··· 697 697 }; 698 698 699 699 #define TCA_FLOWER_KEY_CFM_OPT_MAX (__TCA_FLOWER_KEY_CFM_OPT_MAX - 1) 700 + #define TCA_FLOWER_KEY_CFM_MAX (__TCA_FLOWER_KEY_CFM_OPT_MAX - 1) 700 701 701 702 #define TCA_FLOWER_MASK_FLAGS_RANGE (1 << 0) /* Range-based match */ 702 703
+1
include/uapi/linux/pkt_sched.h
··· 1182 1182 TCA_TAPRIO_ATTR_SCHED_SINGLE_ENTRY, /* single entry */ 1183 1183 TCA_TAPRIO_ATTR_SCHED_CLOCKID, /* s32 */ 1184 1184 TCA_TAPRIO_PAD, 1185 + TCA_TAPRIO_ATTR_PAD = TCA_TAPRIO_PAD, 1185 1186 TCA_TAPRIO_ATTR_ADMIN_SCHED, /* The admin sched, only used in dump */ 1186 1187 TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME, /* s64 */ 1187 1188 TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME_EXTENSION, /* s64 */