From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0040.outbound.protection.outlook.com [104.47.41.40]) by dpdk.org (Postfix) with ESMTP id 0446B1396 for ; Wed, 13 Sep 2017 07:50:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=adbIHG2YDwURsI9Vd4MSYfV6vL5NIkNtnd03i7siGQc=; b=fCHCeMDohiKiWXtCK08W45TEUhVbrWYXpxomnX7wLI1rCZhiYNsmiY8RiNUgn5USKuc1up70KHnkESxiFpET1xCszlx5UzAvlkN77yjLIAr++D0qQjD/JdQUCtArFpplaef6Sios1CeVlyiBPYQxr9wgYtNUMp0c0iNA+iUJsFM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (111.93.218.67) by SN2PR07MB2526.namprd07.prod.outlook.com (10.167.14.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Wed, 13 Sep 2017 05:50:40 +0000 Date: Wed, 13 Sep 2017 11:20:19 +0530 From: Jerin Jacob To: Cristian Dumitrescu Cc: dev@dpdk.org, thomas@monjalon.net, adrien.mazarguil@6wind.com, hemant.agrawal@nxp.com Message-ID: <20170913055018.GA12185@jerin> References: <1496162653-137817-3-git-send-email-cristian.dumitrescu@intel.com> <1503705973-80742-1-git-send-email-cristian.dumitrescu@intel.com> <1503705973-80742-2-git-send-email-cristian.dumitrescu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1503705973-80742-2-git-send-email-cristian.dumitrescu@intel.com> User-Agent: Mutt/1.9.0 (2017-09-02) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0033.INDPRD01.PROD.OUTLOOK.COM (10.174.214.19) To SN2PR07MB2526.namprd07.prod.outlook.com (10.167.14.154) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9cd67b98-c912-45d9-6a02-08d4fa6b5ee7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:SN2PR07MB2526; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 3:23a8I4aF4Lglvnc39oOmr5RmMYwEKMmvoNSfppWDrVWl2tgQE/AMOsEwHr0fwEuw73AjoWH8hxI7sFnL3lPoAyoyY5cLTpCDjlS0hzHfWHYNtF5BZxRQOKaNbcC5YSkria0qs6P9qNKqUcqkDtaJfvaeEEgcKfSuOzq+YYYRl9nLhXhOb1cSogpnrye4iaPD649XF7psONgekfOdBiTz8d0e9SsdXLv9+nY0vVPm/ob50Ydl4QoFPIOOBnZ5p4MV; 25:aPEtgg/Vj++ST1sjWPVawzxlXv2HrAsPCbTX6ZbAY+OA/fDqcjIw3m6dOe000MMh3rbZ1ulYLdf7BBQZ+6dLOJ6QeyZXIqpMtoQuklQpr69BAGCdCWJVMHkHUdiXKbjAqT5lC5RSr0Gsdp6tlKNEFMd44HwVMW0V/mLc13l9Bp44pOMDjtoyCPK49YL1ICdEocT5MSQSgh6ZNdzvDqoD6mfWbeUpsrjFUDwnxoTY7UO2V2KwLPgkM1yqL9fC+hybvgaHJzKQJJKFOvt9+aWiX12IIs8StyiUBQtB7m0yzFN6DLdYbcL8QGYTr9ETVGEKDhjctK/MC4KDk1mHByLmsA==; 31:fgO4qt373d0gOwZHtXHqATaKH+pT1nyJn85fmvOBsh/XSbLNCFP1r278d5JbysPzT2irdy4P+KjVQTg1AgBnvj6fFwVLfRVKgAxRtVkIB5te4dh2BWJo0geEC099cXHq8+1ifAt93MFqkmFv5pXYIpAHVlygnfvKxtAZ9Nq7qRPK6ho5l9CshE792GUZP7rcuHOmDNHXqRdW16U93cpXmwy0C7k0rlrETb0HZPB2koo= X-MS-TrafficTypeDiagnostic: SN2PR07MB2526: X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 20:H+RTXIA+EsqytnpnMUidu+ejMHmeduQ8Cbtr1RYLctQ/lJcggV7DVA6GWn/YOlMx1s1iX090uZk1Cy/+lS0hhMTIk0KtRQSTI28k86aRz4fJFAFe1JIw0YxsDb0MLzh3YeAqHsivKxuM4ggNl7M2j4RCOJOn3ZTiBrJdlFUVWmWgunpoHmfXosPAmkX7boUH/2ArN59UYljBSg+gTssawo2lbtKv4yXNeaeubn/pIaHPpkkl8t9yIMEu3AtneXL48Mut+e3TY2oWoax2A4submT6D3tVtybqxUpV9Rukk+w6mdD3jzu3DORiexA7akiymkBOK38jyC59YQ1Cj96cUUGf7iaCNbxf7xeDyE4n4OAFN6Ngr+KVJPQtfYKKYQeuOu2Et03YwEnvJ+GQxgqNeOJx8XyKFbnAsuzOqEjmv7gEVJDcKx2wWQAtV1k6pnUcTIvWpF8pUud3za83aLAGo2+iP+DEnvbMb5f/nPIs9x8NciHLo6XxRrdPp42joiNqyCviwomFGuvDUZRpKJ+LQZJOI09061Q32ouzizqzlnqjBBxEDLWbserGys33QGjpx+Q2L5mU1d5qKDmvjxEW5zCYWb4/XKXWffMua8BoeU4= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(100000703101)(100105400095)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(20161123564025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN2PR07MB2526; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN2PR07MB2526; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 4:RRoGwhLhvnsgDsXDY+hcdhITxZa8rlO7C1C64ksHcqsEfjxdKdBzi3UvohAlKTFFFVZ+s6xNpxuFrjw9Q18IJjJ1c2RAIgL/IHlxRWpTw0+KGTAwTzyrNT0oq/kjpYjcX8Z8NYlPiTwYhAUZ3iH/Dit8E562tMXKD6OSUv6lNVaty7rVF3VrZJwNn/nS1bkX7lKLGOzTdQeP4klMEdLoXfiUHY7dqUI7EWCZ4oUixQCa88h5Ek3mxX8dbko8Ilkv+ch53aOveJCLztcMaxONi6SEnmtBbCccGBilspt8+Wv5SYRTXKbvCpgT02e/wQnPzemJfz3ABIZaEsbMYRpU6Q== X-Forefront-PRVS: 042957ACD7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(366002)(376002)(13464003)(189002)(199003)(81156014)(81166006)(105586002)(4326008)(55016002)(50466002)(2950100002)(189998001)(6916009)(101416001)(6246003)(25786009)(5009440100003)(2906002)(6306002)(16526017)(316002)(8676002)(478600001)(305945005)(53936002)(42882006)(7736002)(106356001)(110136004)(76176999)(66066001)(68736007)(8656003)(1076002)(6496005)(5660300001)(23726003)(33716001)(9686003)(229853002)(83506001)(6666003)(33656002)(966005)(3846002)(50986999)(47776003)(97736004)(8936002)(6116002)(54356999)(72206003)(4001350100001)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB2526; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2P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zh57AqJot0VnJMUa5f2FdTFI+aG/EVTR0w2vv2RaKw0Zrbw==; 24:BcVHfNr41UiHTfsMR/9kEn7XKWJrbIj9hwehv8P9Hkl2chaOaGlQg3gOF7DpQv3Xcy+KZRLXlZs8cPQ4tsKVOVBZA00DvglcukkUQ2YuLC0=; 7:O77fPaqLdriS4go0shFWKEWwyRu7+yCUd9Oyr77enql0ZWDD7RsUxNzQ2RMRO7pg8+GNi5wT5kPn2cMf3KUjI2IRzsqZZ81bBdqGrViumw+pgwg/9HezIOCSd2jBRUXFwH+w+Bcwgygf14EqEN5s15EXLB9b4ZEkhwR62sdR9HfYbf7q+o+handwD9TOVrRs8bBpiV07lWapXW4YLO+il8WAhrku7jggS7QJHMYbN4U= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2017 05:50:40.7376 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2526 Subject: Re: [dpdk-dev] [PATCH 1/3] ethdev: add new eth_dev_ops function for mtr ops get X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2017 05:50:45 -0000 -----Original Message----- > Date: Sat, 26 Aug 2017 01:06:11 +0100 > From: Cristian Dumitrescu > To: dev@dpdk.org > CC: thomas@monjalon.net, adrien.mazarguil@6wind.com, > jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com > Subject: [PATCH 1/3] ethdev: add new eth_dev_ops function for mtr ops get > X-Mailer: git-send-email 2.7.4 > > Following similar approach to rte_flow and rte_tm for modularity reasons. > > Signed-off-by: Cristian Dumitrescu > --- > Changes in v1 (from RFC [1]): > - Removed ethdev API function to get the MTR ops, as it is not needed > (input from Thomas) > > [1] RFC: http://www.dpdk.org/ml/archives/dev/2017-May/066888.html > > lib/librte_ether/rte_ethdev.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h > index 0adf327..361c9bd 100644 > --- a/lib/librte_ether/rte_ethdev.h > +++ b/lib/librte_ether/rte_ethdev.h > @@ -1421,6 +1421,9 @@ typedef int (*eth_filter_ctrl_t)(struct rte_eth_dev *dev, > typedef int (*eth_tm_ops_get_t)(struct rte_eth_dev *dev, void *ops); > /**< @internal Get Traffic Management (TM) operations on an Ethernet device */ > > +typedef int (*eth_mtr_ops_get_t)(struct rte_eth_dev *dev, void *ops); > +/**< @internal Get Trafffic Metering and Policing (MTR) operations */ > + > typedef int (*eth_get_dcb_info)(struct rte_eth_dev *dev, > struct rte_eth_dcb_info *dcb_info); > /**< @internal Get dcb information on an Ethernet device */ > @@ -1544,6 +1547,9 @@ struct eth_dev_ops { > > eth_tm_ops_get_t tm_ops_get; > /**< Get Traffic Management (TM) operations. */ > + > + eth_mtr_ops_get_t mtr_ops_get; > + /**< Get Traffic Metering and Policing (MTR) operations. */ It will useful to have capability info here. In Cavium hardwares, all input pkts are considered as green when they enqueue to ethdev tx queue. On the congestion control on Rx side, We support tail drop and RED per mempool(not per RX queue)