From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0045.outbound.protection.outlook.com [104.47.42.45]) by dpdk.org (Postfix) with ESMTP id 15A791B93D for ; Wed, 25 Oct 2017 13:59:50 +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=zlk0DTLOomJmnaJEAq9ulswJP7yC/FNa+IMhGPKOBhk=; b=FEtOZ0LL/KYjjKELzkmKVhTnYw6tXEtU4gcgAQhP8eXfYCxhfD1phsBzPdKtT3nwDMqn5ED12bzX3vr3S+5oXc0yysq60nW1iR2341nCVyTNF1oPZNiAwsaeybko8PwqHyK6YWiaQiNe+eOOg8kPsRGybh4hQv8AHcXnanmMQiw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from PBHAGAVATULA-LT.caveonetworks.com (111.93.218.67) by CY4PR07MB3462.namprd07.prod.outlook.com (10.171.252.143) 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 11:59:45 +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: Wed, 25 Oct 2017 17:29:07 +0530 Message-Id: <1508932752-22964-2-git-send-email-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508932752-22964-1-git-send-email-pbhagavatula@caviumnetworks.com> References: <1507712990-13064-1-git-send-email-pbhagavatula@caviumnetworks.com> <1508932752-22964-1-git-send-email-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MAXPR0101CA0060.INDPRD01.PROD.OUTLOOK.COM (10.174.63.22) To CY4PR07MB3462.namprd07.prod.outlook.com (10.171.252.143) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 793b69c7-1bef-4234-662c-08d51b9fe36f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603238); SRVR:CY4PR07MB3462; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3462; 3:OZ4Tj3BW9uChT82YyndUp8kNqvN9PyQaEKzfaUpPU79UP6Ovecz608t1nJMRWPBGAYHbr9yc56ZoD7kpTMxfSd5ZR+Yo0JvInhM32ZsaKICEaMZ8SYk8f+qaFV0hwcULChG9bBNtzTF8zU3g54CTXbV+LvNRi2r61eF/t7V/Fy+hmtbgS7Oy7F/c1cN+8f39Al/1BaYwuz4z/gXtvcvA6KHJ87lX63MzTG51a1Z+VRsh2OKf/nkNRhS5oW/EiUES; 25:9VDF2/Dj/SCdguPfhomqJ52YstlAHivOla0BBHm4gtCl1YWykPM1JsszOOEC8LcTbE7XIo+y3kQ6QnNNSvEZJrX6TrGMuChNDgealkZT24qezMpyij5FgpZwFUrJaI6GMau+F+J/4tr9Lqsz7+PL1QdYCEaAy+ZLGBq4CflSbOXblpfh02wJbMj5Mv5/6kagpDRq4XhbL0L1Mk9ur969iMlPR34qCyN4zsn/U+oGD1CJS7fF8ddFCqp/cdyblnYecwoGmFOCYXA4T/oquHd8q2WmoNpTBEMDMGbUGBZ/TDlov6SKIAmhd2wGoQnT8D6SPKwz4ZMW8NWBgvV2H0+0gQ==; 31:E1KdJOm2QRsKfhWl8pnEQ3mvZRHqclKq1+1JvNBqo7uy32Gnj7ViE+PBsCJkJHNNQZwGeFeQY6rP3UI0VudlK7kf14ljtUTSfSsgIeC+obPe89ZGbRNtym0fUl0+xmIbXS2A7ntfJ9hHcwaHtYuqmaLrnWBTCSRf3ya2I8vUuGxH99FyiYJ0rtIEP4tVf9y2eN+D3tAVQMocBXYJzVe64AhnNrWuHC+AHL/kNZTEgLM= X-MS-TrafficTypeDiagnostic: CY4PR07MB3462: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3462; 20:EVYzhir4wYUaedwhRTJ+QJoEmMxYmXP9yfvdXlNi1ibp6bty/8GlaBYeuyBcSF8vMurAQN7EVplro0qp818KbRmgMhln8pKz8PCtiaTvkzc9Yj6xjuitODvrHCW9Vfhupj08gih/L1Es3B+DP6vqBbnM1l5I6dejHKA/H0qkb150FfV7zWTNy4TjtpWY3NqRNF/VwWYkVYJPEBMnD//4wcsZ0rYadGHCvMGglpRm3Wb9KcW8ELSN7+UntOaqILt51t3zufGjWHz/h7GqGOmb44XnmVbbbFzCB6H3ZFxu5LXrYkxWz7vaYxtqiBZWiJZFJOkHGHW7U1yg7/TruResn4CPViwrBQgIZ2GWrtYIvVsn0Cb2kpWYyt0NFgLOS3/CdIaeNc+hp8GTO5J00XmR5uKfUjT/J1vpYyRC4F3X8pZPGFQiDKxIPuXkKr3PIU9KC0aboAKocEeucoWYCsBV++xx/rQ7mI0kxwPWhqIczbvtGz2Cn79JKk019zThTm3xBMUa0d0PhdRt9d9A6PpbSbzPnv7lexamO0NdtVPZKL3hHzA2VbJAPSpw5SgTMmAW/BAyzG0n1w55mx+4lMidgIuAKiyBA40L1EpX/PBwPvs=; 4:KKC3MjFmM3xNUkoLPVqQw55JhFrM5FgbRACM8mDeKJ4v3EpO6KukFHUBkq/t/y/eaeF0JXQcxGgURZhOh32R5WdJsGB3tETpMit0oPrIdyPq3wD8NcD56QEN2JGlBut7cw8A3ti9mMpU6VaqM0LcG83ytOTMVfdifRprbLT5Zby4+n2qJCdNrQslJDAdIxmGz3aiHea7RVrLNgwGGFyR0U/4jhWbRqHPS2hRqJCCfNC9cwR2dUc+ZQsS/cj8No7pMbJHv4g6HH074pigDYajyqfrEU+P96gnGVojJBtuPHc= X-Exchange-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)(100000703101)(100105400095)(3231020)(93006095)(10201501046)(3002001)(6041248)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3462; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3462; X-Forefront-PRVS: 0471B73328 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(199003)(189002)(4326008)(106356001)(42882006)(8676002)(8936002)(97736004)(68736007)(50226002)(7736002)(305945005)(5003940100001)(5009440100003)(48376002)(189998001)(16526018)(6506006)(2906002)(6666003)(6486002)(5660300001)(6116002)(50466002)(76176999)(101416001)(316002)(16586007)(2950100002)(81156014)(25786009)(50986999)(53416004)(36756003)(478600001)(105586002)(69596002)(3846002)(66066001)(33646002)(47776003)(53936002)(81166006)(72206003)(107886003)(6512007)(8656006)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3462; H:PBHAGAVATULA-LT.caveonetworks.com; 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; CY4PR07MB3462; 23:3ZNUPqIXUisK2xRy/z4BxL7OfrLVwQCN1Jps24Twx?= =?us-ascii?Q?2u3+W7b93eA9xaseU23ElCy1Ay0LWJD7WVkT7G+15yQx6QMvIuXcMAZWGhST?= =?us-ascii?Q?AZPIoZbyd0aGSLQehpcCM5ytNiWKSlK/ogaounRnlHn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oY/BCsHYj2DkT7J/FvzAs4Zqkhp5ZM9s7E5Ks46h58WDbpmRJjg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2017 11:59:45.5552 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 793b69c7-1bef-4234-662c-08d51b9fe36f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3462 Subject: [dpdk-dev] [PATCH v4 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 11:59:50 -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 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