]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: Support specifying a starting chain via tc skb ext
authorPaul Blakey <paulb@mellanox.com>
Sun, 16 Feb 2020 10:01:24 +0000 (12:01 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 20 Feb 2020 01:49:48 +0000 (17:49 -0800)
commit31fb806a8fa1cf4547e48f10f9a87b8a05482d5a
tree7d5c9461ee77591c52637761cf473a7d7d936108
parente2b546858605add6f4c508f739f6e686d09b5b1d
net: sched: Support specifying a starting chain via tc skb ext

Set the starting chain from the tc skb ext chain value. Once we read
the tc skb ext, delete it, so cloned/redirect packets won't inherit it.

In order to lookup a chain by the chain index on the ingress block
at ingress classification, provide a lookup function.

Co-developed-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
net/sched/cls_api.c