History

mqprio: Reserve last 32 classid values for HW traffic classes and misc IDs

This patch makes a slight tweak to mqprio in order to bring the classid values used back in line with what is used for mq. The general idea is to reserve values :ffe0 - :ffef to identify hardware traffic classes normally reported via dev->num_tc. By doing this we can maintain a consistent behavior with mq for classid where :1 - :ffdf will represent a physical qdisc mapped onto a Tx queue represented by classid - 1, and the traffic classes will be mapped onto a known subset of classid values reserved for our virtual qdiscs. Note I reserved the range from :fff0 - :ffff since this way we might be able to reuse these classid values with clsact and ingress which would mean that for mq, mqprio, ingress, and clsact we should be able to maintain a similar classid layout.

Alexander Duyck committed 9 years ago

Commit 32302901 parent af28f6f2 files · +47 −33Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/pkt_sched.h+1−0
@@ -74,6 +74,7 @@ struct tc_estimator { · 73 unmodified lines
74#define TC_H_INGRESS (0xFFFFFFF1U)74#define TC_H_INGRESS (0xFFFFFFF1U)
75#define TC_H_CLSACT TC_H_INGRESS75#define TC_H_CLSACT TC_H_INGRESS
76 76
77#define TC_H_MIN_PRIORITY 0xFFE0U
77#define TC_H_MIN_INGRESS 0xFFF2U78#define TC_H_MIN_INGRESS 0xFFF2U
78#define TC_H_MIN_EGRESS 0xFFF3U79#define TC_H_MIN_EGRESS 0xFFF3U
79 80