From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0073.outbound.protection.outlook.com [104.47.37.73]) by dpdk.org (Postfix) with ESMTP id 665381B326 for ; Sun, 22 Oct 2017 11:16:54 +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=78nATZnanju5spaEOc/U5rBVNsl7aUyAygehP+teDTI=; b=EAGZB6e3pCp3lnLfcg2RLZvYtnPzGETAcaI3e9nUKRWwf2k8iPFKE8PYm1iSp5okC08sguQoRABAq3yovddEJ4NDCLiYaIAq2DFkdtb5DYzPMXh3MPP3izvUGc4b4Nm/+T6VzZh0/AguCmXlhjnMEYgsg1AhYZPsdDg0HE7z+jc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (103.16.71.47) by BN6PR07MB3460.namprd07.prod.outlook.com (10.161.153.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.156.4; Sun, 22 Oct 2017 09:16:48 +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: Sun, 22 Oct 2017 14:46:20 +0530 Message-Id: <1508663785-15288-2-git-send-email-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508663785-15288-1-git-send-email-pbhagavatula@caviumnetworks.com> References: <1507712990-13064-1-git-send-email-pbhagavatula@caviumnetworks.com> <1508663785-15288-1-git-send-email-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [103.16.71.47] X-ClientProxiedBy: HK2PR04CA0083.apcprd04.prod.outlook.com (10.170.154.155) To BN6PR07MB3460.namprd07.prod.outlook.com (10.161.153.23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4aed15d4-5ec5-4618-f227-08d5192da08c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603199); SRVR:BN6PR07MB3460; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3460; 3:8YFX8PSEhMMx3pbLM3frOhnPGI1Q+C7NffdLLn9ZxRN/6DzBgDXHKhPdnReAc3D5m+Mru/L1To4JQstw/fN+xxZ4KaUwdCZzjaj/h7OYRTwdYxufQHmMa4BzK8SvI4xlSgUN9PTd8BsrZsz2kjqG2xim/yONjYX6H+7p15Ohtb8b6ImbwnJM9pwwbDMHGwcMdKpbtQi/44p8p2HilJibJ2KL2Qnz34vXTq8BFpf6YPJOQVa9r/PjqGBu1zC4lpXw; 25:5ot9/DMURY9WMmjDGfhUN+q51sUIl0XwPgIOpVt3FQPSz9ckKxC4Ou93IvJ/yp/nvNane4Gr6ZfwHUkGQlBz8CVJ2qAlXRkQWsjyjYt1MTIjgTKQRBdd9dMku/J3Gv3UYYAU9I3yj091uZhSxXz9fkCmx5AsfQcWvlGx+TltWoDUd4TqfWIUJDeS+MBcin2HIAbyTwY7XPbcqJb5viGSNlUZMFEdzeyq86W87gfx5pml/wZd1L79whY3B6PEIOHLQEbVAWwwBXvimEFrdLtQi2EKLNoesGNF1W/8NM4GnhjIXgGic3P0B+rhU+9EhcoI+Y/XH5p3N40qTYNz1lGV+Q==; 31:GWj86ArRBVUJAw/agYcyoMzxahB4aORI1Ah6VTXQsDoRvO7ySBhbqh7Ny5292v4C+JFUsklpCgS5Uf7581K+R26BR+s66a9Nf7WMt/WKrMsTXNQX81opm6VDxVbGhGW8dWTHwjikjr2NEKfwpmN3v5oNB8TpxUJ3SHI6aBZwXDnYmQCV/PJ/6rexnuj2wmGYdh5VkJaWCVlCCs9Vszc7Q62TRXPQDX0zUO5PBq6xjTs= X-MS-TrafficTypeDiagnostic: BN6PR07MB3460: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3460; 20:fNgqqKMVIYOHMQDumi0+tKN/jUxyJdUTg9X9h0T2qibPGLrzqmg3fhBmv/mHVeoqnGBLHKDbScCJc0D0mKge6q1Aw6QQGt2zEWLaOI/b2qOkQH4O99xKpXI/WL8ZVBCENaIGmu0npm4kChfkV5AnHrXux1ROvH3auDdFKIq3Nw9R+2NQGrIXRMjUuuTGh89vLQUeIzLndDnjB2uGJ6JIeCVVVepY3QRW16uFHQ1++Z4xc6dFr/O52MAesDXh6qnpt3QqynGUxhsTGIl5ZJwcGeFJm2GuX+b2W9TxAj63NlKmQVbMq9RNRsrMi34RyfKkz25ZUhY3MNuf6tV2tHFN2RyLzngPULQcvUyz8pTNfSbkjAQlEzhwAPh2ObU/gGH5e+DbcYh3fNaZgOVnbRnhOFQvZ+nHClYZiVr6DvEyJpRnzfYLvTtsYy3Rq3vAhF2VvRGN6BmMDXlT/WfnpmC0VmuTM6hKsmbOGxlDE7qPjvH3ZS9voXK0qPn5eFWpHLU6RGfHDzn6tKGJN1erwCAXaCN3y/E1Xom86H5r5a3walGjnekrtXFjQeNf35K87GWZ+Mlkb+2k8AxtzQQk6Uh1qr6wlivZUXn26n7XltLaOmk=; 4:AGEXyfiJS0NDeX+CMAg8zjnRReXhTvxBkaILYkEPwdcw4oX8QBoTWauiabXAzpHt32+ouj6v6DvU5XPd1jGphW09bVz/We8FdCbcg1tjscLnhYOXTSSoS1O0HpliCrPcxfdEeLXfFDK46zH8okq7B0q+A4uZ4fHnK3fM/fbnGMrZa7QiLg3xbAao1n389gKgOY3X0jlrtVkzE68gzWNKKIziVj0e9DiN8Us2C75VKBUby+N/kKRBfhnpquz4Ku466tVDgBFbseU9gP1JhAKHXnVSfh5yBKM5VFqvfWwvcCU= 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)(8121501046)(5005006)(93006095)(100000703101)(100105400095)(3002001)(10201501046)(3231020)(6041248)(20161123558100)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR07MB3460; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR07MB3460; X-Forefront-PRVS: 0468FE4A2B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(346002)(376002)(189002)(199003)(72206003)(478600001)(8936002)(3846002)(6116002)(6506006)(6486002)(7736002)(66066001)(50226002)(97736004)(101416001)(6666003)(2906002)(8656005)(305945005)(189998001)(8656005)(5660300001)(16526018)(76176999)(50986999)(33646002)(47776003)(105586002)(81166006)(81156014)(106356001)(2950100002)(42882006)(68736007)(4326008)(107886003)(316002)(16586007)(50466002)(48376002)(5003940100001)(25786009)(36756003)(53936002)(6512007)(8676002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3460; H:localhost.localdomain; 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; BN6PR07MB3460; 23:ldsVIrap/QYgZglsDV+3TybrrjSnqKjwdlSE+PFPv?= =?us-ascii?Q?vOufF2HlyJdkpqTWOxW+mIDw6YeGnhn1YsTnLdQ4JFyLCOVPyillbiud5dZb?= =?us-ascii?Q?EM1LSuWiWG3b+DA8HoX4C1UR03HeDvxNJulz6NAEd1kVd1cCEo2UihuN+m0V?= =?us-ascii?Q?VYs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M X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2017 09:16:48.1244 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4aed15d4-5ec5-4618-f227-08d5192da08c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3460 Subject: [dpdk-dev] [PATCH v3 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: Sun, 22 Oct 2017 09:16:55 -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 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