{"id":808509,"url":"http://patchwork.ozlabs.org/api/1.0/patches/808509/?format=json","project":{"id":7,"url":"http://patchwork.ozlabs.org/api/1.0/projects/7/?format=json","name":"Linux network development","link_name":"netdev","list_id":"netdev.vger.kernel.org","list_email":"netdev@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null},"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":true,"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":{"id":34,"url":"http://patchwork.ozlabs.org/api/1.0/users/34/?format=json","username":"davem","first_name":"David","last_name":"Miller","email":"davem@davemloft.net"},"mbox":"http://patchwork.ozlabs.org/project/netdev/patch/20170901012625.14838-2-vinicius.gomes@intel.com/mbox/","series":[{"id":935,"url":"http://patchwork.ozlabs.org/api/1.0/series/935/?format=json","date":"2017-09-01T01:26:20","name":"TSN: Add qdisc-based config interfaces for traffic shapers","version":1,"mbox":"http://patchwork.ozlabs.org/series/935/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/808509/checks/","tags":{},"headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xk1mt2BcVz9s7M\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri,  1 Sep 2017 11:26:54 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751405AbdIAB0x (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 31 Aug 2017 21:26:53 -0400","from mga02.intel.com ([134.134.136.20]:20239 \"EHLO mga02.intel.com\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1750996AbdIAB03 (ORCPT <rfc822;netdev@vger.kernel.org>);\n\tThu, 31 Aug 2017 21:26:29 -0400","from fmsmga006.fm.intel.com ([10.253.24.20])\n\tby orsmga101.jf.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-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","Cc":"Vinicius Costa Gomes <vinicius.gomes@intel.com>, jhs@mojatatu.com,\n\txiyou.wangcong@gmail.com, jiri@resnulli.us,\n\tintel-wired-lan@lists.osuosl.org, andre.guedes@intel.com,\n\tivan.briano@intel.com, jesus.sanchez-palencia@intel.com,\n\tboon.leong.ong@intel.com, richardcochran@gmail.com","Subject":"[RFC net-next 1/5] net/sched: Introduce the user API for the CBS\n\tshaper","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>","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.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"]}