From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0056.outbound.protection.outlook.com [104.47.42.56]) by dpdk.org (Postfix) with ESMTP id 6DE88108F for ; Wed, 6 Sep 2017 12:03:41 +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=/BcXBFpc12hlsbIktSL6M8SKDraRpViL6ZejXxzph2w=; b=hxkYI4dSQlMNqX61ESkrmlmFrNLUMC1lUGiX0JA5VppIxZfJTbTVboGc+k0YBd7wc5l3mY0ew7fE+Q4WlhM4FQuLzucYRTfzygC7h+DUR5uCSRziX8bj3nBGAcbrnZDHv3sFvaw+vpKl2OLi5OMr8p5Q8AbZmwOChLy8hfRDIMc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from PBHAGAVATULA-LT.caveonetworks.com (111.93.218.67) by BN6PR07MB3457.namprd07.prod.outlook.com (10.161.153.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Wed, 6 Sep 2017 10:03:37 +0000 From: Pavan Nikhilesh To: harry.van.haaren@intel.com, rsanford@akamai.com Cc: dev@dpdk.org, Pavan Bhagavatula Date: Wed, 6 Sep 2017 15:33:15 +0530 Message-Id: <1504692195-29420-1-git-send-email-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (10.174.214.25) To BN6PR07MB3457.namprd07.prod.outlook.com (10.161.153.20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0e3df437-6658-41a5-9aee-08d4f50e8c0e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BN6PR07MB3457; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3457; 3:MkOPwDfhBRodWCTlVmvVIN4A40KXDnkbCQ/t/zhaupQERiJmsscEGlXMJ9FHQD4HJzBKipo0KlPhP2zFoZ9eGbLYpGAtGvfyX3XZIx6VYoZK8DkCWQssksISH0Q55VaIJGrgYnhKR1JqEYeW9pYJn2rGoaCc0wlaCM8j9e4RAxCkeMHPTPwlRgmA0TAfJZqEWAIGrXKyKWeLGGGakMSgEAw82U7atJMzPF1d93l1ga4hsgsQ2G3PDIfDLNd7VPq5; 25:0RXV/IbrWVT8xJ5pFIKZYVL/F3MerQ2ftksw6/yO+AdDjaK/vMiLPgrNn2za2ZNfqbawt/OBrh0BC/IdM/oNVz+sGEVPZvmY+xNvV4tgoa4leiHXaC9vRQaNX9ROrufmYuvaV4ftK9mYc6VEtf7y43omU3DLLTzWRv4MKwKZu96yyXvErBFCqNL3XEXG8QaTFJ4S2PRfYFWKqTPD77DMmow2i+qNKyXc9ytUXHzqtUFqxHkptE32AF8j0CGSr/MDYshCr1PDSMA4yjhcl9IJritvraVMck0vKt58PjiF//SPqIGrKiVL1oc2d/YDTrdCDj9DKd4p/9dDItFtNLbPMQ==; 31:0fJ+40cjWeFQ96aZtiZhNxTcLpRSwDoSRC9Vp7QnFHjMUA9henL7MyuTkv8ms/7842zIKlaquyCYL2UdZ7Fsmnmkv6k7KBS5m2WOHjnwj23e/bmTpulH8ns4QUfUV2ihUYJG2tNq2XyfBaKIA2m8Cj9RTFB9HMFGxtV7nYBKwPCLVsGPDVbbyGBkMVNhnj8g3v2kDPhqwgFlqzUNnFWJHdImboEiYwx3Xzg4SLef5uQ= X-MS-TrafficTypeDiagnostic: BN6PR07MB3457: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3457; 20:I87Rjen3+QRwI63Gd4/4yKrV/eUk9gAlrRqKkriMofDzrmrdOrnimUlpw6CRUYrpDwuW3cYzmVrpycvs9PEQWwp3UT4Juoh8sGitj4XBZtE2av1oFi041VfyH461Ao9Ga9k2muswCwYRZ5ffSsES9Rn5IOEvE6Q2xOOsKLL0abs6r0VYU3RulQV0shpYhjn9fYAEEYmcDpWG7PrMhfChaKyERTdZjM/lPNAsr29yaFucJZQ0WoNtuIG4HCvkj/MWmARCEqm6fOUv9QvbSCkSuPJSu/2OJCkM7iRrh565JHGo8O78IWK+j6DIiGMoBl+eRXIyW/uZ6KiJsB9cAZSut08sw9lTTACDGNqwMMGLLc1yeK37eqUPa3Au/veAZf1nrUjyB5iA22nJ+CmsMGDyH8CBrv6GHyTNgaI/Yae4+s7vAbdyodgUO1kQHuNGcMHm4OGPnVgcUk5JaAOBlABvFERIU7PjU9CTPKMpDxArZk70f5EU4vfzNdsXYXq3+7wpgsESHlRpocHK3pKDurQdJeT6vgkIcvmOm0UqyFXs+jbFD3QwEZBMHu0ApgJ1gAJRKHU9a+9R+bSpFlPs8nF1EN8cE4wPDKndHLwTrbMtKt4=; 4:+PTkZasvf2+QaJzFCpax0GdMKUQ7LHBeI2/pyLfn32HKHdUDr2176JpVidbVywSTAmAJKenTsRJ6E/uvswiAXnx5lNhw80IyldZPUD2tp/Zbm25MMpu6nzvayhz3xrls0rHvSq16o4HG72PbFE1gG07ztCGK85dZ81NABvMLDaUsoB4dEw0n6i+mndz68BGS29KczhTXGi9ZeSHmINi2ZLccLJo/5xytOvjolXA3KfnZiu+6AUetzwegz2Rcvzn77HeL2yAwq0yPTnJWo8aopZvx7hO9yTNYDs9kPub0m0A= 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)(100000703101)(100105400095)(10201501046)(93006095)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR07MB3457; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR07MB3457; X-Forefront-PRVS: 0422860ED4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(199003)(189002)(48376002)(50986999)(36756003)(6506006)(47776003)(53416004)(101416001)(66066001)(33646002)(105586002)(106356001)(7736002)(8676002)(72206003)(81166006)(966005)(6666003)(42882006)(4326008)(69596002)(50226002)(42186005)(6486002)(8936002)(305945005)(68736007)(25786009)(81156014)(478600001)(53936002)(2906002)(189998001)(5660300001)(3846002)(5003940100001)(5009440100003)(107886003)(6116002)(53376002)(50466002)(110136004)(97736004)(6306002)(6512007)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3457; 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; BN6PR07MB3457; 23:1/ZCGde6nE5R1cO9IqQD1cL18I8KBIYyAkJ2WjUtA?= =?us-ascii?Q?CDIU2H2ssHHX9W94940RDCkEQCppAS0uxFsDca33mhxEZrot7klMs9UQmhqT?= =?us-ascii?Q?MIpC00FAO8EzSTmq4bUxIDUPM27+Go/zIC+cbHohidkOYr6Wd8AAqfJMyCw7?= =?us-ascii?Q?8RAK+sothneujDTEC8/+bySxAxp8PFKyjdN0QAzjLv8OgF4n/sMV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MqhLWDN/TAIKlcP58QaxHzUZw2GgGpEmtp?= =?us-ascii?Q?0fVy1ox5fdGJRIo+5+hz4uOwYBLVr6g?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3457; 6:nDYV86HkZ9tlgd0h2EVgTkQRqIouCtpIT4n01o/P17pG6RQSxH2SaPfP0UML5TSN4vIIiICkxkQ/O4bFtvN7TVimAbyJeYNY7d7xW9kj+0D0UB8UKUUGhB9SDLTVU2V0BvZbwXmZud+bhQoNQQudbwpHREsi1aCFyn8uYSa7BdF2JCrp/sX/joUjS9jcLr4xVil9F4otzSIGtOMdRqJb/Oh25CfoM0aB8LnUgIEPT1h8sR2eGih5B+Lobk152hqdHxidiBXbrS0/1Z83xBrksjvklI5OPCnAPf3/2tA6oZKJCW3d0Kly1OYPtfsGPY1mfPHNoPpoolXVzdm4KEerDQ==; 5:fzNOaUgxBk8VqTVTGKpvFDMAsARytuKgLYiQq2zuY+2wPGCNuSDmLPclYzKiLGA0XAEHzGMq4n+z/TeWNJ+4WQl+MKJDbZNnb/m4xPgpEs5C3bBczT+uD+o3vr7V9y8yIQ9pOsMt+bAiyD1DdtMxew==; 24:l/oVCpvq1tp3AYCP8LNQaBQS0SeLOLS9D3K9SPKYH3r3iMIF9of06p5eCHlajzA+SIZSu0+hz3g5wx+1ftIwYMmnPPjZPAq08vQmLoeGMgM=; 7:/Ei2+D1splZvphZBa1gq3r9KyCTdMzpHk6vfgEtpTIm4Pn8sRbe/Pw23XTe1zLIcmSP/rQKJeieAMJE92jqWhwNgvyIK1LUDqgf9aWkmoZQEJP2ERyrDQLBBUSjRyGO45a5VoKt5uYbLSyhyLw6v2/TOmjcXy6vbl7J9i6ZFKPeiCGvsbIB3HChZ1eAUljBg3FLmGvCH7wLWT3FBolWqkjM9XaKwuybjVfL+2BFMHsk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2017 10:03:37.7165 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3457 Subject: [dpdk-dev] [PATCH v2] 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: Wed, 06 Sep 2017 10:03:42 -0000 From: Pavan Bhagavatula API rte_timer_reset() 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/27818/ 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..a5a045c 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_is_service_lcore(tim_lcore)))) return -1; if (type == PERIODICAL) -- 2.7.4