History

net/sched: Introduce Credit Based Shaper (CBS) qdisc

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.

Vinicius Costa Gomes committed 9 years ago

Commit 585d7631 parent 0f7787b4 files · +324 −0Browse files

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

Unified · Split

include/uapi/linux/pkt_sched.h+19−0
@@ -904,4 +904,23 @@ struct tc_pie_xstats { · 903 unmodified lines
904 __u32 maxq; /* maximum queue size */904 __u32 maxq; /* maximum queue size */
905 __u32 ecn_mark; /* packets marked with ecn*/905 __u32 ecn_mark; /* packets marked with ecn*/
906};906};
907
908/* CBS */
909struct tc_cbs_qopt {
910 __u8 offload;
911 __u8 _pad[3];
912 __s32 hicredit;
913 __s32 locredit;
914 __s32 idleslope;
915 __s32 sendslope;
916};
917
918enum {
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#endif926#endif