summaryrefslogtreecommitdiffstats
path: root/include/net/pkt_cls.h
diff options
context:
space:
mode:
authorPetr Machata <petrm@mellanox.com>2020-03-05 09:16:40 +0200
committerDavid S. Miller <davem@davemloft.net>2020-03-05 14:03:31 -0800
commitaaca9408078914380fbfd8aef3c38a34b515a654 (patch)
treeb1ec43322e182f65563275058687116d674f2b22 /include/net/pkt_cls.h
parentf3588909c18553e0a9d69fc7832a606681f59048 (diff)
downloadlinux-stable-aaca9408078914380fbfd8aef3c38a34b515a654.tar.gz
linux-stable-aaca9408078914380fbfd8aef3c38a34b515a654.tar.bz2
linux-stable-aaca9408078914380fbfd8aef3c38a34b515a654.zip
net: sched: Make FIFO Qdisc offloadable
Invoke ndo_setup_tc() as appropriate to signal init / replacement, destroying and dumping of pFIFO / bFIFO Qdisc. A lot of the FIFO logic is used for pFIFO_head_drop as well, but that's a semantically very different Qdisc that isn't really in the same boat as pFIFO / bFIFO. Split some of the functions to keep the Qdisc intact. Signed-off-by: Petr Machata <petrm@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/pkt_cls.h')
-rw-r--r--include/net/pkt_cls.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h
index 53946b509b51..341a66af8d59 100644
--- a/include/net/pkt_cls.h
+++ b/include/net/pkt_cls.h
@@ -881,4 +881,19 @@ struct tc_tbf_qopt_offload {
};
};
+enum tc_fifo_command {
+ TC_FIFO_REPLACE,
+ TC_FIFO_DESTROY,
+ TC_FIFO_STATS,
+};
+
+struct tc_fifo_qopt_offload {
+ enum tc_fifo_command command;
+ u32 handle;
+ u32 parent;
+ union {
+ struct tc_qopt_offload_stats stats;
+ };
+};
+
#endif