From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM04-BN3-obe.outbound.protection.outlook.com (mail-eopbgr680089.outbound.protection.outlook.com [40.107.68.89]) by dpdk.org (Postfix) with ESMTP id 39CE932A5 for ; Mon, 2 Jul 2018 09:45:57 +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:X-MS-Exchange-SenderADCheck; bh=1P3Ym39QNyJyE337JsahPz4GRIikPCsw6Lzvk+Qwnfo=; b=JxV/Hq14rpX+ib6NYA0YuT89p14xgAJWcb8dYraE/KDxDz25WPEXTcIp/tDhjvPGXCrzeANeeyAAqk2APkruldj87u5KQRlnLKIwlG4LGkAKgFxGTB//L9aBEgu89qQxCGMORq72nceQQorrp9KTydW2Cc+DioTxea95nVnkFc0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (50.233.148.155) by CY1PR07MB2521.namprd07.prod.outlook.com (2a01:111:e400:c636::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.23; Mon, 2 Jul 2018 07:43:21 +0000 Date: Mon, 2 Jul 2018 13:13:15 +0530 From: Jerin Jacob To: Nikhil Rao Cc: dev@dpdk.org Message-ID: <20180702074312.GA31623@jerin> References: <1530496530-112764-1-git-send-email-nikhil.rao@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1530496530-112764-1-git-send-email-nikhil.rao@intel.com> User-Agent: Mutt/1.10.0 (2018-05-17) X-Originating-IP: [50.233.148.155] X-ClientProxiedBy: BYAPR02CA0025.namprd02.prod.outlook.com (2603:10b6:a02:ee::38) To CY1PR07MB2521.namprd07.prod.outlook.com (2a01:111:e400:c636::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4f1da043-e215-4513-963f-08d5dfef7d17 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:CY1PR07MB2521; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2521; 3:14JZo32Tyi03E4pBuz6Y/3Avu3lOG413jlJd5dYIF7YM02oRlmQwXzDowjQhmUMoFu2vdJGS/mTnt1glqQTnVZWLpVtgT2HwavL0qynRh4swj6x/CR/IN/wfZ2a7kIccN3uds19nmxC1XPtkD8Lz/F7jpk0fBUrWEC1jaB1o3NlOAYwXdNiY6NljJ7LC5ICwUn2aA7j0l0W43dl4bN0svxgEAlA4BGCcGCEgIkJpO2sNsJKvVbQ8u4PBEk94sgpx; 25:rFSz+v49BqTocg7uWLT2FjGsdqgJTvOQZeB3VDx5VbnTh9zXs6VMaFjtU0vDb9RbZe0am9+rxWmrSjruR8mqeewCAfafVoG7WNoJEpobFcQEZqjpYjVJaKVvVGNohoa1zVEn+S0V/j/7hwopEGyl+QYfNA3fQkKPTtmU8Z+UF90hVEsdAt+aRnUBiokkOyG+VxUTuNmZN1eerDPGxVmdFoeqr4Kiu+qX1wYx2NYLAPN6W4YrR0RLHyIs4APVmLojhoc70pMOsNwGWTMAnElsca+7AZcHOFcFiRwexAtgNLTVynkszUA9/1WWGJ88xvomTY/w5H/fuJMaRIj3TemSCA==; 31:LcmI3IdSvw0gPNAk1umdBER89EwiCh+fAwxkfvramRYMUfIfqcDlZwTuUc1vePpFfMftuWaUU5SbsXzSKZXJG8cNAmCeFs1c12XVmfpBC9TzZb7RYDeAnjVcF+pG/65bsSblf0Xqjz4oIJJ5frgnV+krjCioPW2L56WA48kkwR7zn782zcs+KadaC+7wTdOwT9x8JOObm+wksbEs3w4SAnGiZuN2DhJhGRwgEI8b4FM= X-MS-TrafficTypeDiagnostic: CY1PR07MB2521: X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2521; 20:82MAKXCIFyI9zGoA23nlknvtRgbsOI3GmaiwppP+pD6D+GiQFFQt1zLId+l+yuPor71DbZRFwiAOFgw2QG21WqXfdWPFMfIU1Jn/fodryQPSOKHFvDMol4JI6UEagHLrnboNPNROynlF3TX0jCLjEF9sld8oxTrQB7NgHTnL6dy95GLQ4vwQaL+YWWguapb3aM+tVpYTw48KvZ611k6bszf8n6vTWid8cJTEBDH+AOQBx9ei/KTlW0tsaM1VtzFbx/hLTOHMnTOzH/CCDAbT7JA7j1BhN0nmJfmikJ0pQIlwoQ/mNamAqvX9+2q3sHTck1FDm1vEqJvJ9n6F1/wgbirgxA+55LhY9RVrKltK2/3uREKAW13vM7qDsR9eIRsIE1ebJPEz2t2auB8bk1/jDq8rHGAMD7g0gKkCkMyobWGzy5jyJfk07qo1tkc/Rr1v483bsbm1Adl74Pu8X+u88bYH07VTyf7ngaFxkosmtV9g0QcYmsAqiVrnSr089Tb1a3tndWFC9hvrYNFgCiCtJ/dgVx/5lSJ3DMh80gvAPtpzG7alsuIaPfZkrYf9hzer1bs0/kgLRDiCg7GUw97aG8zDPub+8nm9MbSv4hbO4C4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089)(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(10201501046)(3231254)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:CY1PR07MB2521; BCL:0; PCL:0; RULEID:; SRVR:CY1PR07MB2521; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2521; 4:2aJjPNGBe50UcrZ9xLLx44oi1iuZcU4LDEbOXSmmhy7lww8qUr9yq1x9iBnpDd5j+ZTWsihBN1pcYPdiqDvgwymZdnXz+3IDv1tUcpIHeePraWkqnVWGHaOgl1OOaop1ul5DVzKt+IoNStdRs3fX466NHVaIdJE7p0kOtH2N1PdcxbsZxItdSMdfe59NnQAxHy9jD6Mxp0POsqZVdVyh2Wiboyf9t3A7kE8M3g6Fup/CYtxkePh2tcIq0GZ9NmdbVH5ObCGiBM7JU7GgPP100eHR3xv6EwE3EkH56u3aZCrDJ03ziTjgrAssIHbi/dq7eWYsiAi61S8IzFZixG3YYA== X-Forefront-PRVS: 07215D0470 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(39860400002)(376002)(366004)(396003)(189003)(199004)(13464003)(54534003)(58126008)(316002)(76176011)(6916009)(33896004)(8676002)(52116002)(105586002)(23676004)(6496006)(52146003)(386003)(6666003)(305945005)(53936002)(6246003)(7736002)(9686003)(6306002)(55016002)(478600001)(4326008)(2486003)(81156014)(81166006)(106356001)(66066001)(3846002)(25786009)(8936002)(47776003)(6116002)(50466002)(1076002)(97736004)(33656002)(229853002)(2906002)(956004)(72206003)(68736007)(5660300001)(476003)(486006)(446003)(11346002)(44832011)(33716001)(42882007)(26005)(14444005)(186003)(966005)(2870700001)(16526019)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2521; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjA3TUIyNTIxOzIzOitsTTNUWWdxQkFnK2RhbWlmVnhpbmpRUi9z?= =?utf-8?B?c29JdmVTc1ZMWmZoSkJjSVZJeUZNalpQNG41NXJPRGpMNmxBNFdPQTJKSmI5?= =?utf-8?B?enVhRmRyNlNnNFBDUHQzOUR4WnFhMjRTM0VLVTFRbkRvSGdmb092WFN5R2cz?= =?utf-8?B?eWN3NUowc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Ozg6ElWiB98qwigkS1oZH852N5QhTAfYh/ddVFVxmb5oc1qrA85SKfwmaYxmAt4mw1RqFgo/RB8kxHPo9TX4Nnyrqm5U= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2521; 7:eiSsg5kZpsYDYczHfDchr0xCRlHM3pVeF8kl9OvRHqqAANRrfY18c7LjvGEPylOCSBrqrZE4YO15ABHsXLpNXzZ2CopSVPBhq70f9vfsFkTyWp2yoqw2ZQ5LfXJccNCnZxUXklkQgeqMKC/XV0cmGspUVIkZYbVHMER0MvSHuvaNNCVquk3+xDhH3UG8sG4iGT26dMotsP7DjoGYWc91vxawoS6qKSjDwDYs5HklKzsQE3ZxqHBST+i+WHXyq/j5 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jul 2018 07:43:21.7707 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4f1da043-e215-4513-963f-08d5dfef7d17 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 0/5] eventdev: add interrupt driven queues to 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: Mon, 02 Jul 2018 07:45:57 -0000 -----Original Message----- > Date: Mon, 2 Jul 2018 07:25:25 +0530 > From: Nikhil Rao > To: jerin.jacob@caviumnetworks.com > CC: nikhil.rao@intel.com, dev@dpdk.org > Subject: [PATCH v4 0/5] eventdev: add interrupt driven queues to Rx adapter > X-Mailer: git-send-email 1.8.3.1 > > > This patch series adds support for interrupt driven queues to the > ethernet Rx adapter, the first 3 patches prepare the code to > handle both poll and interrupt driven Rx queues, the 4th patch > patch has code changes specific to interrupt driven queues and > the final patch has test code. > > Changelog: > v3->v4: > > * Fix FreeBSD build breakage. # meson shared lib is failing with patch: [226/1298] Compiling C object 'lib/lib@@rte_eventdev@sta/librte_eventdev_rte_event_eth_rx_adapter.c.o'. FAILED: lib/lib@@rte_eventdev@sta/librte_eventdev_rte_event_eth_rx_adapter.c.o ccache gcc -Ilib/lib@@rte_eventdev@sta -Ilib -I../lib -Ilib/librte_eventdev -I../lib/librte_eventdev -I. -I../ -Iconfig -I../config -Ilib/librte_eal/common -I../lib/librte_eal/common -Ilib/librte_eal/common/include -I../lib/librte_eal/common/include -Ilib/librte_eal/common/include/arch/x86 -I../lib/librte_eal/common/include/arch/x86 -I../lib/librte_eal/linuxapp/eal/include -Ilib/librte_eal/linuxapp/eal/../../../librte_compat -I../lib/librte_eal/linuxapp/eal/../../../librte_compat -Ilib/librte_eal -I../lib/librte_eal -Ilib/librte_compat -I../lib/librte_compat -Ilib/librte_ring -I../lib/librte_ring -Ilib/librte_ethdev -I../lib/librte_ethdev -Ilib/librte_net -I../lib/librte_net -Ilib/librte_mbuf -I../lib/librte_mbuf -Ilib/librte_mempool -I../lib/librte_mempool -Ilib/librte_kvargs -I../lib/librte_kvargs -Ilib/librte_hash -I../lib/librte_hash -Ilib/librte_timer -I../lib/librte_timer -Ilib/librte_cryptodev -I../lib/librte_cryptodev -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -O3 -include rte_config.h -Wsign-compare -Wcast-qual -Wno-format-truncation -fPIC -march=native -DALLOW_EXPERIMENTAL_API -MD -MQ 'lib/lib@@rte_eventdev@sta/librte_eventdev_rte_event_eth_rx_adapter.c.o' -MF 'lib/lib@@rte_eventdev@sta/librte_eventdev_rte_event_eth_rx_adapter.c.o.d' -o 'lib/lib@@rte_eventdev@sta/librte_eventdev_rte_event_eth_rx_adapter.c.o' -c ../lib/librte_eventdev/rte_event_eth_rx_adapter.c ../lib/librte_eventdev/rte_event_eth_rx_adapter.c: In function ‘rxa_epoll_create1’: ../lib/librte_eventdev/rte_event_eth_rx_adapter.c:1249:1: error: no return statement in function returning non-void [-Werror=return-type] } ^ cc1: all warnings being treated as errors # please rebase this and following patches to latest next-eventdev tree http://patches.dpdk.org/patch/41795/ > > v2->v3: > > * Fix shared build breakage. > > * Fix FreeBSD build breakage. > > * Reduce epoll maxevents parameter by 1, since thread wakeup > uses pthread_cancel as opposed to an exit message through a > file monitored by epoll_wait(). > > * Check intr_handle before access, it is NULL when zero Rx queue > interrupts are configured. > > * Remove thread_stop flag, in the event of a pthread_cancel, it is > not possible to check this flag thread stack is unwound without > returning to rxa_intr_thread. > > v1->v2: > > * Move rte_service_component_runstate_set such that it > is called only when cap & RTE__EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT > is false. (Jerin Jacob) > > * Fix meson build. (Jerin Jacob) > > * Replace calls to pthread_* with rte_ctrl_thread_create(). > (Jerin Jacob) > > * Move adapter test code to separate patch. (Jerin Jacob) > > Note: I haven't removed the note about devices created > rte_event_eth_rx_adapter_create, will fix in a separate patch. > > > Nikhil Rao (5): > eventdev: standardize Rx adapter internal function names > eventdev: improve err handling for Rx adapter queue add/del > eventdev: move Rx adapter eth Rx to separate function > eventdev: add interrupt driven queues to Rx adapter > eventdev: add Rx adapter tests for interrupt driven queues > > config/rte_config.h | 1 + > lib/librte_eventdev/rte_event_eth_rx_adapter.h | 5 +- > lib/librte_eventdev/rte_event_eth_rx_adapter.c | 1526 +++++++++++++++++--- > test/test/test_event_eth_rx_adapter.c | 261 +++- > .../prog_guide/event_ethernet_rx_adapter.rst | 24 + > config/common_base | 1 + > lib/librte_eventdev/Makefile | 9 +- > 7 files changed, 1588 insertions(+), 239 deletions(-) > > -- > 1.8.3.1 >