This queueing discipline implements the shaper algorithm defined by the 802.1Q-2014 Section 8.6.8.2 and detailed in Annex L. It's primary usage is to apply some bandwidth reservation to user defined traffic classes, which are mapped to different queues via the mqprio qdisc. Only a simple software implementation is added for now.
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -904,4 +904,23 @@ struct tc_pie_xstats { · 903 unmodified lines | ||
| 904 | 904 | __u32 maxq; /* maximum queue size */ |
| 905 | 905 | __u32 ecn_mark; /* packets marked with ecn*/ |
| 906 | 906 | }; |
| 907 | + | |
| 908 | +/* CBS */ | |
| 909 | +struct tc_cbs_qopt { | |
| 910 | + __u8 offload; | |
| 911 | + __u8 _pad[3]; | |
| 912 | + __s32 hicredit; | |
| 913 | + __s32 locredit; | |
| 914 | + __s32 idleslope; | |
| 915 | + __s32 sendslope; | |
| 916 | +}; | |
| 917 | + | |
| 918 | +enum { | |
| 919 | + TCA_CBS_UNSPEC, | |
| 920 | + TCA_CBS_PARMS, | |
| 921 | + __TCA_CBS_MAX, | |
| 922 | +}; | |
| 923 | + | |
| 924 | +#define TCA_CBS_MAX (__TCA_CBS_MAX - 1) | |
| 925 | + | |
| 907 | 926 | #endif |