{"id":808510,"url":"http://patchwork.ozlabs.org/api/patches/808510/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/patch/20170901012646.14939-1-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":"<20170901012646.14939-1-vinicius.gomes@intel.com>","list_archive_url":null,"date":"2017-09-01T01:26:45","name":"[RFC,iproute2,1/2] update headers with CBS API [RFC]","commit_ref":null,"pull_url":null,"state":"rfc","archived":true,"hash":"9316e37ea28d2179540f5e77315d797f48ae687c","submitter":{"id":72272,"url":"http://patchwork.ozlabs.org/api/people/72272/?format=json","name":"Vinicius Costa Gomes","email":"vinicius.gomes@intel.com"},"delegate":{"id":389,"url":"http://patchwork.ozlabs.org/api/users/389/?format=json","username":"shemminger","first_name":"stephen","last_name":"hemminger","email":"shemminger@vyatta.com"},"mbox":"http://patchwork.ozlabs.org/project/netdev/patch/20170901012646.14939-1-vinicius.gomes@intel.com/mbox/","series":[{"id":936,"url":"http://patchwork.ozlabs.org/api/series/936/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/list/?series=936","date":"2017-09-01T01:26:45","name":"[RFC,iproute2,1/2] update headers with CBS API [RFC]","version":1,"mbox":"http://patchwork.ozlabs.org/series/936/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/808510/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/808510/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 3xk1n12q6Gz9s7M\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri,  1 Sep 2017 11:27:01 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751419AbdIAB07 (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tThu, 31 Aug 2017 21:26:59 -0400","from mga07.intel.com ([134.134.136.100]:15457 \"EHLO\n\tmga07.intel.com\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1751237AbdIAB06 (ORCPT <rfc822;netdev@vger.kernel.org>);\n\tThu, 31 Aug 2017 21:26:58 -0400","from fmsmga006.fm.intel.com ([10.253.24.20])\n\tby orsmga105.jf.intel.com with ESMTP; 31 Aug 2017 18:26:57 -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:57 -0700"],"X-ExtLoop1":"1","X-IronPort-AV":"E=Sophos;i=\"5.41,456,1498546800\"; d=\"scan'208\";a=\"146934375\"","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 iproute2 1/2] update headers with CBS API [RFC]","Date":"Thu, 31 Aug 2017 18:26:45 -0700","Message-Id":"<20170901012646.14939-1-vinicius.gomes@intel.com>","X-Mailer":"git-send-email 2.14.1","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"},"content":"Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>\n---\n include/linux/pkt_sched.h | 29 +++++++++++++++++++++++++++++\n 1 file changed, 29 insertions(+)","diff":"diff --git a/include/linux/pkt_sched.h b/include/linux/pkt_sched.h\nindex 099bf552..ba6c9a54 100644\n--- a/include/linux/pkt_sched.h\n+++ b/include/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+\t__u8\t\tenable;\n+\t__s32\t\tqueue;\n+\t__s32\t\thicredit;\n+\t__s32\t\tlocredit;\n+\t__s32\t\tidleslope;\n+\t__s32\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","iproute2","1/2"]}