From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0073.outbound.protection.outlook.com [104.47.36.73]) by dpdk.org (Postfix) with ESMTP id 4A0CF1B80D for ; Tue, 17 Oct 2017 14:39:16 +0200 (CEST) Received: from BN6PR03CA0094.namprd03.prod.outlook.com (10.164.122.160) by MWHPR03MB2702.namprd03.prod.outlook.com (10.168.207.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Tue, 17 Oct 2017 12:39:13 +0000 Received: from BN1BFFO11FD029.protection.gbl (2a01:111:f400:7c10::1:161) by BN6PR03CA0094.outlook.office365.com (2603:10b6:405:6f::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.56.11 via Frontend Transport; Tue, 17 Oct 2017 12:39:12 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD029.mail.protection.outlook.com (10.58.144.92) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.77.10 via Frontend Transport; Tue, 17 Oct 2017 12:39:12 +0000 Received: from [10.214.249.171] ([10.214.249.171]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v9HCd7rw002786; Tue, 17 Oct 2017 05:39:08 -0700 To: Cristian Dumitrescu , 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> CC: , , , , , From: Hemant Agrawal Message-ID: Date: Tue, 17 Oct 2017 18:09:07 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1507897338-236951-4-git-send-email-cristian.dumitrescu@intel.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131527175530180550; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(7966004)(39860400002)(39380400002)(346002)(376002)(2980300002)(1109001)(1110001)(339900001)(3190300001)(189002)(24454002)(377454003)(199003)(65956001)(69596002)(68736007)(65806001)(54906003)(104016004)(498600001)(50466002)(64126003)(110136005)(316002)(5660300001)(58126008)(31686004)(86362001)(23676002)(83506001)(31696002)(77096006)(85426001)(4326008)(8676002)(81166006)(36756003)(2950100002)(81156014)(97736004)(230700001)(47776003)(106466001)(229853002)(105606002)(189998001)(305945005)(53936002)(65826007)(6246003)(33646002)(2906002)(8936002)(76176999)(53546010)(54356999)(356003)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2702; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD029; 1:SxgydPLFQci/Eee7NF65SUwP9+URGJsemBcvzizbCYOAILn7eRa4z/O99IWZyfgQoAJhieYTXdjEP2CyjiWuYf+EAWPmPSuNkOnjqnhuBuvd/mFiISzX/m1DeHLG31P+ X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 725a7866-1bcd-42f1-ad08-08d5155c123b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017052603199)(201703131430075)(201703131517081); SRVR:MWHPR03MB2702; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2702; 3:oK1bES/Y9f6/gWgtLfrHjVogpjt6A+T0uXDlWnX6kVShiiD5RoCh2sUPHa8jB/TFLYJDsjl8vdsIUceVC/l6aoA1KjSKuVb5H4nj5Lwchxl7fMjUg86vFOMliQMnHjJNsWPxELElpE44VtXWTrpr6mFHCAZ6Z0pQwKdyNc3V0E4336aiuhAkL8QHwAwnopG2XMMP/hS0MM9wuOGYCLkS1XM/+j1Hznc0Ixt038xEKH3SkEXbMNSKAroJkZG7StmbwLXoHoARQwl4pXpAtO/8fpXjBfIvUrzl1HXhflXd6iCkgQTrKAyfzvMr+Leubu6sxFo5g3BIW+YOgd8qNsQtQqyTpwieR3LRMbcFNXw1tt4=; 25:df5HshHu5iO1LpEabH8rTwZ68XuhtCgMUBJbpUoi8JXJ/6iBkZgWT9Xe9H9Q3RfTAhCD5bjH241iS1ggjYALpRmiDlL8EfAjT9JOx3xrn9lcRUhJhkpjcxtVYJPqwldV2NvyQw6buWG2C1RaFNjr7lKMdSfw/mEceBBrcZyQlF6U3Pftih7bvqKhwLbkZBc0wD4RvOXs+pHnurlXXg2RZhZK93DO00XU38Tey4yeEYvWMboHc3x7MmiD9raR/D+vGpZJfkXpVRAJn3Vuhhz5Bq7yqZAUvNOyzapL3cn++PdFmUyW1TQiFc7WS8l+iJzbmc0bLdLRHqkmJhRMXs3oKA== X-MS-TrafficTypeDiagnostic: MWHPR03MB2702: X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2702; 31:vM4zSwsX57dupMyYLuMHk0ztqbGXFaIVwWGLbYgE8/uaeOtwSt+AdlMe7CgsU9/0W1Hue62Sy4RDavMZiUiC5NCcHhWQRk9cg0XwYhRtMv20PVSOUYJC/GKItWu3eJA76oHK/z9jpTw4DvJrb79mid5LLn7zNmCPNuqUfUgmThYxwkUs6Bf3pXHRB0kUDVbYv2CK2q5LUzGKxjVRVR2sERlEc/zLwbwYPKPwi2mUMVk=; 4:HUWk0elR264TcD7GRCmzwvHafz5dtBCipXTPvgM8MbkigEwztQh1i0zJdJRyaXQ3PgJ+x+JxySzvubQO6mZYSQd7OGWqi2JU0ZmxMBrTUuObV5UkmWrzuTSnLbg0QrZaaGZZFUz6uMwXw+vJZtDg3fAlBin78unDGqbcrgAzoyY8PDZxrtbfHqbJ5y7xnLlyhBgonkKK5Fgf82dshfC8vM0kswSEuvBb4D4n9aGM+aIuEOgxA3ZqfmtjGA3ECtcDn8kxGiVUbqOtW48jPvjGLUfr/0n1K/P0qme/tYG2Rs79V1ZPQVBGHqn2TyYG05RljuofRTjW9EE8luTg5DDOYA== 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)(6095135)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(20161123563025)(20161123561025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123559100)(20161123556025)(20161123565025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR03MB2702; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR03MB2702; X-Forefront-PRVS: 04631F8F77 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjAzTUIyNzAyOzIzOlRKekN3SC9QUDVBdnBXNG5EbU9jTDhtUE82?= =?utf-8?B?azlGTld2Vk96T1V2TUpiUXI3SG8rSWJSZStkSXQvYzQ1SWU0RC9Zb0VsbWlJ?= =?utf-8?B?TXRza3ZEZEhpWVRLejEvUUJRV3VBbWc5MFZFMDdCYVozQVVocWFZTmVRbFU3?= =?utf-8?B?Um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R03MB2702; 6:Urzh23MIeTYaoOLQ0/8q9I5ipsIjwYFGXcc16OrNJ5IsJkdq7CEGFexGPS3Z4/piyLTjw9EJFBaNLWOuMC4PbA8lXcJq70I2z70fqw4kqSentulHB66GNc6WF191Ra9g7X0bZUUJITwit8fUfj9blafBUn//pEG3/JKx0E2QE8PNC4ADg2v60EQD8Hp+UsV69x9aM1WpSFTvnHy1D3p+gIu6CnYd2bLtQUTEdzjnrZFAP7nvq5Gr+39o422wjzcDeZK/pE4utTAwrqy8T7T8iH6raIqUDGAEsLB8OyeGu7v8mJpGm1Kp3r9gzgRlRKaihZj88qabTbNotPTFTvjjCg==; 5:VHF+O//LC1ypxYmfHF08xhnmwr7hPLO05xmP5yfdLr506E7lSJ5HbAq6HDyNy0b9Q2JrTrM0RIqaGSeB3JwYzLnmV48zEMaW7X00+GUizJqnKjzVlh40kFwuAG40mM671G8RDhM1d/u+6QjfaXVlOA==; 24:WIxIC9nMpe1DZcdxm3Br7gAgI47ewK2NL2N7eOOdm5cOV/vP2F3ijkYNPN5Xvg6k1PWEi4TLQ2qU1afQzgVxKBoH+hFjc57ZgNR4T4URyr8=; 7:wseD9eh8TQLWtnJZOjoaqNXlOmEI4ezLnCczsgNQa9UZz4WGvgLzRBGR+p14FTBSFk715yCD5upM46HE2ATz+/+bqaUmOSTa1KjwxMnDOXshd4kvvXTR6HiAxWqpfeXXCvHqL0vGI3MyTKFgQk66MysSpihFMK4QEF0UiY68cuKPPAD4L+ZIIyRjkzr4O0RZJfSfLUNlQMSaiUpKSfCi29dqCMIXzhAKkekz3bQeIf8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2017 12:39:12.4876 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2702 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: Tue, 17 Oct 2017 12:39:16 -0000 On 10/13/2017 5:52 PM, Cristian Dumitrescu wrote: > 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: Hemant Agrawal