aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/pkt_cls.h
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-11-12 14:58:10 -0800
committerDavid S. Miller <davem@davemloft.net>2018-11-14 08:51:27 -0800
commit98b0e5f6842a9982a793f0837b1bd1495542a3d8 (patch)
treed0621a7623f4ada26b60970e71062cb3ceaf9419 /include/net/pkt_cls.h
parentnfp: abm: track all offload-enabled qdiscs (diff)
downloadlinux-dev-98b0e5f6842a9982a793f0837b1bd1495542a3d8.tar.xz
linux-dev-98b0e5f6842a9982a793f0837b1bd1495542a3d8.zip
net: sched: provide notification for graft on root
Drivers are currently not notified when a Qdisc is grafted as root. This requires special casing Qdiscs added with parent = TC_H_ROOT in the driver. Also there is no notification sent to the driver when an existing Qdisc is grafted as root. Add this very simple notifications, drivers should now be able to track their Qdisc tree fully. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: John Hurley <john.hurley@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--include/net/pkt_cls.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h
index f6c0cd29dea4..fa31d034231d 100644
--- a/include/net/pkt_cls.h
+++ b/include/net/pkt_cls.h
@@ -889,4 +889,14 @@ struct tc_prio_qopt_offload {
};
};
+enum tc_root_command {
+ TC_ROOT_GRAFT,
+};
+
+struct tc_root_qopt_offload {
+ enum tc_root_command command;
+ u32 handle;
+ bool ingress;
+};
+
#endif