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 C090BA0C56; Wed, 1 Sep 2021 19:16:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5AEE041136; Wed, 1 Sep 2021 19:16:16 +0200 (CEST) Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by mails.dpdk.org (Postfix) with ESMTP id BF271410E9 for ; Wed, 1 Sep 2021 19:16:14 +0200 (CEST) Received: by mail-pf1-f179.google.com with SMTP id e16so346065pfc.6 for ; Wed, 01 Sep 2021 10:16:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tLNMoc5wczGJYAD/BzstLQfsHD+piNAFIBEpeML20fc=; b=PM3S3It8gGLtTZC5PqbltO07D4Wc/qUovyrZk5cvTg2x6bU7oUaociKY8V1EWBnCYN 905l74CmgVh+nvGfwudrQShHszW2OiGdwyE4AdJ0wlq/6IoT5z1YQk5HJ8g8yNCeySxU 5E2/k3QbjU5mw+vSOtILktk6putmcwVuSO2v8Y96iqDuKGC4ZKwJmtnqMFLWi73G22/C BiFXqCUDl6NSnsK9RjVO3v/OHbuVIavZlNfCv7k8T6/UWlpO1UBfWWNCAQhwPZawoGlP y6ny/jqGUPAUSN+4toFriLoNViw8yyGMyAWOw9atRqWgA8h95CLLjBS6oLGQZNFbN9lp smJA== 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=tLNMoc5wczGJYAD/BzstLQfsHD+piNAFIBEpeML20fc=; b=gOLmHRY8FRhiSxN4Mh8J1Ga7OKqACuNUNz0N13LBgOdoP96Xq3skX7lgZ7xC5BO0G/ x/rSuAOB6tTiXRraWv6IdYSO/XvAh2lKj0Fyl+2vEL6XTrz4AuYjXDSy53aT8bhuwCms 6NkQWqlt1ow2mms50Jx4hXzcXl3eVyONsWyg2TJCgfwFRTVLJZtfSfJp15fqfTlY/q+h g0SqYnaQs6Cgb7UxEFKP8JLCGlWSAG/9MkqnerxGhbAWRYbmSfx9ywcZcAGGhVhX1Q5D WQ5Q9JNXgUgqj+UPZQ2MuLwC6I8Dgh8nuBH7GLQvQqqBxZhVRhsSABYeplxYrSaBZQRU ZfSw== X-Gm-Message-State: AOAM531BLDXaXVNX5BjLwMprLVXT/vC59O2NqDobzUfyqnPTeOpUQbgp yfZaeXMlrIuh02+DaLHNPl3Pjg== X-Google-Smtp-Source: ABdhPJyW5lzx7ChzXQVZU0tgqRkjoo5y6qN+TBxUMZge8dbaUMtzfm2pfuwLcfH8EMRfyvCBRzkujA== X-Received: by 2002:a65:5887:: with SMTP id d7mr121788pgu.285.1630516574004; Wed, 01 Sep 2021 10:16:14 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id b16sm90395pfr.138.2021.09.01.10.16.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Sep 2021 10:16:13 -0700 (PDT) Date: Wed, 1 Sep 2021 10:16:11 -0700 From: Stephen Hemminger To: Andrew Rybchenko Cc: dev@dpdk.org Message-ID: <20210901101611.260d79bc@hermes.local> In-Reply-To: <057efbd9-f3ec-b4c7-5add-fdf7baeebbee@oktetlabs.ru> References: <20210831200839.93556-1-stephen@networkplumber.org> <057efbd9-f3ec-b4c7-5add-fdf7baeebbee@oktetlabs.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] eal: make rte_lcore_cpuset and rte_lcore_to_cpu_id stable 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" > > /** > > - * @warning > > - * @b EXPERIMENTAL: this API may change without prior notice. > > - * > > * Return the cpuset for a given lcore. > > * @param lcore_id > > * the targeted lcore, which MUST be between 0 and RTE_MAX_LCORE-1. > > * @return > > * The cpuset of that lcore > > */ > > -__rte_experimental > > rte_cpuset_t > > rte_lcore_cpuset(unsigned int lcore_id); > > I'm wondering why negative lcore_id is supported above > with special meaning, but not supported here. The DPDK API stability in this case means staying bug-for-bug compatible. I.e passing -1 as unsigned int results in UINT_MAX which is invalid.