]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: introduce ingress/egress block index attributes for qdisc
authorJiri Pirko <jiri@mellanox.com>
Wed, 17 Jan 2018 10:46:52 +0000 (11:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jan 2018 19:53:57 +0000 (14:53 -0500)
commit919ba64b19074cc58a41a77a31efd4a84508713d
tree0cd3dbe9b5fce13916c534ea424c85d1ed73a93c
parentf3754fb05fe8ad077201e53a563bc3794c63392a
net: sched: introduce ingress/egress block index attributes for qdisc

Introduce two new attributes to be used for qdisc creation and dumping.
One for ingress block, one for egress block. Introduce a set of ops that
qdisc which supports block sharing would implement.

Passing block indexes in qdisc change is not supported yet and it is
checked and forbidded.

In future, these attributes are to be reused for specifying block
indexes for classes as well. As of this moment however, it is not
supported so a check is in place to forbid it.

Suggested-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h
include/uapi/linux/rtnetlink.h
net/sched/sch_api.c