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. Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com> Signed-off-by: Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com> Tested-by: Henrik Austad <henrik@austad.us> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
0f7787b413
commit
585d763af0
@@ -904,4 +904,23 @@ struct tc_pie_xstats {
|
||||
__u32 maxq; /* maximum queue size */
|
||||
__u32 ecn_mark; /* packets marked with ecn*/
|
||||
};
|
||||
|
||||
/* CBS */
|
||||
struct tc_cbs_qopt {
|
||||
__u8 offload;
|
||||
__u8 _pad[3];
|
||||
__s32 hicredit;
|
||||
__s32 locredit;
|
||||
__s32 idleslope;
|
||||
__s32 sendslope;
|
||||
};
|
||||
|
||||
enum {
|
||||
TCA_CBS_UNSPEC,
|
||||
TCA_CBS_PARMS,
|
||||
__TCA_CBS_MAX,
|
||||
};
|
||||
|
||||
#define TCA_CBS_MAX (__TCA_CBS_MAX - 1)
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user