summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/pkt_sched.h
diff options
context:
space:
mode:
authorNogah Frankel2017-11-06 07:23:41 +0100
committerDavid S. Miller2017-11-08 04:23:37 +0100
commit602f3baf22188aad24b9a58be3209ab774b97d74 (patch)
treef8cffb1dc6ee8f0cb6695cf886daacab55463707 /include/uapi/linux/pkt_sched.h
parentbpf: Rename tcp_bbf.readme to tcp_bpf.readme (diff)
downloadkernel-qcow2-linux-602f3baf22188aad24b9a58be3209ab774b97d74.tar.gz
kernel-qcow2-linux-602f3baf22188aad24b9a58be3209ab774b97d74.tar.xz
kernel-qcow2-linux-602f3baf22188aad24b9a58be3209ab774b97d74.zip
net_sch: red: Add offload ability to RED qdisc
Add the ability to offload RED qdisc by using ndo_setup_tc. There are four commands for RED offloading: * TC_RED_SET: handles set and change. * TC_RED_DESTROY: handle qdisc destroy. * TC_RED_STATS: update the qdiscs counters (given as reference) * TC_RED_XSTAT: returns red xstats. Whether RED is being offloaded is being determined every time dump action is being called because parent change of this qdisc could change its offload state but doesn't require any RED function to be called. Signed-off-by: Nogah Frankel <nogahf@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/pkt_sched.h')
-rw-r--r--include/uapi/linux/pkt_sched.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/pkt_sched.h b/include/uapi/linux/pkt_sched.h
index 5002562868cc..6a2c5ea7e9c4 100644
--- a/include/uapi/linux/pkt_sched.h
+++ b/include/uapi/linux/pkt_sched.h
@@ -256,6 +256,7 @@ struct tc_red_qopt {
#define TC_RED_ECN 1
#define TC_RED_HARDDROP 2
#define TC_RED_ADAPTATIVE 4
+#define TC_RED_OFFLOADED 8
};
struct tc_red_xstats {