{"id":818855,"url":"http://patchwork.ozlabs.org/api/patches/818855/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/patch/20170926233916.11774-2-vinicius.gomes@intel.com/","project":{"id":7,"url":"http://patchwork.ozlabs.org/api/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,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170926233916.11774-2-vinicius.gomes@intel.com>","list_archive_url":null,"date":"2017-09-26T23:39:14","name":"[next-queue,1/3] net/sched: Introduce the user API for the CBS shaper","commit_ref":null,"pull_url":null,"state":"changes-requested","archived":true,"hash":"c4ec213fafc9e7e8dfd6874c5be4c7badd1fbd59","submitter":{"id":72272,"url":"http://patchwork.ozlabs.org/api/people/72272/?format=json","name":"Vinicius Costa Gomes","email":"vinicius.gomes@intel.com"},"delegate":{"id":34,"url":"http://patchwork.ozlabs.org/api/users/34/?format=json","username":"davem","first_name":"David","last_name":"Miller","email":"davem@davemloft.net"},"mbox":"http://patchwork.ozlabs.org/project/netdev/patch/20170926233916.11774-2-vinicius.gomes@intel.com/mbox/","series":[{"id":5244,"url":"http://patchwork.ozlabs.org/api/series/5244/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/list/?series=5244","date":"2017-09-26T23:39:14","name":"TSN: Add qdisc based config interface for CBS","version":1,"mbox":"http://patchwork.ozlabs.org/series/5244/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/818855/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/818855/checks/","tags":{},"related":[],"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 3y1y966Pxgz9sP1\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 27 Sep 2017 09:39:38 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1031472AbdIZXjg (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 26 Sep 2017 19:39:36 -0400","from mga01.intel.com ([192.55.52.88]:16227 \"EHLO mga01.intel.com\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1031350AbdIZXjf (ORCPT <rfc822;netdev@vger.kernel.org>);\n\tTue, 26 Sep 2017 19:39:35 -0400","from orsmga001.jf.intel.com ([10.7.209.18])\n\tby fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t26 Sep 2017 16:39:33 -0700","from ellie.jf.intel.com (HELO localhost.localdomain)\n\t([10.24.13.43])\n\tby orsmga001.jf.intel.com with ESMTP; 26 Sep 2017 16:39:33 -0700"],"X-ExtLoop1":"1","X-IronPort-AV":"E=Sophos;i=\"5.42,442,1500966000\"; d=\"scan'208\";a=\"1176126579\"","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,\n\txiyou.wangcong@gmail.com, jiri@resnulli.us, andre.guedes@intel.com,\n\tivan.briano@intel.com, jesus.sanchez-palencia@intel.com,\n\tboon.leong.ong@intel.com, richardcochran@gmail.com, henrik@austad.us","Subject":"[next-queue PATCH 1/3] net/sched: Introduce the user API for the\n\tCBS shaper","Date":"Tue, 26 Sep 2017 16:39:14 -0700","Message-Id":"<20170926233916.11774-2-vinicius.gomes@intel.com>","X-Mailer":"git-send-email 2.14.2","In-Reply-To":"<20170926233916.11774-1-vinicius.gomes@intel.com>","References":"<20170926233916.11774-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 | 17 +++++++++++++++++\n 1 file changed, 17 insertions(+)","diff":"diff --git a/include/uapi/linux/pkt_sched.h b/include/uapi/linux/pkt_sched.h\nindex 099bf5528fed..27c849c053cf 100644\n--- a/include/uapi/linux/pkt_sched.h\n+++ b/include/uapi/linux/pkt_sched.h\n@@ -871,4 +871,21 @@ 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+struct tc_cbs_qopt {\n+\t__s32 hicredit;\n+\t__s32 locredit;\n+\t__s32 idleslope;\n+\t__s32 sendslope;\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":["next-queue","1/3"]}