From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 08658A0C47; Tue, 12 Oct 2021 18:20:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C5C0C410DB; Tue, 12 Oct 2021 18:20:52 +0200 (CEST) Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) by mails.dpdk.org (Postfix) with ESMTP id 2BC424067C for ; Tue, 12 Oct 2021 18:20:51 +0200 (CEST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id CAB0F580BA7; Tue, 12 Oct 2021 12:20:50 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 12 Oct 2021 12:20:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm2; bh= aj7XuUXvgfRptI9p+ayPXoc3h51ajHETwOoEyvxpjes=; b=K0o6yzHi2zPgs3Qj M05BKq8zcyfYRo/QVEIUnuXg1439Z1BnLTY6m89QUBKN0OXHYtGGludNVFIpu3+v imQFUk1LqIifMhlCnK253rrrFOQorYC71KH0kFbNC5M3JaAV977zxPkj6ezfJlEM V51YygIthBPyd8mFyhQczpHMLMPdle9zVc+cznIx6gSplOlYX5oJV+I8qCI6wucR tt2sGNalDhsOu/yYc5bdeoZilrXomnbbtNDL3mNLCek/HMNIrwAQr6enjwsmbEWG 3r8eVv1hEkePXtua4w+RCK32HZdsCrMGgDbdb+0LgcE2ANtSolwcXOlKtnfILEVT Ts+dBg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=aj7XuUXvgfRptI9p+ayPXoc3h51ajHETwOoEyvxpj es=; b=kf38cuueNjAmfMWUkxkLZY7KO7u71jr/wJSmRWH3UGvMaLXqVdb/us7mn 7HaYeYJlEi57XodtocKYwckoZtkvtT1xsfAtaQMJRdJowf7okV/sUOmPtq2V0OLP wDPYZ+VorXqFARVrFJlJORmMFaGpde/Jv9U5jJb5sInPhds91TCZA6lFHbXG/8y4 udpf9ECORuBWk8Xsbn5WI2MMV+Pqs9j4yd41xbRfHo9T+/jaGcUBuNpF/WZRVZFW s6HMNB8KubXv6nRRgPhdQnJ+il6lgVtmzGFAT/LCahhmH/6GUhGuQ7HAVk32WOq8 PZ5Bh6bqA/TwJiHmtmumv8fEtkVSQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddtkedgleejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepudeggfdvfeduffdtfeeglefghfeukefgfffhueejtdetuedtjeeu ieeivdffgeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 12 Oct 2021 12:20:47 -0400 (EDT) From: Thomas Monjalon To: Narcisa Ana Maria Vasile Cc: dev@dpdk.org, dmitry.kozliuk@gmail.com, khot@microsoft.com, dmitrym@microsoft.com, roretzla@microsoft.com, talshn@nvidia.com, ocardona@microsoft.com, bruce.richardson@intel.com, david.marchand@redhat.com, pallavi.kadam@intel.com Date: Tue, 12 Oct 2021 18:20:45 +0200 Message-ID: <2297253.1LESC80QBq@thomas> In-Reply-To: <1633765318-28356-5-git-send-email-navasile@linux.microsoft.com> References: <1633732841-17873-1-git-send-email-navasile@linux.microsoft.com> <1633765318-28356-1-git-send-email-navasile@linux.microsoft.com> <1633765318-28356-5-git-send-email-navasile@linux.microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v16 4/9] eal: implement functions for thread affinity management X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 09/10/2021 09:41, Narcisa Ana Maria Vasile: > From: Narcisa Vasile > > Implement functions for getting/setting thread affinity. > Threads can be pinned to specific cores by setting their > affinity attribute. > > Signed-off-by: Narcisa Vasile > Signed-off-by: Dmitry Malloy [...] > +/** > + * Set the affinity of thread 'thread_id' to the cpu set > + * specified by 'cpuset'. > + * > + * @param thread_id > + * Id of the thread for which to set the affinity. > + * > + * @param cpuset > + * Pointer to CPU affinity to set. > + * > + * @return > + * On success, return 0. > + * On failure, return a positive errno-style error number. Usually we return negative numbers on error.