From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0061.outbound.protection.outlook.com [104.47.40.61]) by dpdk.org (Postfix) with ESMTP id 450381B646 for ; Wed, 18 Oct 2017 04:58:39 +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=c5F0ELATdisFzE2BzXv34U01eX7XGKGp+bKTEKrCYPI=; b=kBM6G1dc9hbIo5jtf/mWROwFqBxuYaCrDuFgPPJmMHnOUU9bLZF8YqaWMl8J1ItVkEVWcUSeE3pD2EG1eWPwJuRgndd4ASg9xPR0X8A3UC2Unf2AJd1oj/wljH7xiaqusX7VkjlS7zteh6ilcYAR0XAbIE/EzGrAZSyHtkJ/FQA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (171.76.118.225) by CY1PR07MB2521.namprd07.prod.outlook.com (10.167.16.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Wed, 18 Oct 2017 02:58:34 +0000 Date: Wed, 18 Oct 2017 08:28:13 +0530 From: Jerin Jacob To: Cristian Dumitrescu Cc: dev@dpdk.org, thomas@monjalon.net, adrien.mazarguil@6wind.com, jingjing.wu@intel.com, john.mcnamara@intel.com, hemant.agrawal@nxp.com, jasvinder.singh@intel.com Message-ID: <20171018025812.GB2127@jerin> References: <1507301136-131382-2-git-send-email-cristian.dumitrescu@intel.com> <1507897338-236951-1-git-send-email-cristian.dumitrescu@intel.com> <1507897338-236951-4-git-send-email-cristian.dumitrescu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1507897338-236951-4-git-send-email-cristian.dumitrescu@intel.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [171.76.118.225] X-ClientProxiedBy: BM1PR01CA0103.INDPRD01.PROD.OUTLOOK.COM (10.174.208.19) To CY1PR07MB2521.namprd07.prod.outlook.com (10.167.16.12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 254feab8-35a0-44af-4f0b-08d515d4213c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY1PR07MB2521; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2521; 3:MogEZ/YQuascVfmBnE4JJ2iAHtL7ylaR7D1C23YGUYf6a6BmzCqsczFhV6lLOw/iDhAIxt/idQpcMPSvwlc+wNV1kT9huK3i9dMMtwAD6SverTbVyLeYblqRIklVZ5jViGBO4M07A9pWBlxvs3qdLyaUFgmQw/y+bTkykhzMxvMqnXBj2k08ynWqzuwIKda/XAG+kBapG3U+1cEoFI7whpRYZsfBaqWa0KKPoGqD/6pklsmCGq9gqsncGN4yaFGG; 25:Rh/o8OF65UOjGkRCClA4ftpPj6m6RWY4ykytEzeDFmzwf2SO3dUxUKiufxfniQJUQEdw6TYBlA4oGJZTOy4VnhutolrSSffH9jvngDETBv0E0W4S4+zTrZbv9O98MkMdzkDMdA45nZWDRc5r1/i+Ls8M3AEOJNGU9tajrD0zxgxe5PEG3LPNNLJpxp6XsyHWG24dznx8FkIjFvSHq1JFCfEoRp/pZCU3SNR/UD61Kg+N6mzI3Y65gFE705ssUvkaFV1lqXjv6E6vL0ZthqAHiTDoVNHK3h8ti9genvBt+NgCqXRXW7ByvyUFJvH93zpWEvz6O/ny3i/kMWG+o2+HNQ==; 31:ZNFOjP0QJoEQu/zgzMxMIClcxTWA7yipAbUgM4IszafpsqJ0642pP23Op1GSqKm6v+BJ9i/ltVeYtBeGEGgsoqrkBX0ITEfi7l0B3uvuT/qdI+BGZ8ODGMsPCSsGwH1hKtIfyPDWF/EqWgbpibBPKL26cBAeuBezBrpLxF43DScWIkGzHcBVPg+JsoTMz96uj36wLsWxqJWsstY54U6ftfws3kObxJH2quDMShaqmHU= X-MS-TrafficTypeDiagnostic: CY1PR07MB2521: X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2521; 20:/LLXvN5iHbu6wSdqOBjahJoecSC8ZlPkLMHcfNTgL8x8bRxA64M9O5GE009UUlHJjpSEF4QUAgQUajfKSPQFOWdIUf7VF7ZiCJtHKHQKf6n2zo6SaZoX3DhCPKhKMEwtNy+a1RzW+2Hn2VeP4IiYDhiqogkScrUyC/DWku8WxhWCMzeOCAS/gK2KqgklOjJ3OiIN4RHDmCWD7RfhfZjbpNeq+uGZ+wxogO+wwe5eHF68xk9jjS7Smw4vRh3EtNEtu6wRmhwWOlME7nsxo+lDJjZ71Gp6BytkJWu0qyz93lBTC5plQQ7i8j3JxfgoYnuN57gResNQkFqR1Z5t+qCK9Ou9CQX6zNu8jrL/dEcUABo0eoEwT5XkUPUU42xxuY0L6aF433GxVgNpN04iU5nBwz/dwStHBLI4hQDxttCuIRUpVV868BcL/0EtmUGT4zWVnSHi52OGVJ4ex5WxWz7/igVqK5kQ6zXM9vkn63TrPWcXRUtK/oTZ/11fdmxDDEpxaIM5IRmL8eyq9QPrz66D2V46C4/bQhk83ABC22+uPH5hBqzIuM2GcZbNlwu8ceSvNdTZDiHJdaq6pB9+6v6Z+dwIYq6Hpj88Ux1v/ApN76o= 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)(5005006)(8121501046)(10201501046)(3002001)(93006095)(100000703101)(100105400095)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR07MB2521; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR07MB2521; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2521; 4:dgChxDSGetGdGPzM7iNEq3/jSVmQmvCEdLu18mcAaH/cGwbimtHm8JG8kyn4I/ryORPiAUI/ZwZpKVfbybSPBr0Yg/Y1GpjtfCf/Z+/0McLrWicfNILy8mthMzK1OhvD4WifigOwDCXw9v8r/rebDTw98B0Z8lKahUuS7jwy+X83Nudi/7yKlh6SYDqzSszZbgb1TCjkVD/ftbIYMusyQW9kJKjEPvss+HftQ1PnTSOAfOQSXOFqyzW2T7olXbyUzfp3lBP8nwHGc6vSF+OhOBFs6hIDRLOXTN/hT3LbBUyDsl0AhdnpvpMqO2Y8VRvP2q+Y6K2wYYZ7dAQ/irQFRw== X-Forefront-PRVS: 0464DBBBC4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(199003)(13464003)(189002)(106356001)(189998001)(8676002)(105586002)(4326008)(8936002)(76176999)(53936002)(50986999)(8656005)(8656005)(229853002)(6496005)(54356999)(97736004)(47776003)(81156014)(6246003)(68736007)(6666003)(25786009)(66066001)(2906002)(101416001)(33716001)(72206003)(81166006)(23726003)(83506001)(9686003)(6916009)(42882006)(2950100002)(58126008)(16586007)(55016002)(1076002)(7736002)(5660300001)(50466002)(16526018)(305945005)(6116002)(33656002)(478600001)(316002)(3846002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2521; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; CY1PR07MB2521; 23:1BXRyma81fmdD/IVX4DK87QZ1+YQi59R00JmZEhP+?= =?us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Y=; 7:ZL43e6edr9eBP3k43+20ZLCQLOcwHvlGMAuXnuPxB0x8iH4Amssz8Vaini6KRVvxhf4cMpCKxj2VUKPy3IhjsU2slUPfW8KfVDOWPwP2zE6UlwoZrLJKEIMniwrEz31GY/99vrNRkPl8qWuGXzs6uKxWejEZXTu8LB0tv3XM+xbHrxIv0z80jwJfkykTF+DkZe9+UxYc3qBBcy6Tky4kIRngpd8AxpssTA1M06oxWZ4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2017 02:58:34.4049 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2521 Subject: Re: [dpdk-dev] [PATCH V4 3/5] ethdev: add new api for traffic metering and policing 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, 18 Oct 2017 02:58:39 -0000 -----Original Message----- > Date: Fri, 13 Oct 2017 13:22:16 +0100 > From: Cristian Dumitrescu > To: dev@dpdk.org > CC: thomas@monjalon.net, adrien.mazarguil@6wind.com, jingjing.wu@intel.com, > john.mcnamara@intel.com, hemant.agrawal@nxp.com, > jerin.jacob@caviumnetworks.com, jasvinder.singh@intel.com > Subject: [PATCH V4 3/5] ethdev: add new api for traffic metering and > policing > X-Mailer: git-send-email 2.7.4 > > This patch introduces new ethdev generic API for Traffic Metering and > Policing (MTR), which is yet another standard RX offload for Ethernet > devices. > > Similar to rte_flow and rte_tm APIs, the configuration of MTR objects is > done in their own namespace (rte_mtr) within the librte_ether library. > > Main features: > 1. Traffic metering: determine the color for the current packet (green, > yellow, red) based on history maintained by the MTR object. Supported > algorithms: srTCM (RFC 2697), trTCM (RFC 2698 and RFC 4115). > 2. Policing (per meter output color actions): re-color the packet (keep > or change the meter output color) or drop the packet. > 3. Statistics > 4. Capability API > > Signed-off-by: Cristian Dumitrescu Acked-by: Jerin Jacob