]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: sched: propagate classid down to offload drivers
authorJiri Pirko <jiri@mellanox.com>
Wed, 9 Aug 2017 12:30:32 +0000 (14:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2017 20:47:01 +0000 (13:47 -0700)
Drivers need classid to decide they support this specific qdisc+class
or not. So propagate it down via the tc_cls_common_offload struct.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h

index 0f78e6560b2d757bcf79d2736a7bbc38ada66fcb..1f1de20e584f464e46827363561591b05a2ac4d0 100644 (file)
@@ -410,6 +410,7 @@ struct tc_cls_common_offload {
        u32 chain_index;
        __be16 protocol;
        u32 prio;
+       u32 classid;
 };
 
 static inline void
@@ -420,6 +421,7 @@ tc_cls_common_offload_init(struct tc_cls_common_offload *cls_common,
        cls_common->chain_index = tp->chain->index;
        cls_common->protocol = tp->protocol;
        cls_common->prio = tp->prio;
+       cls_common->classid = tp->classid;
 }
 
 struct tc_cls_u32_knode {