From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0070.outbound.protection.outlook.com [104.47.42.70]) by dpdk.org (Postfix) with ESMTP id D39101B1BB for ; Wed, 11 Oct 2017 11:10:52 +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=AFQoAlK7+vt9M5MBVt1Bn9qKiORhTgJn5Z+DTFIBC/U=; b=i3rFSYyBr7VqO999MZxb5rLgzrJsjJpx3eacXBTUeU6G40qEYF0tTGIv8kklmd0o19p78qukePJehTnTMZUz57RSu5tNaGx/WBxB7YP8Thvw5HixiSGBGIX2Ug4Hpxz73g5+pDfmztM2LSgmXxHH2QVum0pxmIPej+v8H+NCAy4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from PBHAGAVATULA-LT.caveonetworks.com (111.93.218.67) by BN6PR07MB3457.namprd07.prod.outlook.com (10.161.153.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Wed, 11 Oct 2017 09:10:49 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, harry.van.haaren@intel.com, hemant.agrawal@nxp.com, santosh.shukla@caviumnetworks.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Wed, 11 Oct 2017 14:39:45 +0530 Message-Id: <1507712990-13064-3-git-send-email-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507712990-13064-1-git-send-email-pbhagavatula@caviumnetworks.com> References: <1507712990-13064-1-git-send-email-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0014.INDPRD01.PROD.OUTLOOK.COM (10.174.214.152) To BN6PR07MB3457.namprd07.prod.outlook.com (10.161.153.20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9c218281-0391-46d2-2243-08d51087f7fe X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:BN6PR07MB3457; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3457; 3:OMuW7tcvE34LWzajlqVrKqc5+4WmuiciIaEUTZ15y/1I0QC0yUwSGPWE0gMy4RYitJFlnhoHMygBaN9RPlLZnydkgw7rZcJOyoURBrdcHrMcy556Ad7X6MJR/f+Xb6apHWLJgAKlGvq+SCyiAvtMimd+kuvn/UmeC5oABfwXNwWtWOovxAOks/235sIyrGfmccPWEhHQb3dnmbQ/Vflr/KzAyz1UTw30fIbP31IBmPSmcvPxlHkMtIogjGKNYNdo; 25:+WvpmZNPPsp4Gqbq5kvOURhwb05hJtZZs+3q4rkx72683NRwT6klQRSv/h2LEPnyyFlZhLCvycftjS1ZoprVp++nI7505PBtdkwK2p4xyt8VcK81ooCsHAnVzuAsgz1Xd+OTz8/MXwgcwYJO/5hNM9SpqzofjxfjP4br5/Pvsf0GIl4TN98qO4f03Ye2Kbs8ZhgIQBmBEtiJ6X8oHmqaWc4FlQEHHx2MR9kMNfFLpfCICiLiLSl/rKGsvV2jvmHKSgTBDp1oqKRDxbabxr8xrG2/1ZPdayNR8VJbuWo2srM8BtMSGv2VDatCPgLOHM9i6Z+ncCZY48vn3dS66c6THA==; 31:RbPTRg3ssw8jl1Tz2apnDANdB3PfWfs4bQHQTqTAQG2E8oomQH6SYBdAeBkGXRuns7Hx2nl106bUzXwOd1e9kZrrcbG3jB7lhZAhM95ZdN9vrGZTb6OrS2aKAym6xPaUFCCag/PAeKQP+UKWVPXEyG68qQEC1q3O3tv9RtSDgRA/C2s8U+YqKm5wzlIwVnIvsT/F8QOqgQJ8Y5TdCzUBmIWr5pW5dbt9l1BpiEDRmS8= X-MS-TrafficTypeDiagnostic: BN6PR07MB3457: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3457; 20:SMj5t/GPgiT5vWP7ONm+JOo7sFFpSOwmUmBfqm4i/Ei7NK3/zPLg4Dd+Mw6T2X50z4hNz3QcrfuLfHo8LJEgOpMLcsW3p81WhzwOofRKP7ciY0gBEPvV4D+rVg0rKUs9x8wLgGR94OhM3U25Vy7no+FGBp42v4kuvfqomDzISoOBc9os/7UpRnvdfbgBDrVGMOBs5Q/h5P2be3yc5h4d4KRcLj95e++Uk95U0M1eq4Kh0f8SSNnjnffYJqf4oOZ9Cvg7W8j6zs6rg6S3Zu23xZd3S9hkv0lEvfkJ6iKl+IzGNtf0subpuaFNFXIAhv318APllPhoArHCodE1iL//E8zcEKppoFEQ0sweLiwRQt+a2JHQ9oec4Z6JG1qxsIyKJo/46IZO0m3sahsJzi4DbjX5Gl0Sn7KeymQwR61pYsAf1k4gXjJixSSFdwtRYYwQ8kBN1ZhJdGi7lQMz/tsjqfahGJPzpAISUoc1C26yYSO+YpdNm6sOuklzdAqcoyDQkv4TJTJ66ZR+nId3J8qnvgCJxk0fUK+2xHEmynGrtyJnavNYyIy7hCjSfhn90oLcRZdFmYfG4A4ZHsPMeLyNXvr5Tx9Kii33O8i8CWC4FtI=; 4:ND8xlPTHV3wKINWoZ68GJ2QjXRSLIclDxe/isEIf+bVzfzpz9HDhHA7Evidj7ryaiE50Pwkju3WPg+xRR7thKgFMz5Nt/OPQ1wWKi0BWWiKMsyYEPi8JMlCSczd1LdRCOTbXeMkYFrXtLfIGEP5xJKM1jh836ZWBvFYXg8FMIIsvgIsdEGt3KDj5VEjpmUHWgFm6iHIG6XpA0cKPTW4+J7anEG//f1CpyJLJRvekPmT2UBjFKZSrjTbbBDb5t4OQ X-Exchange-Antispam-Report-Test: UriScan:; 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)(100000703101)(100105400095)(10201501046)(93006095)(3002001)(6041248)(20161123558100)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR07MB3457; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR07MB3457; X-Forefront-PRVS: 0457F11EAF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(189002)(199003)(2906002)(50986999)(6116002)(68736007)(5009440100003)(6506006)(6486002)(76176999)(3846002)(4326008)(72206003)(33646002)(478600001)(16586007)(189998001)(316002)(48376002)(16526018)(6636002)(25786009)(6666003)(105586002)(5660300001)(50466002)(66066001)(42882006)(36756003)(47776003)(53416004)(97736004)(53936002)(5003940100001)(8936002)(81166006)(101416001)(106356001)(50226002)(81156014)(107886003)(6512007)(8656003)(8676002)(305945005)(7736002)(69596002)(2950100002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3457; H:PBHAGAVATULA-LT.caveonetworks.com; 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; BN6PR07MB3457; 23:WmBLATVi0aPH+Tv3Ww6Lg9eN1/GLlHArVTNrlQcEI?= =?us-ascii?Q?DeTzs+duTaHBl862iCOxznUkpwA3onJisTPyC9g3Hr40EWl8/WkzQ8xQraWE?= =?us-ascii?Q?5l7d/5Xnp1hlY1K883ZaLqMcpuVDA8Xt3XddW1DxAOBHfMVoCmqhe6KoExig?= =?us-ascii?Q?TrBs+ITx+gn6nhI9PA2mblIj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ts1EdILNtbDJNdgRK/KKeQtviq5Blzxv/0Qw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2017 09:10:49.1143 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3457 Subject: [dpdk-dev] [PATCH 2/7] event/sw: extend service capability 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, 11 Oct 2017 09:10:54 -0000 Extend the service capability of the sw event device by exposing service id to the application. The application can use service id to configure service cores to run event scheduling. Signed-off-by: Pavan Nikhilesh --- drivers/event/sw/sw_evdev.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index aed8b72..9b7f4d4 100644 --- a/drivers/event/sw/sw_evdev.c +++ b/drivers/event/sw/sw_evdev.c @@ -875,6 +875,15 @@ sw_probe(struct rte_vdev_device *vdev) return -ENOEXEC; } + ret = rte_service_component_runstate_set(sw->service_id, 1); + if (ret) { + SW_LOG_ERR("Unable to enable service component"); + return -ENOEXEC; + } + + dev->data->service_inited = 1; + dev->data->service_id = sw->service_id; + return 0; } -- 2.7.4