From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0047.outbound.protection.outlook.com [104.47.42.47]) by dpdk.org (Postfix) with ESMTP id 6AA3C1B9D4 for ; Wed, 25 Oct 2017 16:51:06 +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=2XI+RYqseyDxC2IzkrfSlZs35HcoTjafbTEfyP4SBFI=; b=UbbMySPlSvy4nRbEBgU13sLUU4K1d/6dlHivrQnwJ6LaQzrppQB9qZIHE1v4Sg/3QTj2zOj9gA3GYJiKHqniUq07P8644rcs9ep4IQ33CmvnKj9lkMGyXer68GEMRL+3TfkKioWEHCTkSFaWj0DLrTE0+OSwV1/iDwQkSP1RHvA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from PBHAGAVATULA-LT.caveonetworks.com (111.93.218.67) by BN6PR07MB3458.namprd07.prod.outlook.com (10.161.153.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.156.4; Wed, 25 Oct 2017 14:51:02 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, harry.van.haaren@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Wed, 25 Oct 2017 20:20:28 +0530 Message-Id: <1508943033-15574-2-git-send-email-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508943033-15574-1-git-send-email-pbhagavatula@caviumnetworks.com> References: <1507712990-13064-1-git-send-email-pbhagavatula@caviumnetworks.com> <1508943033-15574-1-git-send-email-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MAXPR0101CA0009.INDPRD01.PROD.OUTLOOK.COM (10.174.62.19) To BN6PR07MB3458.namprd07.prod.outlook.com (10.161.153.21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d3f13fe8-5a7f-492b-2b3d-08d51bb7d154 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603199); SRVR:BN6PR07MB3458; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3458; 3:SWic9dNxDToTSsoxk87Jy9uMrS9Ugtj9BpvZwXWN/2N6gUgSbZOfvGkbQZWBr6IgjjCpPQ2a9GfHktL78ibNIy2u8qtK27kbDfaGQYmw+rw6JfdX6PUBo0FeoQlo8IqliPsf1POu+BLB0NHMDFXAXtdNh/2BNk0jBI5P/amF9ay5c5tYKiLQlYmFhDfZch8Iz12tAxsUzIE3PabeABcSpYbzOiNJrNgeUGxpglrEG7nm65PeDhYszuB8cr09KkmJ; 25:J5jyKOKAoger03HAp3S4vLxok5lYD/R6yqfbiRtJVGCRUlnPTtkP3Cy+G0K2MBtHqLFGRCCn1DpQ2pojn6hkvGFhRRzpyTjAcwjSM9Wqqk781CMIRc+LzR6QlVbyn8hSeNasuLO0R5bqMkrmik9qrdTNoQ3y+YRx2mPcnXPmEH6pWYEPfHGuPkszJ52foV2F2kFREgI3BCHXfpLSjsT39wvkwhBcUU/KCZT0PumlI4lsnR3XRnZPv0WcTZ2d4hHiQjIGD36+uOgNGVsMhsfSq/cnsheJJGrDBeqWeMHRDAJxkoCO3HT535DIvz35350YmJYx/aZ/d8qNvHbICXVeeg==; 31:BDYOkBs4Fueacjqy6mAzF4GFk60kcjFOKVoIQ7ba0Z491SzTkrR7dY6vLJEnzEp83q2DIV4hf2ZxAnMVgXUn1HPRvN+cbmzbI2tFYlluT+7dT5bjRmz1iRfdSzirN/cVMtH+6hGDp6ByIbIh4LeVgiM6NYvSuGAzji7joqGNfCCe3q9jgJ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antispam-Report-Test: UriScan:(228905959029699); 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)(3002001)(3231020)(10201501046)(100000703101)(100105400095)(93006095)(6041248)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR07MB3458; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR07MB3458; X-Forefront-PRVS: 0471B73328 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(189002)(199003)(81166006)(53936002)(7736002)(50986999)(16526018)(50226002)(76176999)(4326008)(305945005)(66066001)(5003940100001)(8936002)(2906002)(25786009)(101416001)(42882006)(6666003)(107886003)(6512007)(8676002)(5660300001)(2950100002)(68736007)(81156014)(47776003)(50466002)(36756003)(5009440100003)(316002)(16586007)(33646002)(48376002)(105586002)(106356001)(53416004)(189998001)(6116002)(6506006)(97736004)(478600001)(3846002)(6486002)(72206003)(69596002)(8656006)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3458; 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; BN6PR07MB3458; 23:iAJykW14IYbcAeqM9I266lablvx0vE0ycdRRga0TD?= =?us-ascii?Q?gnG25usKIDHf538xaYztZtsETUBZrmPCMcUBR3SM1BhgUBw9inTNI0CWJc7F?= =?us-ascii?Q?bymS3gY6FYRUc2nMbE5kQz8lQvtGZJt/MvF2yutD7DO/OBxBQ2RPD7z11fJQ?= =?us-ascii?Q?0yfQmLY3qQbXC8j1xEFsGAim2TyDWLC7js4FyLUQzkEsI4taPK5k6DU4RkHF?= =?us-ascii?Q?n2goaRylOhrN43nErz3zT8b8pTFYjpAj/oygE1y8gg4GhBQHyNHTr3uxa6Wq?= =?us-ascii?Q?PJaLaiP2LOxVoqie8/VeSDksLafkoId0JmYH3wWPsZd5J58YA/dWXbX2NTub?= =?us-ascii?Q?27kMDliiF/BqMdV+jcWBFVBvD1Tcdg4/QKj2mI7FS5czmQK0cEcCZHIxgq28?= =?us-ascii?Q?YpCyRXdGAINxUYr3i/WH4t8968XMcc8N6PU9r8/8v+7DeMLol05iAvRmur5m?= =?us-ascii?Q?L362HEXnOJMEMh0bEf38lgoPJOrqmWRnNrikRVBM8cM+r5Fq8yHVdB2EsW1r?= =?us-ascii?Q?Az4ZZj3d5WPpj5Diyd5y3zni/NnaAxg1/jX96GzOOjBPqrga305JvpgyNzzI?= =?us-ascii?Q?qr2iupbOjIMizr6ItrQ44clY5YFmCD4V/YyHnEpcU8NdeIxbOHJKH90+CdxG?= =?us-ascii?Q?XjLhUQyCBpFHo4KZvQGBYM1tvehgEpTmu4M0oncLFRhjx6POBLPP83p7wui8?= =?us-ascii?Q?tlDTwtsHhpIqQOxZkq0l9B1JpLy7KInH/RFTdOx0DZbI2f/mZxZd46HJctbQ?= =?us-ascii?Q?kmoD4Z4uU80kXzXKsidObFLb5yIG4fNk/o7qgUbpycyHUYesoPe8Y0Jg5koG?= =?us-ascii?Q?86fI53c51XH0n2wDUIXXvXN6Z5NWskPgpEXL4G1YMYPD9YL8nIpFpaVA46cp?= =?us-ascii?Q?tjBUtnbhP8w/wSUcOpywpgFcKzNEhwphPai86zHMjBC8SSi1ljV/+qr/d/DP?= =?us-ascii?Q?Ot12iu1gvnSchbx3h1lSQxda8TDQidnRW+7BJGS7bsbgtO2gmX49/kJz+1Aw?= =?us-ascii?Q?2DC192o126Oht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jxD0td4tJU92lNpH5eGVLkeOwUdbvTV5jG14qwWe2HJJioYk0WOQw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2017 14:51:02.9308 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d3f13fe8-5a7f-492b-2b3d-08d51bb7d154 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3458 Subject: [dpdk-dev] [PATCH v5 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, 25 Oct 2017 14:51:07 -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 Acked-by: Harry van Haaren --- 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 522cd71..92fd07b 100644 --- a/drivers/event/sw/sw_evdev.c +++ b/drivers/event/sw/sw_evdev.c @@ -861,6 +861,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