OSDN Git Service

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)
commitaf699626ee268244423b3c6d43e4daaca40a3ed0
tree7d5c9461ee77591c52637761cf473a7d7d936108
parent43719298193224c9a76c355de1622bd70242bc08
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