From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0047.outbound.protection.outlook.com [104.47.41.47]) by dpdk.org (Postfix) with ESMTP id 435121B1A2 for ; Thu, 21 Sep 2017 22:10:35 +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=GxHGgmadPd1KMpLfr9kYEsvc3XCN+BH51XWyPLw5Ruw=; b=CzCRuMbJ0s8eAfcfL+gh2jP0Xr0DDRNmFIhwwyGLwXJx8NAdbmAezVYNzt6LqlL0ZwDR/s2e6F0UxT/36HOqpLAJpREj2+oj/Xnr1tiCav4bw3vWlwp1Wv+FtFKzsTFk7uwXTLTif3S1Iy4CwPCYo5T6QFa0NJxa69Z+Ixu/ta0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (14.140.2.178) by BN6PR07MB3459.namprd07.prod.outlook.com (10.161.153.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Thu, 21 Sep 2017 20:10:31 +0000 From: Pavan Nikhilesh To: harry.van.haaren@intel.com, rsanford@akamai.com Cc: dev@dpdk.org, Pavan Bhagavatula Date: Fri, 22 Sep 2017 01:40:03 +0530 Message-Id: <1506024603-27266-1-git-send-email-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504692195-29420-1-git-send-email-pbhagavatula@caviumnetworks.com> References: <1504692195-29420-1-git-send-email-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: BM1PR01CA0077.INDPRD01.PROD.OUTLOOK.COM (10.174.208.145) To BN6PR07MB3459.namprd07.prod.outlook.com (10.161.153.22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7f0f5df3-25fb-4ba9-44f4-08d5012cd0d0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BN6PR07MB3459; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3459; 3:NUjaf+ny/B+QbHcU6quYt1LSLe+cSneI0PT5xezdvnmSmmo9UjuRRC7h4QzFAL9UJ5BAg7LO8pothr9XB7CiJfXW0gAt48PJTJVAQuoAOPPU7wYqn4Gl52DOgvulsrxZdMsIbWS2TvWvfBwVDBdIVG9jPg/hnj52GKd2AeiaXlCZqCTOlU5Vv+ET7mePTH4ddXg2JEYitJPUurOJq3nk3Yzvo0rBZEgabgBAW4thbzHD6NUhYEhIU7B0sQK81tVF; 25:vLWEC1ZhHjZBshRi+T6zZfuT3hJGJnKumfZFYGknY8U3/KuL9Mj/82dKJvcHORaL9f7BDPKkyOuNQiTZ7ifFrz2U5my7j8ABJJ4eXotjwgwIYaMQPZr/z+P+s3lS2E1WMvmXcpiqbUwlBC0lNe7wlGr+VI1o8IUTtm6HbHWZ8n3TJm5EJN/9in4wtLg1CIrQQ4JsuA5iakWECiWev74EkMz4GrEKBBw/od6F97FBEOV9dZxGxLVtWONtYJgGFQ/lAxjtXgbuc8UisrUp2bzNokwsrGTT/gBNh6o9yoe649PUQqkGqT3jTHxh2SBHStKT2XXcaJAot6GDpZRYOVao9Q==; 31:coeuBByhFt3vjgs+CkXXUyQO1pmcAWGeKyccsms0Z2s8kMAlWQupjmt3+4Eq7l9AKaEZ/L/K8O6/xzIJ1OIJHF5u0KlIOxoHwk/pMd4Jj9KsgWo8Vhil4IpS18hVSzrXsD58m1Yb42UHCsc37ROUG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Jk+xsLlQPWHSM= 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)(3002001)(93006095)(100000703101)(100105400095)(10201501046)(6041248)(20161123560025)(20161123558100)(20161123562025)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR07MB3459; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR07MB3459; X-Forefront-PRVS: 04371797A5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(376002)(346002)(199003)(189002)(107886003)(2950100002)(81166006)(76176999)(50466002)(316002)(8676002)(6306002)(189998001)(81156014)(53936002)(50986999)(6512007)(6666003)(16586007)(16526017)(42882006)(5009440100003)(106356001)(5660300001)(105586002)(5003940100001)(48376002)(8936002)(36756003)(97736004)(6506006)(2906002)(6486002)(7736002)(50226002)(305945005)(6116002)(4326008)(3846002)(25786009)(53376002)(478600001)(966005)(68736007)(72206003)(33646002)(101416001)(66066001)(47776003)(110426004)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3459; H:localhost.localdomain; 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; BN6PR07MB3459; 23:V2ENBTia6erSELTcMOr5gKgglAlLF40L6FfsrWKz2?= =?us-ascii?Q?DIsMdBjTXb/2PmLwviwCNsh4ILqhVGi3wR7CUURJjHlcgmeNfvyiWFe70Msb?= =?us-ascii?Q?Sx0sWK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6tdtnLZVAb0oqSRVm4Wq/Utq40nPzZioBG1gJwYj41jfl+mxoTnPXWtr1dONzyFBfHZE6WLfpSdtNOr1xZnPeKgEDi+d5Sv5UdbK/n70p5BQzRjp1WRDS64zxJhiaR69rlqy6lmlvqQt1zHs0KKvjcU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2017 20:10:31.5510 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3459 Subject: [dpdk-dev] [PATCH v3] timer: allow timer reset on service cores 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: Thu, 21 Sep 2017 20:10:35 -0000 From: Pavan Bhagavatula The rte_timer_reset function should be able to register timers on service lcores as they are EAL threads. Signed-off-by: Pavan Nikhilesh Acked-by: Harry van Haaren --- This patch depends on http://dpdk.org/dev/patchwork/patch/29056/ v3 changes: -updated the API as per the new lcore role API v2 changes: -modified the commit title. lib/librte_timer/rte_timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/librte_timer/rte_timer.c b/lib/librte_timer/rte_timer.c index 5ee0840..ec86744 100644 --- a/lib/librte_timer/rte_timer.c +++ b/lib/librte_timer/rte_timer.c @@ -432,7 +432,8 @@ rte_timer_reset(struct rte_timer *tim, uint64_t ticks, uint64_t period; if (unlikely((tim_lcore != (unsigned)LCORE_ID_ANY) && - !rte_lcore_is_enabled(tim_lcore))) + !(rte_lcore_is_enabled(tim_lcore) || + rte_lcore_has_role(tim_lcore, ROLE_SERVICE)))) return -1; if (type == PERIODICAL) -- 2.7.4