OSDN Git Service

net/sched: Introduce Credit Based Shaper (CBS) qdisc
authorVinicius Costa Gomes <vinicius.gomes@intel.com>
Tue, 17 Oct 2017 01:01:26 +0000 (18:01 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 27 Oct 2017 16:48:02 +0000 (09:48 -0700)
commit585d763af09cc21daf48ecc873604ccdb70f6014
treead8b09f581d51c80e4f6195f6d2a3eca6e83c5da
parent0f7787b4133fb26b6dc0779e4867408e07711d8e
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>
include/uapi/linux/pkt_sched.h
net/sched/Kconfig
net/sched/Makefile
net/sched/sch_cbs.c [new file with mode: 0644]