Netdev List
 help / color / mirror / Atom feed
* [iproute2 net-next v2 1/3] update headers with CBS API [ONLY FOR TESTING]
@ 2017-10-11  0:46 Vinicius Costa Gomes
  2017-10-11  0:46 ` [iproute2 net-next v2 2/3] tc: Add support for the CBS qdisc Vinicius Costa Gomes
  2017-10-11  0:46 ` [iproute2 net-next v2 3/3] man: Add initial manpage for tc-cbs(8) Vinicius Costa Gomes
  0 siblings, 2 replies; 3+ messages in thread
From: Vinicius Costa Gomes @ 2017-10-11  0:46 UTC (permalink / raw)
  To: netdev, intel-wired-lan
  Cc: Vinicius Costa Gomes, jhs, xiyou.wangcong, jiri, andre.guedes,
	ivan.briano, jesus.sanchez-palencia, boon.leong.ong,
	richardcochran, henrik, levipearson, rodney.cummings

The headers will be updated when iproute2 fetches the headers from
net-next, this patch is only to ease testing.

Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
---
 include/linux/pkt_sched.h | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/include/linux/pkt_sched.h b/include/linux/pkt_sched.h
index 099bf552..41e349df 100644
--- a/include/linux/pkt_sched.h
+++ b/include/linux/pkt_sched.h
@@ -871,4 +871,22 @@ struct tc_pie_xstats {
 	__u32 maxq;             /* maximum queue size */
 	__u32 ecn_mark;         /* packets marked with ecn*/
 };
+
+/* CBS */
+struct tc_cbs_qopt {
+	__u8 offload;
+	__s32 hicredit;
+	__s32 locredit;
+	__s32 idleslope;
+	__s32 sendslope;
+};
+
+enum {
+	TCA_CBS_UNSPEC,
+	TCA_CBS_PARMS,
+	__TCA_CBS_MAX,
+};
+
+#define TCA_CBS_MAX (__TCA_CBS_MAX - 1)
+
 #endif
-- 
2.14.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-11  0:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-11  0:46 [iproute2 net-next v2 1/3] update headers with CBS API [ONLY FOR TESTING] Vinicius Costa Gomes
2017-10-11  0:46 ` [iproute2 net-next v2 2/3] tc: Add support for the CBS qdisc Vinicius Costa Gomes
2017-10-11  0:46 ` [iproute2 net-next v2 3/3] man: Add initial manpage for tc-cbs(8) Vinicius Costa Gomes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox