From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by dpdk.org (Postfix) with ESMTP id A11B94C77 for ; Fri, 3 May 2019 19:25:17 +0200 (CEST) Received: by mail-pl1-f195.google.com with SMTP id x15so2994556pln.9 for ; Fri, 03 May 2019 10:25:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Nx17vRmNuik8ALLa9BMVsahPMcMDaaRmxLi8wsm1p6k=; b=o1WB9bmOLywhxoC8IeLyeTzdUid5ZyxYdDU7IrMZzUGKtkWfRbLCmiERj6UmFJTR7Y hlbk7X84DkypuCBMbf7WbOBvu76j6Mvvwd+Drt9k1PPjSERE8i+au5gsHvHQ+6jbsCJ0 DpoSOvAvgcvy6Kcz4DRgvaKEh/pr5hGKojOPWYt4AiFNR/+G7gqCLhUNmfewlV7YMRru 0flyf6P5+6Wffba0ZFw2BqerrwtJ4af3isLgSQoQKQFZPmVSkODgGA9zR/F6rxm3eY9f KTJ0j5Vu3Pbp7NPkJ1G8Th+0M2p3ZEYg6N1O9JLSOPeM80aXJJS3QsRe5gaAzmWS3in0 F+FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Nx17vRmNuik8ALLa9BMVsahPMcMDaaRmxLi8wsm1p6k=; b=g37AKJHobTaV+jcPo4eamvwyjmQBsXMr2s7GN1OOcemREfRE2+sm1Cro61GoLAOn7W jwWcSL8nrl1GpmV/sm2V+RxCTw0Ynlt80qx/NXlyVr7NnZ6QPPjEHjv1VGOmhvI7pNVN flnypjrhPyYg7LWDwvMebj3VK7dFA1xzH30aDXDW8rDJxM51TjI88NsxlM+pjFuWBENm 43HPpxDWJZTig5EchsgiuLxqBovGpXsjcovItz/zNa5J6SZu1OMUln86b1DED/ZKJHc5 +7uFr1GAIVLLKdPbVJ0TuGqcEUdAbNAqWnoIkLKK1Jxn/8TnEA6a7czY8cEXv9tZUR4J jEJQ== X-Gm-Message-State: APjAAAV1C3ox8vkGEcDO5YEeMx267GESxLHy1o8khAqlpoYWox6YBt+J SHNUvAeozOWnFj0ZSNrawbUQAq0UsFs= X-Google-Smtp-Source: APXvYqzTiXE0jSB9naeb4W211UPtrhGybNmhfTwLx3y4rV2k/l+z7huMtfpHL95gzNoAQvt6H4d6Bw== X-Received: by 2002:a17:902:e402:: with SMTP id ci2mr12191359plb.154.1556904316489; Fri, 03 May 2019 10:25:16 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id t13sm3109578pgj.49.2019.05.03.10.25.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 10:25:15 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , David Marchand Date: Fri, 3 May 2019 10:25:03 -0700 Message-Id: <20190503172507.5272-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190503172507.5272-1-stephen@networkplumber.org> References: <20190410171603.8979-1-stephen@networkplumber.org> <20190503172507.5272-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 1/5] eal: use unsigned int in rte_lcore.h functions 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: Fri, 03 May 2019 17:25:17 -0000 Purely cosmetic change, use unsigned int instead of unsigned alone. Signed-off-by: Stephen Hemminger Reviewed-by: David Marchand --- lib/librte_eal/common/include/rte_lcore.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/librte_eal/common/include/rte_lcore.h b/lib/librte_eal/common/include/rte_lcore.h index be757a32e085..705594acbb5e 100644 --- a/lib/librte_eal/common/include/rte_lcore.h +++ b/lib/librte_eal/common/include/rte_lcore.h @@ -137,7 +137,7 @@ rte_lcore_index(int lcore_id) * @return * the ID of current lcoreid's physical socket */ -unsigned rte_socket_id(void); +unsigned int rte_socket_id(void); /** * Return number of physical sockets detected on the system. @@ -177,8 +177,8 @@ rte_socket_id_by_idx(unsigned int idx); * @return * the ID of lcoreid's physical socket */ -static inline unsigned -rte_lcore_to_socket_id(unsigned lcore_id) +static inline unsigned int +rte_lcore_to_socket_id(unsigned int lcore_id) { return lcore_config[lcore_id].socket_id; } @@ -193,7 +193,7 @@ rte_lcore_to_socket_id(unsigned lcore_id) * True if the given lcore is enabled; false otherwise. */ static inline int -rte_lcore_is_enabled(unsigned lcore_id) +rte_lcore_is_enabled(unsigned int lcore_id) { struct rte_config *cfg = rte_eal_get_configuration(); if (lcore_id >= RTE_MAX_LCORE) @@ -214,8 +214,8 @@ rte_lcore_is_enabled(unsigned lcore_id) * @return * The next lcore_id or RTE_MAX_LCORE if not found. */ -static inline unsigned -rte_get_next_lcore(unsigned i, int skip_master, int wrap) +static inline unsigned int +rte_get_next_lcore(unsigned int i, int skip_master, int wrap) { i++; if (wrap) -- 2.20.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 36821A0AC5 for ; Fri, 3 May 2019 19:25:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 42A291B10D; Fri, 3 May 2019 19:25:20 +0200 (CEST) Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by dpdk.org (Postfix) with ESMTP id A11B94C77 for ; Fri, 3 May 2019 19:25:17 +0200 (CEST) Received: by mail-pl1-f195.google.com with SMTP id x15so2994556pln.9 for ; Fri, 03 May 2019 10:25:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Nx17vRmNuik8ALLa9BMVsahPMcMDaaRmxLi8wsm1p6k=; b=o1WB9bmOLywhxoC8IeLyeTzdUid5ZyxYdDU7IrMZzUGKtkWfRbLCmiERj6UmFJTR7Y hlbk7X84DkypuCBMbf7WbOBvu76j6Mvvwd+Drt9k1PPjSERE8i+au5gsHvHQ+6jbsCJ0 DpoSOvAvgcvy6Kcz4DRgvaKEh/pr5hGKojOPWYt4AiFNR/+G7gqCLhUNmfewlV7YMRru 0flyf6P5+6Wffba0ZFw2BqerrwtJ4af3isLgSQoQKQFZPmVSkODgGA9zR/F6rxm3eY9f KTJ0j5Vu3Pbp7NPkJ1G8Th+0M2p3ZEYg6N1O9JLSOPeM80aXJJS3QsRe5gaAzmWS3in0 F+FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Nx17vRmNuik8ALLa9BMVsahPMcMDaaRmxLi8wsm1p6k=; b=g37AKJHobTaV+jcPo4eamvwyjmQBsXMr2s7GN1OOcemREfRE2+sm1Cro61GoLAOn7W jwWcSL8nrl1GpmV/sm2V+RxCTw0Ynlt80qx/NXlyVr7NnZ6QPPjEHjv1VGOmhvI7pNVN flnypjrhPyYg7LWDwvMebj3VK7dFA1xzH30aDXDW8rDJxM51TjI88NsxlM+pjFuWBENm 43HPpxDWJZTig5EchsgiuLxqBovGpXsjcovItz/zNa5J6SZu1OMUln86b1DED/ZKJHc5 +7uFr1GAIVLLKdPbVJ0TuGqcEUdAbNAqWnoIkLKK1Jxn/8TnEA6a7czY8cEXv9tZUR4J jEJQ== X-Gm-Message-State: APjAAAV1C3ox8vkGEcDO5YEeMx267GESxLHy1o8khAqlpoYWox6YBt+J SHNUvAeozOWnFj0ZSNrawbUQAq0UsFs= X-Google-Smtp-Source: APXvYqzTiXE0jSB9naeb4W211UPtrhGybNmhfTwLx3y4rV2k/l+z7huMtfpHL95gzNoAQvt6H4d6Bw== X-Received: by 2002:a17:902:e402:: with SMTP id ci2mr12191359plb.154.1556904316489; Fri, 03 May 2019 10:25:16 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id t13sm3109578pgj.49.2019.05.03.10.25.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 10:25:15 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , David Marchand Date: Fri, 3 May 2019 10:25:03 -0700 Message-Id: <20190503172507.5272-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190503172507.5272-1-stephen@networkplumber.org> References: <20190410171603.8979-1-stephen@networkplumber.org> <20190503172507.5272-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 1/5] eal: use unsigned int in rte_lcore.h functions 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Content-Type: text/plain; charset="UTF-8" Message-ID: <20190503172503.LSDeKIKiYxBWLDn5zSfBKbvpb4Arfh9xraqB40jrVS0@z> Purely cosmetic change, use unsigned int instead of unsigned alone. Signed-off-by: Stephen Hemminger Reviewed-by: David Marchand --- lib/librte_eal/common/include/rte_lcore.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/librte_eal/common/include/rte_lcore.h b/lib/librte_eal/common/include/rte_lcore.h index be757a32e085..705594acbb5e 100644 --- a/lib/librte_eal/common/include/rte_lcore.h +++ b/lib/librte_eal/common/include/rte_lcore.h @@ -137,7 +137,7 @@ rte_lcore_index(int lcore_id) * @return * the ID of current lcoreid's physical socket */ -unsigned rte_socket_id(void); +unsigned int rte_socket_id(void); /** * Return number of physical sockets detected on the system. @@ -177,8 +177,8 @@ rte_socket_id_by_idx(unsigned int idx); * @return * the ID of lcoreid's physical socket */ -static inline unsigned -rte_lcore_to_socket_id(unsigned lcore_id) +static inline unsigned int +rte_lcore_to_socket_id(unsigned int lcore_id) { return lcore_config[lcore_id].socket_id; } @@ -193,7 +193,7 @@ rte_lcore_to_socket_id(unsigned lcore_id) * True if the given lcore is enabled; false otherwise. */ static inline int -rte_lcore_is_enabled(unsigned lcore_id) +rte_lcore_is_enabled(unsigned int lcore_id) { struct rte_config *cfg = rte_eal_get_configuration(); if (lcore_id >= RTE_MAX_LCORE) @@ -214,8 +214,8 @@ rte_lcore_is_enabled(unsigned lcore_id) * @return * The next lcore_id or RTE_MAX_LCORE if not found. */ -static inline unsigned -rte_get_next_lcore(unsigned i, int skip_master, int wrap) +static inline unsigned int +rte_get_next_lcore(unsigned int i, int skip_master, int wrap) { i++; if (wrap) -- 2.20.1