From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0089.outbound.protection.outlook.com [104.47.41.89]) by dpdk.org (Postfix) with ESMTP id 6610B1B1A8 for ; Sun, 1 Oct 2017 11:29:43 +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=g/i3Suq4xsjapv6yMpVbGoYS8USXu3oEh0a9KZ4LnOw=; b=lgOPg6etZ4c+FBQWdsYdne90GnAnX3nkTGq0FRL74H2nuEnIjZP5xvoF9z4U2broGrgcOczBz6zPaHpiLXeYpRDVy0BMEa8VErLcSiRRN9XqJVtCVlFhuLUIafChe0V84+wUuwh/I4a/2BdZD+areZDsgup+tPwvqG7eOcxvMAk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from localhost.localdomain (111.93.218.67) by DM5PR07MB3098.namprd07.prod.outlook.com (10.172.85.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Sun, 1 Oct 2017 09:29:39 +0000 From: Santosh Shukla To: olivier.matz@6wind.com, dev@dpdk.org Cc: thomas@monjalon.net, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, Santosh Shukla Date: Sun, 1 Oct 2017 14:58:56 +0530 Message-Id: <20171001092902.10842-3-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171001092902.10842-1-santosh.shukla@caviumnetworks.com> References: <20170907153042.30890-1-santosh.shukla@caviumnetworks.com> <20171001092902.10842-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0077.INDPRD01.PROD.OUTLOOK.COM (10.174.208.145) To DM5PR07MB3098.namprd07.prod.outlook.com (10.172.85.8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bc3b940d-9e4f-4764-32ac-08d508aef23a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:DM5PR07MB3098; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3098; 3:oDXHIlRmMhr3O4GkQLJGPKu1A7qxHnJHF2iZtAQk/h/wTVfQCy5VyecB+2gfnHDk/piygQltYmFpPDAE9kv2yBFWgy4AqfFlQfn4l53xto7zT1W+2SiqJ5rNOE0aizdE6Nl+LcQfGM9oulTrxSEH/dQmJr1Zlw6Ty4gMR4oEbwWf88tNA5CH1eZim9Hg0tsMuHkZc4smvU/SL75YmbLk/Sx4ziYp8h61rPeLCvCyBxAnCtLN/SfpdHqXSRbF9Sh+; 25:IuzLN6OrEZyou73e6vpCNSJsjqdJrft341cZj4ySKcLxQq5e/TlTNPp4arVeaA5IcV/O0V9e6lNvbZPEWT/QPMRvxmjTA7iSaqwQWsLVyeZt1zll09YpratGfXSsbHZljSHbX8mKgRp1T8wYstieLfCo6UxcUAyZXGj4EZur4qP3H0o/dChG+XmSS6PD8nkB4W3KNPT7ICM9dupKe3V2G+wu5/WgbCbwOAJ/zf8QVMEAVKA84QbaehyMNJY413z7NUN7rs1HuGuqotZt46wm2ZaVvRo8kj4ot/xPI9FSK9tT2q27laDAk0O7TQwxfNmPrSHeyR2LPpUE0M8LAZFcKg==; 31:k4Z+H3ULE39+rvhzR8pbwe5KfzP0YfNq8j5PFLUdCr0ZArCfVG9rllziST7Emd/eTfu6kXJm1XvvOPseypjh1Y64eQq7G8K0ps12cM4/b7JLcPp/KpXUcVVNxf54Qt6DLrbvVgrqcihyc8jKElhJ1Ez+pM6slJK6dTxGKBOCLYJBv1YX7PuL8WLVdfLiR4e5FdawLk4dI0ynP+9BSStsMUgP4ialB5NrrGjfj/zdfHY= X-MS-TrafficTypeDiagnostic: DM5PR07MB3098: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3098; 20:/uQb3Ez0eDT5iKq7IXt5WK5eD4U/H0oIqUFIgw42EE1n+iF8JTil8ZS7Gbx3kyUbJlw+98k2n+ZV9FvuY223h0rszPiUlzRrU6mIJqiFu0aeuM/wjAH+FHeGOE/uG6Iy9YXQf0etAl4TwLcS8QjSgKEIvjUYKb7g4VSQR2JRC5bICYY13/6BtOeh95lR9m0nUc+EcZaOcKBlKiwNtcDLVeEfgGqklVvLkVl+IxyL3OwoB6sYIEG9BUvLpIkoiBg5fXYm0taAcs4h3sOGPqITVptrhE6Q6PSpgMuD0JTdxWOnCE21NEprJOo4L5jelWn/5hVlM6CtB7bvCrWQrQM9A8bZCboNah7b1qIU2UkLjj98LJNHexqK4OE07LN6/WuXxUq4dPKpgHtX3HvhO72JOw1YUOOw6uanZzzMK+W5VVagjfmkwkf7h1/y7xlhQ0KSWNIVGnyfLnEjstvf0v9KjlUWqNpV74uOFrQoZY2uRbvImzBOvkNt5qzaLeHxE2PuCJGbJP7dqHKA51+NcIqNxO8fE0QZT1IACLBThlRXU/WwC4yZ2KB7AgCevRzAQNYJU6z9J57ujY1HQ1DljYizJBzy9Vv31sIDQbFQatgkjTY=; 4:buoFNXM2b5XEWCaKzi53mHsQKyVn3HBsKQdhHwTWwY16YKKNVm9qseSuWeXs3duasUhVvBalnIGZrGADTHDkxwj3b9CjvLKUHtJaJN7LPSY6oejYtIdyAScGFC5l5oxcxoVQ5povrmEJBC2S0y1+XF+xQyy5xnSWLKL4HsU4ByOsqRLErZ7o1WD3bZJYldFzf1Ma6BolybG8upFbx1NhIrhxHQfHhOTegwRspW7sDXuHM1VOUSXjjtly0aznnJxd X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(93006095)(3002001)(10201501046)(6041248)(20161123558100)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR07MB3098; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR07MB3098; X-Forefront-PRVS: 0447DB1C71 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(376002)(346002)(189002)(199003)(101416001)(478600001)(189998001)(106356001)(50986999)(81166006)(16586007)(81156014)(8676002)(72206003)(68736007)(42882006)(50466002)(8936002)(5660300001)(16526017)(48376002)(8656003)(2950100002)(2906002)(105586002)(66066001)(3846002)(6512007)(1076002)(36756003)(47776003)(316002)(76176999)(6116002)(4326008)(97736004)(53936002)(5009440100003)(25786009)(50226002)(6486002)(107886003)(6666003)(5003940100001)(33646002)(6506006)(305945005)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3098; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; DM5PR07MB3098; 23:E0X5eu1q/vPl0GOjzDUfyT9AFm2Ge0pCPor8xSyDC?= =?us-ascii?Q?3alX70d9Gk7PApkzwR4cBjMFyu6HlJv3PXo8XG9LieasUgD81BlMmWe4GO8x?= =?us-ascii?Q?YsmRarqdX/mKVdXQzoPxs06g9EknuDlgP3FmFQ3cv0F1P4dOQn1ALXQ+Tf9K?= =?us-ascii?Q?94RlEMxZaR1uTaiEmB6r5ruKQ4+etkrNNS9VcmwY8sgxH+3G78Lb4I+p8DLn?= =?us-ascii?Q?g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g?= =?us-ascii?Q?9TZftdoTq9LAqJkBpfHYd3th9U3OwbvCccjf76Q613dtaQ+sp9lFvsNs9Wby?= =?us-ascii?Q?LBHANkPvML+7R8=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3098; 6:NlZr2484yGZbNoHmmPnyx/WyGR56Aov23bV8oX5Mei9wJoYj1eWBgEvvSTT6x52gfCxE8vuca+qj38boNACEKHOkDjLn3eRZoDzN2g6p2F61fTe3iDuYbPvRT3NygMcQK8uO6QdSO2fV3nIOAKFa7WzBdUqb+qMmLGIkSVaRia+cdwHmSMzNkokfpDTDRm4hNaoPnOZcuaMFbODhQWO7xnsLgF5FyqRMtiUIxoabqRQ5GnoFCqRwuFiTPrqEG1w9appKY3eh80Zh0nNdM66nJpmlLS/ZXa874bsMbkLIXAOYkIBY7fvhn09C+kXUDQ32D5JPG1QHFiG5wDkbYkzksQ==; 5:JF1acYjt9/YNcniexLVV75rScnb68zqNKEuDqCYkUu+XD6HkLQ1LVLLZGEBClmr6Fzf5bua5lQMwrrA4KT0G80xa1/EYwGD7vuVUi1OZKdmkDDEL1zKhmu8hLzX0Zocz91BzLEpieQW4vo5rizmtGA==; 24:MHOj6R1YPgX9zAMr0L7sETnZWl1HVdBGYGFEkFJHbx2pJlyediPk4ZrGPOAYNMfPNuyGFqLD7DRiZm3n0bAnwhWhUER0qJE7DOjlyvP31jc=; 7:v5klUIUc4J45IWcjgeyQTZJIcak04aTkdysB6cLKyi6Nr/FlkIu3em4LgTNwrYc+sxzAgEFiGbgVOX6IDUzCaqT/q6MISVDwfTfusopFuDGus403wprPxN+DHB8uNWo0IeZICn+t3jYuBZekv7jfobQ0nmR1CzfpQeNkoAKP6z/jqbtykQS5lO4AqnRwURH+082wXyriSPp9cHyOECcJ0LLH9w+oMbfl4CUx5oTeoO8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2017 09:29:39.8624 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3098 Subject: [dpdk-dev] [PATCH v7 2/8] mempool: change flags from int to unsigned int 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: Sun, 01 Oct 2017 09:29:43 -0000 mp->flags is int and mempool API writes unsigned int value in 'flags', so fix the 'flags' data type. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob Acked-by: Olivier Matz --- lib/librte_mempool/rte_mempool.c | 4 ++-- lib/librte_mempool/rte_mempool.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c index 6fc3c9c7c..237665c65 100644 --- a/lib/librte_mempool/rte_mempool.c +++ b/lib/librte_mempool/rte_mempool.c @@ -515,7 +515,7 @@ rte_mempool_populate_virt(struct rte_mempool *mp, char *addr, int rte_mempool_populate_default(struct rte_mempool *mp) { - int mz_flags = RTE_MEMZONE_1GB|RTE_MEMZONE_SIZE_HINT_ONLY; + unsigned int mz_flags = RTE_MEMZONE_1GB|RTE_MEMZONE_SIZE_HINT_ONLY; char mz_name[RTE_MEMZONE_NAMESIZE]; const struct rte_memzone *mz; size_t size, total_elt_sz, align, pg_sz, pg_shift; @@ -742,7 +742,7 @@ rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size, struct rte_tailq_entry *te = NULL; const struct rte_memzone *mz = NULL; size_t mempool_size; - int mz_flags = RTE_MEMZONE_1GB|RTE_MEMZONE_SIZE_HINT_ONLY; + unsigned int mz_flags = RTE_MEMZONE_1GB|RTE_MEMZONE_SIZE_HINT_ONLY; struct rte_mempool_objsz objsz; unsigned lcore_id; int ret; diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h index ec3884473..bf65d62fe 100644 --- a/lib/librte_mempool/rte_mempool.h +++ b/lib/librte_mempool/rte_mempool.h @@ -226,7 +226,7 @@ struct rte_mempool { }; void *pool_config; /**< optional args for ops alloc. */ const struct rte_memzone *mz; /**< Memzone where pool is alloc'd. */ - int flags; /**< Flags of the mempool. */ + unsigned int flags; /**< Flags of the mempool. */ int socket_id; /**< Socket id passed at create. */ uint32_t size; /**< Max size of the mempool. */ uint32_t cache_size; -- 2.14.1