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 D2170A0C44; Wed, 9 Jun 2021 01:03:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7146A410DE; Wed, 9 Jun 2021 01:03:55 +0200 (CEST) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by mails.dpdk.org (Postfix) with ESMTP id C491440FDF for ; Wed, 9 Jun 2021 01:03:53 +0200 (CEST) Received: by mail-lf1-f45.google.com with SMTP id p17so33953896lfc.6 for ; Tue, 08 Jun 2021 16:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9oGqoK5PnQadRw8IBj9hf9VkrP6NooD9H+XhudE4Spk=; b=d+khYGCYMx9F9liTmNp3BGeca7BnnBSCiXRY5B6HFcnuNO3KKNwjAps8KHrMder3cI g3wGO322nb9un8py+6Jbd1UpupXHlKYSNOgVrTuUHTUxKU9v3ZBuyYZpw0Alpv+1zqSu 7foui+/X6sT8JiQRwiwHN51axcSKJthtvmDtmdMmi0wRo7NO66848uUgVlPOIXcGMnxN zOfynZkS31c2LCgnpqjyFuGQuyBLgQVduQHgsPx24n2PctfHW2PaAhD5hJVpYylbTDuq Fwebz5Q7j7kyblC9hzRXDq0pKzuHomkWnIQ0ulGmKKlyuNgNyW0AG/f6ewRN7OxtH+Ug kofQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9oGqoK5PnQadRw8IBj9hf9VkrP6NooD9H+XhudE4Spk=; b=Im1e5gd7EN88p/ZUuz9+PCaKaHktx0vfQVD7PnNWRM1baxyDVjEDSEXxwYv1tSZbQD Dw/sNjWqeHJ6rbrWpQSepXhLyj0mMaB85nQdfvnX/eIgq6RfhCVNJ7ZmxjtFGTWgWVpR ZBVqG15M9HD+JZnPf+YHH9ers8vJV+qifcjdKoD9RCg93dW2NRfyForvDJLvcCg2da8j znyg8d9xL/IENVpF34PH84oUrUrHlXlOQuUI6telvFG55GmShyj6GNQTWMLU8Og1RkB+ ploUJFZU7d8xVtCBc0UhEXkqxfd7FFlIXLIOGSR5hRwUUqhMc6a2eY10mnQTMgLjH4Fc wOXw== X-Gm-Message-State: AOAM533+kFF+W0yVY2IXyVZuAFThfkU5BRV1HXNsCSdwrsxjRfGPohz3 D6D1Wd2D/94xtgrQoi5dmIY= X-Google-Smtp-Source: ABdhPJxQIyXIKW3StFBJoE7rHTqTb3/f740Lu5PwZYkqkT2CbYXWrgjosI/TyBIaxueaJEsLWNFxww== X-Received: by 2002:ac2:5183:: with SMTP id u3mr13566189lfi.28.1623193433398; Tue, 08 Jun 2021 16:03:53 -0700 (PDT) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id f11sm129819ljg.30.2021.06.08.16.03.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 16:03:52 -0700 (PDT) Date: Wed, 9 Jun 2021 02:03:51 +0300 From: Dmitry Kozlyuk To: Narcisa Ana Maria Vasile Cc: dev@dpdk.org, thomas@monjalon.net, khot@microsoft.com, navasile@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 Message-ID: <20210609020351.14dd727c@sovereign> In-Reply-To: <1622850274-6946-3-git-send-email-navasile@linux.microsoft.com> References: <1622849908-5710-1-git-send-email-navasile@linux.microsoft.com> <1622850274-6946-1-git-send-email-navasile@linux.microsoft.com> <1622850274-6946-3-git-send-email-navasile@linux.microsoft.com> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH v9 02/10] eal: add thread attributes 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" 2021-06-04 16:44 (UTC-0700), Narcisa Ana Maria Vasile: > From: Narcisa Vasile >=20 > Implement thread attributes for: > * thread affinity > * thread priority > Implement functions for managing thread attributes. >=20 > Priority is represented through an enum that allows for two levels: > - RTE_THREAD_PRIORITY_NORMAL > - RTE_THREAD_PRIORITY_REALTIME_CRITICAL >=20 > Affinity is described by the already known =C2=93rte_cpuset_t=C2=94 type. Is it my client or "rte_cpuset_t" is surrounded by U+0093 (STS) and U+0094 (CCH)? [...] > diff --git a/lib/eal/include/rte_thread_types.h b/lib/eal/include/rte_thr= ead_types.h > index d67b24a563..996232c636 100644 > --- a/lib/eal/include/rte_thread_types.h > +++ b/lib/eal/include/rte_thread_types.h > @@ -7,4 +7,7 @@ > =20 > #include > =20 > +#define EAL_THREAD_PRIORITY_NORMAL 0 > +#define EAL_THREAD_PRIORITY_REALTIME_CIRTICAL 99 > + > #endif /* _RTE_THREAD_TYPES_H_ */ > diff --git a/lib/eal/windows/include/rte_windows_thread_types.h b/lib/eal= /windows/include/rte_windows_thread_types.h > index 60e6d94553..5bdeaad3d4 100644 > --- a/lib/eal/windows/include/rte_windows_thread_types.h > +++ b/lib/eal/windows/include/rte_windows_thread_types.h > @@ -7,4 +7,7 @@ > =20 > #include > =20 > +#define EAL_THREAD_PRIORITY_NORMAL THREAD_PRIORITY_NORMAL > +#define EAL_THREAD_PRIORITY_REALTIME_CIRTICAL THREAD_PRIORITY_TIME_CRIT= ICAL > + > #endif /* _RTE_THREAD_TYPES_H_ */ These constants are not used until patch 05/10 that removes them. Am I missing something? [...]