From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0058.outbound.protection.outlook.com [104.47.42.58]) by dpdk.org (Postfix) with ESMTP id 356AD1B7AB for ; Fri, 13 Oct 2017 18:37:14 +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=o+mU4T7g40b3XW6NRDTL5Z9znddr/kUlC1XGsVvxYZ8=; b=g2fsyESfYZ73CibXwccWufvj703rblXQngdH0w+L3j2xVKlZF00pXBMrGcj0VRwfw5glpl1+HzdiZvMgBmC+TxsKJ9/NoqBbvvg0tx5ASywzkqnJFMBLavbCR77CvMVfGPQMk7/AKax39XokyltlZxcx6arTgWtmxp/o1MO9ZWs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from PBHAGAVATULA-LT.caveonetworks.com (111.93.218.67) by CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 13 Oct 2017 16:37:10 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, harry.van.haaren@intel.com Cc: dev@dpdk.org, Pavan Bhagavatula Date: Fri, 13 Oct 2017 22:06:45 +0530 Message-Id: <1507912610-14409-2-git-send-email-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507912610-14409-1-git-send-email-pbhagavatula@caviumnetworks.com> References: <1507712990-13064-1-git-send-email-pbhagavatula@caviumnetworks.com> <1507912610-14409-1-git-send-email-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: DM5PR05CA0054.namprd05.prod.outlook.com (10.174.188.171) To CY4PR07MB3464.namprd07.prod.outlook.com (10.171.252.145) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c97c7104-cc1d-40b3-23fc-08d51258a7d3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY4PR07MB3464; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 3:Yo9smV1meUPbaOhntKZ40nUKdKz5XSStierMg/zHMcQkzq7GBx86LxPp3V6plwYquRGplNjDrKHyS271uryrqKYt+7Jysm3MMDcwCRvFAhMXuZWIBtT1iv1w0QaltTrpoK3oqU2Y/rDmXQREY9l2/yjYAWgb3fNT9PY/1RzcoB3SVeZfFGByi6iVOD7a9/h0q3mKE0wQKriQAcjmRZEEjaVfc+3laYcD6y/q4HIxaXzIQm14NX35TASdiDVGLVJ6; 25:8FfnP5Igba5BgWj0qfCl8HhZU6ahZZYTyEZdo3YJupBi9NNztReNwSyw1dnKBDvPQ+kZW3KnhGiKp/ltGTmJPgGihcgTsdmT2qWJFQY7YrUAX7lzB17hu/VBefADRLaodF4mmn0tWuuCOFGGjQE/b7BO+dyeUQH1kiWdOkgkDiLRck6meDbdOGII/Inuluz/bIKGhimzGtDPSKlvEhEGzD0Vd+oi8VPao7UaF4mixi7mfHkVXh4v39U6OPBRM2zw8xox5zwnf2WleKYki5+0Q04T4e7a0gBzFLxQ1SHOxWFKh07KlYwF5LkmB4PHq7gUhWQipzQPFzymR/f0MLCWWA==; 31:bSOJ66zSNbHxhBJzV02NPrX6v/CFuRjdWW7uiPQ3Um8qXDmHC9HQS//Rmk3czYdEMUj3+2V0O5tE13GbJx0DCl6dIlZ//mQopJ8wAm/q4cFosBL1Zwp9DgIH50hC00dkL8/W7TrExzuicUKw4jnT0TofGW/Pg3D3ZwC9SawJ7hXhiCxwwn2/a0p/ct4Pef+5zYMyc/q8gL5W6Zo08JoqFbXdQs3wKVTMoLXVuJMDWqQ= X-MS-TrafficTypeDiagnostic: CY4PR07MB3464: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3464; 20:Ftk+AGELw6xh506RDZ0Zakq2n8RCiBTGc01jkhBv/C14SNDSQwLvnh3q4ayge+/PpJ1Y/xPLZFaJ32bQO3U+LsFNRIwocOIk5D+T5GGAjU4zIyr380CTujbS7+Vn0PzVqKuR2AVAx+J09qhHEb9BAWJsBAVlKOTc+AhOk3ntHt4NzWpy4HlcFmRdUvRZedGkWFhRDCFqCHQrgC5sNPZfEF9NQWb9LhGVfQPkRHVa4sIdfRarlQK5uWUKvW01s9NkR4wX1kCAo++TcoKA+NBcjnbkdAum7DvQwLiJzkhD2HG3HAXXI4GqWrs6L76tg640jfiqK7DO6/i/oEBhsPavq4vQlM4TdBbKhyS2QAUxYbYn/3OP1gqsDSjm8aMCelRaYUz1lv1o7GkUluvOrMaRi+yQzQMomB8XvMkEpEk21w1JwAUtSllF7ZYs9gNyhDK4t59jgY4EQR262RtrGtqFM3wteUEr31h+BsZFk/32Nd6CugOimerlkCh3mrLnFx1PalkMAiZ5OgCZVwwmrMVyuuYMmqxGRmisI8VdcIr9bY52hL/kEgrgxcwYeY3tI7F6oZ3r1BBcRX12JC11dF5pv6QjRwogEAzDssNo4q6N8v4=; 4:nSUxKvJsF09AFv9DLsJeVHCUxFxQie2EFh3J/Jgly3yaYRasQFG5MAi2s0/pdDMB7eZbWQiu4NoXXE82lq7/PsnduTj1dRqwzIFWPJGuz7uUzgWfa+Ire6tBhIWLD2jaDvjo3vtI1+VoNt+iRPlOA8GtwLtLxQf4bBCcTRa9GqhtQrAgjMnQYXIGO1gGLV1n0/BlUEi+jrqa6cnT+tpS95nWXs6+HQru/GyMKjQro/NKsS/MySfo+J+BaQfspMbS 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)(8121501046)(5005006)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3464; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3464; X-Forefront-PRVS: 04599F3534 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(189002)(199003)(68736007)(5660300001)(53416004)(3846002)(6116002)(33646002)(6486002)(316002)(6506006)(5009440100003)(50466002)(72206003)(478600001)(4326008)(2906002)(2950100002)(25786009)(42882006)(107886003)(6666003)(36756003)(53936002)(5003940100001)(48376002)(69596002)(97736004)(105586002)(6512007)(16526018)(106356001)(50226002)(8676002)(50986999)(7736002)(189998001)(101416001)(16586007)(81156014)(8656003)(47776003)(81166006)(305945005)(8936002)(66066001)(76176999)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3464; 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; CY4PR07MB3464; 23:mvJB7yp5CiOrHy5HsaUvyaVjlYw5DhtLCVMBOYPST?= =?us-ascii?Q?J/eX62vlBnPOXsSSDvul5kc4KjAT7yQQ9a+6tvY0uEtlaCIM80WnRF2kyL11?= =?us-ascii?Q?92yNGNSTSHUuB+kz24tGEcEW3gXs9cAZm7TOirsNfLqE5ftxsHn+imoUfjgy?= =?us-ascii?Q?w8Y3fsufIUoHPb/jIcK94+HPbc22pPK1FBgxfmUll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FQ17itCTPQUrBcq+0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2017 16:37:10.5874 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3464 Subject: [dpdk-dev] [PATCH v2 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: Fri, 13 Oct 2017 16:37:14 -0000 From: Pavan Bhagavatula 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