netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vinicius Costa Gomes <vinicius.gomes@intel.com>
To: netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org
Cc: Vinicius Costa Gomes <vinicius.gomes@intel.com>,
	jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us,
	andre.guedes@intel.com, ivan.briano@intel.com,
	jesus.sanchez-palencia@intel.com, boon.leong.ong@intel.com,
	richardcochran@gmail.com, henrik@austad.us,
	levipearson@gmail.com, rodney.cummings@ni.com
Subject: [next-queue PATCH v2 3/5] net/sched: Introduce the user API for the CBS shaper
Date: Tue,  3 Oct 2017 16:44:32 -0700	[thread overview]
Message-ID: <20171003234435.8979-5-vinicius.gomes@intel.com> (raw)
In-Reply-To: <20171003234435.8979-1-vinicius.gomes@intel.com>

Export the API necessary for configuring the CBS shaper (implemented
in the next patch) via the tc tool.

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

diff --git a/include/uapi/linux/pkt_sched.h b/include/uapi/linux/pkt_sched.h
index 099bf5528fed..27c849c053cf 100644
--- a/include/uapi/linux/pkt_sched.h
+++ b/include/uapi/linux/pkt_sched.h
@@ -871,4 +871,21 @@ struct tc_pie_xstats {
 	__u32 maxq;             /* maximum queue size */
 	__u32 ecn_mark;         /* packets marked with ecn*/
 };
+
+/* CBS */
+struct tc_cbs_qopt {
+	__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

  parent reply	other threads:[~2017-10-03 23:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-03 23:44 [next-queue PATCH v3 0/4] TSN: Add qdisc based config interface for CBS Vinicius Costa Gomes
2017-10-03 23:44 ` [next-queue PATCH v3 1/4] mqprio: Implement select_queue class_ops Vinicius Costa Gomes
2017-10-03 23:44 ` [next-queue PATCH v3 2/4] net/sched: Fix accessing invalid dev_queue Vinicius Costa Gomes
2017-10-04  3:47   ` Eric Dumazet
2017-10-04 17:42     ` Jesus Sanchez-Palencia
2017-10-03 23:44 ` [next-queue PATCH v3 3/4] net/sched: Introduce Credit Based Shaper (CBS) qdisc Vinicius Costa Gomes
2017-10-03 23:44 ` Vinicius Costa Gomes [this message]
2017-10-03 23:55   ` [next-queue PATCH v2 3/5] net/sched: Introduce the user API for the CBS shaper Vinicius Costa Gomes
2017-10-03 23:44 ` [next-queue PATCH v3 4/4] igb: Add support for CBS offload Vinicius Costa Gomes
2017-10-03 23:44 ` [next-queue PATCH v2 4/5] net/sched: Introduce Credit Based Shaper (CBS) qdisc Vinicius Costa Gomes
2017-10-03 23:44 ` [next-queue PATCH v2 5/5] igb: Add support for CBS offload Vinicius Costa Gomes
  -- strict thread matches above, loose matches on Subject: below --
2017-09-30  0:26 [next-queue PATCH v2 0/5] TSN: Add qdisc based config interface for CBS Vinicius Costa Gomes
2017-09-30  0:26 ` [next-queue PATCH v2 3/5] net/sched: Introduce the user API for the CBS shaper Vinicius Costa Gomes
2017-10-01  0:24   ` Cong Wang
2017-10-02 17:07     ` Vinicius Costa Gomes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171003234435.8979-5-vinicius.gomes@intel.com \
    --to=vinicius.gomes@intel.com \
    --cc=andre.guedes@intel.com \
    --cc=boon.leong.ong@intel.com \
    --cc=henrik@austad.us \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=ivan.briano@intel.com \
    --cc=jesus.sanchez-palencia@intel.com \
    --cc=jhs@mojatatu.com \
    --cc=jiri@resnulli.us \
    --cc=levipearson@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=richardcochran@gmail.com \
    --cc=rodney.cummings@ni.com \
    --cc=xiyou.wangcong@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).