net: sched: uapi: add more sanely named duplicate defines
Subsystems (3)
Jakub Kicinski
maintainerPATCH 1/1 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.
---
CC: [email protected]
CC: [email protected]
CC: [email protected]
--- include/uapi/linux/pkt_cls.h | 1 + include/uapi/linux/pkt_sched.h | 1 + 2 files changed, 2 insertions(+)
include/uapi/linux/pkt_cls.h +1 -0
@@ -697,6 +697,7 @@ enum { };#define TCA_FLOWER_KEY_CFM_OPT_MAX (__TCA_FLOWER_KEY_CFM_OPT_MAX - 1) +#define TCA_FLOWER_KEY_CFM_MAX (__TCA_FLOWER_KEY_CFM_OPT_MAX - 1)#define TCA_FLOWER_MASK_FLAGS_RANGE (1 << 0)/* Range-based match */
include/uapi/linux/pkt_sched.h +1 -0
@@ -1182,6 +1182,7 @@ enum {TCA_TAPRIO_ATTR_SCHED_SINGLE_ENTRY ,/* single entry */ TCA_TAPRIO_ATTR_SCHED_CLOCKID ,/* s32 */ TCA_TAPRIO_PAD , +TCA_TAPRIO_ATTR_PAD =TCA_TAPRIO_PAD ,TCA_TAPRIO_ATTR_ADMIN_SCHED ,/* The admin sched, only used in dump */ TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME ,/* s64 */ TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME_EXTENSION, /* s64 */
Signature · 1 line
2.49.0
Quoted 9 lines · Jakub Kicinski
The
TCA_FLOWER_KEY_CFMenum has a UNSPEC and MAX with_OPTin the name, but the real attributes don't. Add a MAX that more reasonably matches the attrs.The PAD in
TCA_TAPRIOis the only attr which doesn't have_ATTRin it, perhaps signifying that it's not a real attr? If so interesting idea in abstract but it makes codegen painful.Signed-off-by Jakub Kicinski <[email protected]>
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Tue, 13 May 2025 15:17:52 -0700 you wrote:
The
TCA_FLOWER_KEY_CFMenum has a UNSPEC and MAX with_OPTin the name, but the real attributes don't. Add a MAX that more reasonably matches the attrs.The PAD in
TCA_TAPRIOis the only attr which doesn't have_ATTRin it, perhaps signifying that it's not a real attr? If so interesting idea in abstract but it makes codegen painful.[...]
Here is the summary with links:
- [net-next] net: sched: uapi: add more sanely named duplicate defines
https://git.kernel.org/netdev/net-next/c/1119e5519dcd
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html