{"id":809009,"url":"http://patchwork.ozlabs.org/api/1.0/patches/809009/?format=json","project":{"id":46,"url":"http://patchwork.ozlabs.org/api/1.0/projects/46/?format=json","name":"Intel Wired Ethernet development","link_name":"intel-wired-lan","list_id":"intel-wired-lan.osuosl.org","list_email":"intel-wired-lan@osuosl.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20170901012625.14838-2-vinicius.gomes@intel.com>","date":"2017-09-01T01:26:21","name":"[RFC,net-next,1/5] net/sched: Introduce the user API for the CBS shaper","commit_ref":null,"pull_url":null,"state":"rfc","archived":false,"hash":"72ca0415ab99caca86d4ab263a94de7f997f834c","submitter":{"id":72272,"url":"http://patchwork.ozlabs.org/api/1.0/people/72272/?format=json","name":"Vinicius Costa Gomes","email":"vinicius.gomes@intel.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20170901012625.14838-2-vinicius.gomes@intel.com/mbox/","series":[{"id":1120,"url":"http://patchwork.ozlabs.org/api/1.0/series/1120/?format=json","date":"2017-09-01T01:26:21","name":"TSN: Add qdisc-based config interfaces for traffic shapers","version":1,"mbox":"http://patchwork.ozlabs.org/series/1120/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/809009/checks/","tags":{},"headers":{"Return-Path":"<intel-wired-lan-bounces@osuosl.org>","X-Original-To":["incoming@patchwork.ozlabs.org","intel-wired-lan@lists.osuosl.org"],"Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","intel-wired-lan@lists.osuosl.org"],"Authentication-Results":"ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.137; helo=fraxinus.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)","Received":["from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xkXM51xtPz9sQl\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  2 Sep 2017 07:24:48 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 39BA987FD9;\n\tFri,  1 Sep 2017 21:24:47 +0000 (UTC)","from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 3z_552W_HpjV; Fri,  1 Sep 2017 21:24:46 +0000 (UTC)","from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 8942287FC2;\n\tFri,  1 Sep 2017 21:24:46 +0000 (UTC)","from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id 0F5981CEAE4\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  1 Sep 2017 01:26:31 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 02FB08A134\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  1 Sep 2017 01:26:31 +0000 (UTC)","from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id z8Tt82+F0uzM for <intel-wired-lan@lists.osuosl.org>;\n\tFri,  1 Sep 2017 01:26:29 +0000 (UTC)","from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id 4CC858A11D\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri,  1 Sep 2017 01:26:29 +0000 (UTC)","from fmsmga006.fm.intel.com ([10.253.24.20])\n\tby fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t31 Aug 2017 18:26:28 -0700","from ellie.jf.intel.com (HELO localhost.localdomain)\n\t([10.24.8.207])\n\tby fmsmga006.fm.intel.com with ESMTP; 31 Aug 2017 18:26:28 -0700"],"X-Virus-Scanned":["amavisd-new at osuosl.org","amavisd-new at osuosl.org"],"X-Greylist":"domain auto-whitelisted by SQLgrey-1.7.6","X-ExtLoop1":"1","X-IronPort-AV":"E=Sophos;i=\"5.41,456,1498546800\"; d=\"scan'208\";a=\"146934271\"","From":"Vinicius Costa Gomes <vinicius.gomes@intel.com>","To":"netdev@vger.kernel.org","Date":"Thu, 31 Aug 2017 18:26:21 -0700","Message-Id":"<20170901012625.14838-2-vinicius.gomes@intel.com>","X-Mailer":"git-send-email 2.14.1","In-Reply-To":"<20170901012625.14838-1-vinicius.gomes@intel.com>","References":"<20170901012625.14838-1-vinicius.gomes@intel.com>","X-Mailman-Approved-At":"Fri, 01 Sep 2017 21:24:43 +0000","Cc":"andre.guedes@intel.com, jiri@resnulli.us, ivan.briano@intel.com,\n\tVinicius Costa Gomes <vinicius.gomes@intel.com>,\n\trichardcochran@gmail.com, \n\tjhs@mojatatu.com, intel-wired-lan@lists.osuosl.org,\n\tboon.leong.ong@intel.com, \n\txiyou.wangcong@gmail.com, jesus.sanchez-palencia@intel.com","Subject":"[Intel-wired-lan] [RFC net-next 1/5] net/sched: Introduce the user\n\tAPI for the CBS shaper","X-BeenThere":"intel-wired-lan@osuosl.org","X-Mailman-Version":"2.1.18-1","Precedence":"list","List-Id":"Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>","List-Unsubscribe":"<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>","List-Archive":"<http://lists.osuosl.org/pipermail/intel-wired-lan/>","List-Post":"<mailto:intel-wired-lan@osuosl.org>","List-Help":"<mailto:intel-wired-lan-request@osuosl.org?subject=help>","List-Subscribe":"<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"intel-wired-lan-bounces@osuosl.org","Sender":"\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"},"content":"Export the API necessary for configuring the CBS shaper (implemented\nin the next patch) via the tc tool.\n\nSigned-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>\n---\n include/uapi/linux/pkt_sched.h | 29 +++++++++++++++++++++++++++++\n 1 file changed, 29 insertions(+)","diff":"diff --git a/include/uapi/linux/pkt_sched.h b/include/uapi/linux/pkt_sched.h\nindex 099bf5528fed..aa4a3e5421be 100644\n--- a/include/uapi/linux/pkt_sched.h\n+++ b/include/uapi/linux/pkt_sched.h\n@@ -871,4 +871,33 @@ struct tc_pie_xstats {\n \t__u32 maxq;             /* maximum queue size */\n \t__u32 ecn_mark;         /* packets marked with ecn*/\n };\n+\n+/* CBS */\n+/* FIXME: this is only for usage with ndo_setup_tc(), this should be\n+ * in another header someplace else. Is pkt_cls.h the right place?\n+ */\n+struct tc_cbs_qopt_offload {\n+\tu8\t\tenable;\n+\ts32\t\tqueue;\n+\ts32\t\thicredit;\n+\ts32\t\tlocredit;\n+\ts32\t\tidleslope;\n+\ts32\t\tsendslope;\n+};\n+\n+struct tc_cbs_qopt {\n+\t__s32\t\thicredit;\n+\t__s32\t\tlocredit;\n+\t__s32\t\tidleslope;\n+\t__s32\t\tsendslope;\n+};\n+\n+enum {\n+\tTCA_CBS_UNSPEC,\n+\tTCA_CBS_PARMS,\n+\t__TCA_CBS_MAX,\n+};\n+\n+#define TCA_CBS_MAX (__TCA_CBS_MAX - 1)\n+\n #endif\n","prefixes":["RFC","net-next","1/5"]}