From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0056.outbound.protection.outlook.com [104.47.37.56]) by dpdk.org (Postfix) with ESMTP id 3622B1B2D2 for ; Tue, 10 Oct 2017 18:27:19 +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=MFksAgMZyrwIFZ32kXy8KzHFphMWpku2mQRZmyzkm+M=; b=BmF5TwtcZ7MjT9qXlFv0SIesvj6O40Z1PWkAUptDxXGQjbEonNvJV204NN1QHEkZ6KOUbPNFmSFpKKV2lc+WlTqHvGDsubY9LLEkRh+lgYw5N+d5KlQqT9Xy/RdeeDAUwgTUDGZrdhiHbz+XNGeGKIAUntoEI04S1RJ+AeY0KXQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (171.61.81.39) by BN3PR07MB2515.namprd07.prod.outlook.com (10.167.4.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Tue, 10 Oct 2017 16:27:15 +0000 Date: Tue, 10 Oct 2017 21:56:56 +0530 From: Jerin Jacob To: Nikhil Rao Cc: bruce.richardson@intel.com, dev@dpdk.org Message-ID: <20171010162655.GA8792@jerin> References: <1507674097-19597-1-git-send-email-nikhil.rao@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1507674097-19597-1-git-send-email-nikhil.rao@intel.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [171.61.81.39] X-ClientProxiedBy: MAXPR0101CA0040.INDPRD01.PROD.OUTLOOK.COM (10.174.62.154) To BN3PR07MB2515.namprd07.prod.outlook.com (10.167.4.140) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 69b27cc9-47b5-4ccd-f89a-08d50ffbc5c0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:BN3PR07MB2515; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2515; 3:DW2mc1NCgslRlLpVq5RyzMHv/mZ2q5Hd9dVi5rNJb0vd3kei1e6DgVI7lfgHDn2PSLYlr5YZX3dtYhyKd5KhRUEbrgf4KUcJ78cPBf7dxoeGIH669vbX/1o6jpnOjIc/vKla8qyGb5qDCX1tuKoU+yRppTcMLzlrAfw7Q92VIwmYum+4JaYBjb/gMFlinlLQLzW1/5v2gkKDdT7nY2alu3aVs0ZyTPIfDP0cnr31a4XIvdpTLZBBeFerQXIgsqhm; 25:d+xNJYLW2iehXVZb0kYygSKtWGTGkNvkCgBXQpjBhRwIp9lPhN5Auaya6VOU9y2OX/rqAgVzQAUxGdtfvMfwj0p1oXG5J9RwoyvC8EifFtNsRv+Z3zOI3PD+b5J5INsghRkjTpn13zwfa/Da1WR7ZZtMZoEHIGR4M8OGiZE3QzRTPEHatXm9oMNFIS/T0sAq4B/fbNez4G0lru5JNRqRT70P7kOJE2G70ZK5QbLi/D/dBm8U/DYUf1CDC3CzOANoMD5H7Eb3IhCsOJ7V/darX8buiarBduYo3DMG7xHzzPLkW/wvlZpeD2PQuvbMEkyEyHVo81h3xrH9juSsfWYv0g==; 31:KZLuFDN+jgV/I30plf/SmXc2FUvM9EYfb0E/mLIx+ETmLp8OPL/30PbguW75nAbgYSldYs+7Jp6nC2IUqrutIHq9fiBOfa6lpAwuNR8CYgNndsAlw5JRsloes45Q7whxewNg+qTbASXhO9j41C4E/aS98HQibanZ6pTj6naJRRjUWGqoi64AESCoelf8GZJ6POg7AFBPEHuDooAlG3ccHOP4jrq062W421Rws7h/VqQ= X-MS-TrafficTypeDiagnostic: BN3PR07MB2515: X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2515; 20:R74fCcLmThCkg8UA5lr2UrdHvHp3znUMmGJf8B9T61dxodkvgKvnRIYo1pRqyAjEzOwwsxKCc8fw+Fs3g2AQpHrJBedBtJC+hFhg6MDS5E2dfdVI6gv/6nJ288B7DF0fQtsT0RD9FtsqUFG4LUv2zUZxNqkoC+7HYqARcmjoFumPJ0oXSrohewWNHnRL0K4jNNrrI2LoPkyzwtvEj0wwtEDiLCGHj9e46nmwbNXgZPlM2SjRGDqHTbHKpb4aewftIZ/tAtEwxrjXmTvNleimPBjp2ozL85poKvzQFPcE0Bjy0/SAUiP9fuY1rMZ0mOKh1g2qftgwaMqHnZPeYgLpNmAHNtKiDiX9oWCeLMTnnMX4ZyL/KsreK4YsZdECdNb8A8it3oCh2FUGBf6cQQBbYrXfzg3ZSnk0sMewyMvK9IvCqq+ZPlDcnmGMvDl52yea0hocBAGpHabkgwL6n91TzppxnylBs/7VzUynzmBK4zDCAYrCGRxAdpECzO2DN1zy0ddbUQigLqw4aHuP67e+B068AP77rBx9KVbSsXbrlZmVAFmJG/sYXAqkDi9UaLtMGO49IU7CSjsxR4Cx7votMBR5KOkMGpjH5VOAa//Qkq0= X-Exchange-Antispam-Report-Test: UriScan:(278428928389397)(788757137089)(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)(10201501046)(100000703101)(100105400095)(93006095)(3002001)(6041248)(20161123562025)(20161123564025)(20161123560025)(20161123558100)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR07MB2515; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR07MB2515; X-Microsoft-Exchange-Diagnostics: 1; BN3PR07MB2515; 4:LxZujdCbnLvXtF7IJbX/O5f4S2wXAR0xeoaz+/zSTxmO5hY4NKvKsI+S6zoz4JVNURvbhnToQd1a9BtcF7qMAyMvZRzKpCnaI2+Iomz72SLNnWrHB2BTtEkiFMGyae8TofEh6f6B7UZjH80E/p2OGK7KpvGULX92pZMjrOfaoE4Ji8AAZ0Jmp5YzMWKbgGGp+QMBaGX89vEFWURopIBNbYfIbC7jdbQ+Wu3AUH9MeNxUPBUlZwGGjiULo+SL0Bt3uVYNjqYIO7BtgZFJx2crGpo0ksIaaVGB9HuFH0VJ94xa2XN2oeoQNdgFw1zCzHBQozkGXgoFYFPw5BZUFHQRLno1zGVvJiQ1ga/MCHleLms= X-Forefront-PRVS: 04569283F9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(199003)(13464003)(189002)(105586002)(8676002)(83506001)(229853002)(4326008)(97736004)(106356001)(305945005)(1076002)(68736007)(3846002)(7736002)(6916009)(42882006)(2950100002)(8936002)(66066001)(23726003)(6116002)(5660300001)(81166006)(33656002)(189998001)(81156014)(2906002)(47776003)(6306002)(9686003)(50986999)(76176999)(54356999)(72206003)(6246003)(55016002)(53936002)(101416001)(6666003)(53376002)(25786009)(316002)(33716001)(58126008)(478600001)(16586007)(6496005)(50466002)(16526018)(966005)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR07MB2515; 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; BN3PR07MB2515; 23:PxJLpD0onUowH3mR4jLJYtkALJFuwcp7yjs0skALB?= =?us-ascii?Q?oym9xjNfVxYpCyuYyMkjuV6jUJ9RKJXZ4oAJXkwyBnltpVPaNmGkmE4jxbgF?= =?us-ascii?Q?0L9Fawovth6aHpydoBe2UdH4kceC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kwi3jjxW9OB6Qi0jaYBvFAT/gL5rQh13nfT+KtC18Wj/TI8LdvSvL0Z0JYcZYaNEnMKsAE4F7FhE95IFI/TuE8/YXKVd2SmvPVm2l8pCFGIcjbdBjDQ5x88X5kfs6oat2nqoaiEc8OIs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2017 16:27:15.6290 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR07MB2515 Subject: Re: [dpdk-dev] [PATCH v6 0/7] eventdev: cover letter: eth Rx adapter 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, 10 Oct 2017 16:27:19 -0000 -----Original Message----- > Date: Wed, 11 Oct 2017 03:51:30 +0530 > From: Nikhil Rao > To: jerin.jacob@caviumnetworks.com, bruce.richardson@intel.com > CC: dev@dpdk.org > Subject: [PATCH v6 0/7] eventdev: cover letter: eth Rx adapter > X-Mailer: git-send-email 2.7.4 > > Eventdev-based networking applications require a component to dequeue > packets from NIC Rx queues and inject them into eventdev queues[1]. While > some platforms (e.g. Cavium Octeontx) do this operation in hardware, other > platforms use software. > > This patchset introduces an ethernet Rx event adapter that dequeues packets > from ethernet devices and enqueues them to event devices. This patch is based on > a previous RFC[2] and supercedes [3], the main difference being that > this version implements a common abstraction for HW and SW based packet transfers. > > The adapter is designed to work with the EAL service core[4] for SW based > packet transfers. An eventdev PMD callback is used to determine that SW > based packet transfer service is required. The application can discover > and configure the service with a core mask using rte_service APIs. > > The adapter can service multiple ethernet devices and queues. For SW based > packet transfers each queue is configured with a servicing weight to > control the relative frequency with which the adapter polls the queue, > and the event fields to use when constructing packet events. The adapter > has two modes for programming an event's flow ID: use a static per-queue > user-specified value or use the RSS hash. > > A detailed description of the adapter is contained in the header's > comments. > > [1] http://dpdk.org/ml/archives/dev/2017-May/065341.html > [2] http://dpdk.org/ml/archives/dev/2017-May/065539.html > [3] http://dpdk.org/ml/archives/dev/2017-July/070452.html > [4] http://dpdk.org/ml/archives/dev/2017-July/069782.html > > v3: > - This patch extends the V2 implementation with some changes to > provide a common API across HW & SW packet transfer mechanisms from > the eth devices to the event devices. > - Introduces a caps API that is used by the apps and the Rx > adapter to configure the packet transfer path. > - Adds an API to retrieve the service ID of the service function. > (if one is used by the adapter) > > v4: > - Unit test fixes (Santosh Shukla) > - Pass ethernet device pointer to eventdev callback functions > instead of ethernet port ID. (Nipun Gupta) > - Check for existence of stats callback before invocation (Nipun Gupta) > - Various code cleanups (Harry Van Haaren) > > v5: > - Add RTE_EVENT_TYPE_ETH_RX_ADAPTER (Jerin) > - Add header to documentation build (Jerin) > - Split patch series into smaller patches (Jerin) > - Replace RTE_EVENT_ETH_RX_ADAPTER_CAP_FLOW_ID with > RTE_EVENT_ETH_RX_ADAPTER_CAP_OVERRIDE_FLOW_ID (Jerin) > - If eth_rx_adapter_caps_get PMD callback isn't implemented > return zeored caps (Jerin) > - Replace RTE_EVENT_ETH_RX_ADAPTER_CAP_SINGLE_EVENTQ with > RTE_EVENT_ETH_RX_ADAPTER_CAP_MULTI_EVENTQ (Jerin) > - Replace RTE_MAX_EVENT_ETH_RX_ADAPTER_INSTANCE with > RTE_EVENT_ETH_RX_ADAPTER_MAX_INSTANCE (Jerin) > - Move rss_key_be to per adapter memory > - Various other fixes (Jerin) > - Test fixes for mempool (Santosh) > - Change order for event v/s eth port init in test app (Pavan) > > v6: > - Fixed out of scope variable in rte_event_eth_rx_adapter.c (Pavan) > - Add #define for RSS_KEY_SIZE in rte_event_eth_rx_adapter.c (Pavan) > - Doxygen and git log fixes (Jerin) > For the series: Acked-by: Jerin Jacob