From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0063.outbound.protection.outlook.com [104.47.33.63]) by dpdk.org (Postfix) with ESMTP id 81B80199B8 for ; Thu, 7 Sep 2017 17:31:33 +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=KCChYwahjDcOk295r4GAHUz/jBTpRalXE+9yvx3VE90QE3veqVP5DytoJgV/BNaeUQ5lrXKhHI73AarQ156H6uK4Hc+iYlo41CG0aGW57gcxyNws5QTUGqbJVVEDUtQT0TjEDcpRfd7/0/+vQ4tLKLOkeyizr9OZvuxDiD6+KMI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from localhost.localdomain (14.140.2.178) by MWHPR07MB3101.namprd07.prod.outlook.com (10.172.95.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Thu, 7 Sep 2017 15:31:29 +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: Thu, 7 Sep 2017 21:00:36 +0530 Message-Id: <20170907153042.30890-3-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170907153042.30890-1-santosh.shukla@caviumnetworks.com> References: <20170906112834.32378-1-santosh.shukla@caviumnetworks.com> <20170907153042.30890-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: BM1PR01CA0072.INDPRD01.PROD.OUTLOOK.COM (10.174.208.140) To MWHPR07MB3101.namprd07.prod.outlook.com (10.172.95.7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3bd8ed4e-f34c-4a51-5640-08d4f6058419 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:MWHPR07MB3101; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3101; 3:cSKgTL19z7+eP0/G2wxhEN5N8VnYHR0ZFuUT12/lbB0NqePfCiudHmFmfA+LcDy7ExR5xOE2tQkrwkE9hRu1gBSlQEVkjMMBr6rlbizUAMcLS8hVw5lzfQX8CeC8MY+WI59lmAanMKokBpWrCDieJXtIvhjPj701CORciwAaTWIg2cLO4RzokE2iO3T+yqZiWDcUWfuGtRUbmvq/KlPI/cDjmwpV5uouB0m3mdDrQYom2/lnxG2N+Ki/IGCjC5P/; 25:E/Fir0oUxdPbVbe0L1sEVW3537Wr/JBdufptlFyo54kBtfVqtdJzqt6utDeRi6MCvvmOxV1xd7WVJUVGQTqCTKI1ZuC70i3rr3OCM5z0SfpAFwG68+5gC1Iu/JubLUfDVAzM6rxuwI4sOBFql51pSAzcgI99rmiIO2biVAK7GHjXzdqfUizl9fZ4840miNdPtywfCT531M+Q9pdj4+9INP42c8MXN+Yn4uHGYZGaNKQYKIjNR0il/UK3f9pXyY7rjcSs9CPinGrmwMb7cj2/ASkwQduAqQ7uHoh5vu6ecX2UIe6Dyv7Bdlq/j112UUNoTpLcxfdf1HJolC9zIfNpFQ==; 31:7Kzgf4H9ODIzCE+pmvYzTYIHE5xOmDtFBbfMHFdCNqeLoiKZHsKHGvf06xg7lA2MfnKshVarELu3oHGU+w6Nwq7R7u5M/xKFDUdbbdAqfRlEn5uQQCp076xr2/wOsw0Yi+p6dK9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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)(20161123555025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR07MB3101; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR07MB3101; X-Forefront-PRVS: 04238CD941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(189002)(199003)(25786009)(5660300001)(50986999)(76176999)(42186005)(106356001)(105586002)(4326008)(33646002)(8656003)(66066001)(53936002)(36756003)(107886003)(110136004)(8936002)(50226002)(305945005)(8676002)(7736002)(5003940100001)(1076002)(6512007)(47776003)(81156014)(3846002)(50466002)(6116002)(5009440100003)(101416001)(68736007)(48376002)(97736004)(81166006)(189998001)(2906002)(72206003)(6506006)(2950100002)(42882006)(6666003)(478600001)(6486002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3101; 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; MWHPR07MB3101; 23:f9MRqwXAMvcF13uP6wS+P29D79iyec3osILqKhc+a?= =?us-ascii?Q?UlyegW71+xWbePqWn+s3dItP14kvxvCJ0ZJdyc5xO5JSuH5VD14DR7BjaUn9?= =?us-ascii?Q?xD1xPQaF2Xe2JRO//0iFDp2So48hAapMI3owPKgSfd785wog6gtotqW5ZTKW?= =?us-ascii?Q?G2i89pn1hjaK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?us-ascii?Q?n4lbkkJjgO9f24uvIgHJy9wykhcPAjbReAhEpdjcxTSCXppQIO0LVjjzyYuV?= =?us-ascii?Q?bUrKyD5cohzjnOsUPv6pxMmQR9faGF3kq178P0py8hS9WG9XzgmLg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3101; 6:/ReTAZouVWaw/JOpsD8vUkoPg19o50Q0bmMWHsEbs9YjVLDeLZVO2ZKbRsdav94N2PJX4xVXG780p+knIcFYOJ0zgRb4OcmN71G5ybqa0RDzWUzP/iCHw3tsFJmizBqQqfJ3b8DSOIg8j7Z4qVzAE+b1ez2uJZ03vkWX+8+W7Zcm2b5kPfUUEuNuyHSVATZiMArVBjOAluvMv+HwMOf0B+rtX4s+rEKprEvIUwnLIYt+7W3yRukuXUGH07toMOP2LfywfLRy6QrzF4B0A8MKotOf3NkXPLwPoxy7OmWJ4AitDn6u6nzGwwNtWCGXrveGuxSpZkjjuQHfrtrEViZctg==; 5:bd4RXeVxpmF8R9DJlYTm+2XWvSDuS41A+kwiZT43GGNKfxjYCDk5FrJ2UNIKi/oyVhzut/vX30BNvRYSaFicl+bYPQijdt8thHInROAxjLLNs9exk1He9qrxGvrm3XjWYKWggvZznqdkXgS+IwgAoA==; 24:+x/72iV4AxK5PwkZq86RGxs3yZ8274G9QN1Wi8IllRexAfY5swJHLBB6iTJRKDBj29t9ABqNsx8jSufP8yscEi8lR5p+pDcyDri8hweNZn8=; 7:i+JDDz3oXWr+C7FAwRUxhlkYv/cAayvj9zQGjVdMNXEBE9RxGqtYLEY3WRjt1umvDp4S2pY9ax2TOO5UQBLhmCblrdsBdP2bebzzcrRLW0NotD5ItmQeb3XECAU+xzdEne/IxiL5PvuWTWFfFCL6l3LYQ8sJ4Ebxq4XFU7mTJPVvTWRvESEvH7E+uh/TZRl7vO0Vtn9EBioOFx71ybLpkzwiojz6hixtjytV62QWKhU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Sep 2017 15:31:29.5104 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3101 Subject: [dpdk-dev] [PATCH v6 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: Thu, 07 Sep 2017 15:31:35 -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