From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40066.outbound.protection.outlook.com [40.107.4.66]) by dpdk.org (Postfix) with ESMTP id 7492A1B8EB for ; Thu, 10 May 2018 07:53:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=2XnLYIU22qzMXdlPfEFtT7OprRKvphvYI0Iv4X3OADQ=; b=MNTx/elwXdeGNXJD6GFDrLSrH2qsuhsiHiHFjC3McuT2HkhQuWAOtau+xoHHt8irZ0aCekdaA7QiPaRNp9NzAniml6WWUDaoirPMjSXxCJkdW+nc8fSmCpfeHNletUBo6yzUkbPZhyCTn1iHtYesWa4yuBVdpfov5KD2mMnqMys= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; Received: from mellanox.com (209.116.155.178) by DB6PR0501MB2037.eurprd05.prod.outlook.com (2603:10a6:4:6::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Thu, 10 May 2018 05:53:38 +0000 From: Yongseok Koh To: shahafs@mellanox.com, adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com Cc: dev@dpdk.org, ferruh.yigit@intel.com, Yongseok Koh Date: Wed, 9 May 2018 22:53:21 -0700 Message-Id: <20180510055321.26375-1-yskoh@mellanox.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [209.116.155.178] X-ClientProxiedBy: CO2PR04CA0114.namprd04.prod.outlook.com (2603:10b6:104:7::16) To DB6PR0501MB2037.eurprd05.prod.outlook.com (2603:10a6:4:6::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7153060)(7193020); SRVR:DB6PR0501MB2037; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2037; 3:EjAOPdSeMx9Ut6Wd2JeGSZ51hq4RGaPQ7g2oGnDY632BF+VEjtNyN2AwN3GvN19NKSKXbrgkB5B/P9i5P5btYRVwWRTyrCA8iA1BddQHwNoFzcDiSwe/oH3E7T3pH1o0xR441O4KhJg1yO/w9QjZgPRJGxmkJj/qlxrfShhDLi5OARvQ+2BO4pgep0OzxaNiZwsgn0RJ8P5W0EQ4OtX8F7JpvLWev/6WN9Tx1HD907B/jUKEkZirdGEBzB9M/T7J; 25:oNwjL25dCVDlwWMMH8nHhE86fMT/9lFAqdunpOGx+j3CkYAb0u7ATYGaxcKJWdSoRmvpM3ocabm+4Vip4XLYTU5YTh/14OtUQn4D/K7RBtK1BVOGWW7cg+Kb+uLguFZGYZlK32/t3arz6M4k/JqlCL+5OsjnMnHnajok5Frj8FCqfLRthsqnhreITYHip3/E0SKQcICxpWEEr02BNP4fct0TNgfN/OlcKTkD/JhTIZx5XcD/riEVAkYHZ7cldJGyBmSjaXUZmiyy9AILU9CH+l+iSwAfVkRZPXP8LTfMxHMQ1hHRhsoGCw7u2gMGICTe/YoyBW1MblQnudNXMDW4lw==; 31:tQfQW5JBgj7hgNmWxjta+hxwtaV4Z3t/O9nRkcRtdj3EJImDnZq6U31WSo3F9ZozKiAZHHD4s1NEfD/4EDXYR+Lj8IhMIsi+IyBg1jjRa9+7zjWHdI7DoZuSA2L67fLm2+zmjQI/guTdu2XYuDa57Jl11xbH0XPpI2fKcgGekmxa5n4/0XacrGPR83GIjtlDRi1pPe5HQwMRy4xoMh9UreIxwNVDXiTS3oVQwjf2JwM= X-MS-TrafficTypeDiagnostic: DB6PR0501MB2037: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2037; 20:2VL5qLs5g/PKgNf4DWtuYpbGy9bIApaxIVDi4B8cQY/m07168qSNX5ToUk0lcX9LpIrpxEGLyeVxqU2Pjd2cAOkDy6dfVYPnY7ZuHgHxuDFHxKUD95b273jFEDMUEGktuonipXDIvuwRcI97390nXDFZ2XTmTDp1kO2erkC0zRA3BjnDGEIjzLZCOhbRUWBfxcw1J0UxA9CkvB+ynaZAXWgq11L6RQY7x61ZEBgtV3W3ulEqllJ8KXPIcWJldTGeGWu77DfO23tPngk9hBu0hBRhMNPw/l77iWZac5eo+LW27JQ5K6TY4aRkaex8Rtw4t0LEeQeYVjQUdm+saxeZn0AxFFs+6B7lFAwHxx5d6Vd0fuTT4+vmG5B1acHS39SWuxra8GRH3qWCl7yBnKjYRgTfqu6eHmV91kLTGS/9VQFU18441z038Zym19guiGUTv73ihCfkA+18BNiDPFdO49VbcMXh5GXwV4Ud9IEkH8YAuHOCSVSvJvDPucrH7c+z; 4:YQjbjQMoo8Zt4cTYnDQsOhWvcp/o+VDYDJXnbTpqRA/675cmbQ1vWLCLniHSkS9rnEA7GDrbP6sVOzyGh37VEX9DJ5M75gNvinb6El9fRneudmwVrMifUcvwGy1YZNijM6ex8O9fRzLt9yDYEaU4qnIXBwB2hevnagy5SYd580qXm1zY+Z4WeaaVaxYMG0kRfesvLTWqxUnD+6StIaFlvMRZG8AgDz0Q2W2BxWEfeQukrAnMwUDdCvquMyqP3Zs+2dl3gh9AiMOK/yLkyqUcug== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DB6PR0501MB2037; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0501MB2037; X-Forefront-PRVS: 066898046A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(39860400002)(366004)(346002)(376002)(396003)(199004)(189003)(69596002)(48376002)(4326008)(956004)(2616005)(476003)(3846002)(105586002)(50466002)(106356001)(47776003)(305945005)(16586007)(316002)(7736002)(66066001)(25786009)(486006)(21086003)(26005)(86362001)(16526019)(45080400002)(478600001)(5660300001)(8676002)(36756003)(53936002)(68736007)(1857600001)(386003)(107886003)(7696005)(8936002)(55016002)(52116002)(1076002)(6666003)(50226002)(97736004)(6116002)(81156014)(81166006)(51416003)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2037; H:mellanox.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:3; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0501MB2037; 23:mz2VDnIKJPYXrCfJPj/0cxYN4d9V7pbc7BI4dg0?= =?us-ascii?Q?RI18VEJmUaOuDkQ25b+Km+gEv7090xEm9uu06Eaf5IitY1Gpz4eT9FJHru12?= =?us-ascii?Q?eVL/PYNQkyX5HF8Sd+uqWP7vRJwiiwuqVrmbGCgClkmpENaZBeWeKsTzCj51?= =?us-ascii?Q?A95f3JfjB3vhhmOxVe/aPpbP9Wl4LnbWF5iDi12OJ4QEHh2z5hFkRXmjzagk?= =?us-ascii?Q?NNYdujSVKA8p+u8Gdb9HYdUpY/otME/klhVKQ4jcay7+El3X3PlJwgTpdv2y?= =?us-ascii?Q?XyBeqjKRIPUOgjLDTliqDIEDW5mH+l9wn5A1zRg0uX1Bbvj/TGGKnLtqZhF0?= =?us-ascii?Q?SppEkUGEp65HTqNAgbBrGXa/W8gOExZfVitqK3FCemFYAifhzXmJrt+MtBlP?= =?us-ascii?Q?1UCZvLGn5eEAR9cTllfr2Iwc6O8SNFBUZrTyMI1yg5cCx9mwUy+QUT4x3jlT?= =?us-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q63Oq2j8zXugGAMBaStxYbzFl879XG81la/6kEOtrqBdxu6C4xqx3BWUmxdzptrchdvYufE24DOCmcaMCT6kJoiSSXmbsdVIWbGyWGTxrm9gD22k+oq2hm2SmjbbJhmcGk1ZxWtp/g7YV0Td X-MS-Office365-Filtering-Correlation-Id: dcf3d21a-e25d-4b66-4a66-08d5b63a6127 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2018 05:53:38.4303 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dcf3d21a-e25d-4b66-4a66-08d5b63a6127 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2037 Subject: [dpdk-dev] [PATCH] net/mlx: fix printing format specifiers 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, 10 May 2018 05:53:42 -0000 This will have to be squashed to: net/mlx4: add new Memory Region support net/mlx5: add new Memory Region support Signed-off-by: Yongseok Koh --- This is not a formal patch to merge but Shahaf will squash it separately to mlx4 and mlx5 for dpdk-next-net. drivers/net/mlx4/mlx4_mr.c | 20 ++++++++++++-------- drivers/net/mlx5/mlx5_mr.c | 21 +++++++++++++-------- 2 files changed, 25 insertions(+), 16 deletions(-) diff --git a/drivers/net/mlx4/mlx4_mr.c b/drivers/net/mlx4/mlx4_mr.c index 08e632baf..d23d3c613 100644 --- a/drivers/net/mlx4/mlx4_mr.c +++ b/drivers/net/mlx4/mlx4_mr.c @@ -161,8 +161,8 @@ mr_btree_insert(struct mlx4_mr_btree *bt, struct mlx4_mr_cache *entry) lkp_tbl = *bt->table; /* Find out the slot for insertion. */ if (mr_btree_lookup(bt, &idx, entry->start) != UINT32_MAX) { - DEBUG("abort insertion to B-tree(%p):" - " already exist at idx=%u [0x%lx, 0x%lx) lkey=0x%x", + DEBUG("abort insertion to B-tree(%p): already exist at" + " idx=%u [0x%" PRIxPTR ", 0x%" PRIxPTR ") lkey=0x%x", (void *)bt, idx, entry->start, entry->end, entry->lkey); /* Already exist, return. */ return 0; @@ -179,7 +179,8 @@ mr_btree_insert(struct mlx4_mr_btree *bt, struct mlx4_mr_cache *entry) memmove(&lkp_tbl[idx + 1], &lkp_tbl[idx], shift); lkp_tbl[idx] = *entry; bt->len++; - DEBUG("inserted B-tree(%p)[%u], [0x%lx, 0x%lx) lkey=0x%x", + DEBUG("inserted B-tree(%p)[%u]," + " [0x%" PRIxPTR ", 0x%" PRIxPTR ") lkey=0x%x", (void *)bt, idx, entry->start, entry->end, entry->lkey); return 0; } @@ -259,7 +260,8 @@ mlx4_mr_btree_dump(struct mlx4_mr_btree *bt) for (idx = 0; idx < bt->len; ++idx) { struct mlx4_mr_cache *entry = &lkp_tbl[idx]; - DEBUG("B-tree(%p)[%u], [0x%lx, 0x%lx) lkey=0x%x", + DEBUG("B-tree(%p)[%u]," + " [0x%" PRIxPTR ", 0x%" PRIxPTR ") lkey=0x%x", (void *)bt, idx, entry->start, entry->end, entry->lkey); } } @@ -574,7 +576,8 @@ mlx4_mr_create(struct rte_eth_dev *dev, struct mlx4_mr_cache *entry, assert(msl->page_sz == ms->hugepage_sz); /* Number of memsegs in the range. */ ms_n = len / msl->page_sz; - DEBUG("port %u extending %p to [0x%lx, 0x%lx), page_sz=0x%lx, ms_n=%u", + DEBUG("port %u extending %p to [0x%" PRIxPTR ", 0x%" PRIxPTR ")," + " page_sz=0x%" PRIx64 ", ms_n=%u", dev->data->port_id, (void *)addr, data.start, data.end, msl->page_sz, ms_n); /* Size of memory for bitmap. */ @@ -708,7 +711,8 @@ mlx4_mr_create(struct rte_eth_dev *dev, struct mlx4_mr_cache *entry, assert(mr->ibv_mr->length == len); LIST_INSERT_HEAD(&priv->mr.mr_list, mr, mr); DEBUG("port %u MR CREATED (%p) for %p:\n" - " [0x%lx, 0x%lx), lkey=0x%x base_idx=%u ms_n=%u, ms_bmp_n=%u", + " [0x%" PRIxPTR ", 0x%" PRIxPTR ")," + " lkey=0x%x base_idx=%u ms_n=%u, ms_bmp_n=%u", dev->data->port_id, (void *)mr, (void *)addr, data.start, data.end, rte_cpu_to_be_32(mr->ibv_mr->lkey), mr->ms_base_idx, mr->ms_n, mr->ms_bmp_n); @@ -784,7 +788,7 @@ mlx4_mr_mem_event_free_cb(struct rte_eth_dev *dev, const void *addr, size_t len) int i; int rebuild = 0; - DEBUG("port %u free callback: addr=%p, len=%lu", + DEBUG("port %u free callback: addr=%p, len=%zu", dev->data->port_id, addr, len); msl = rte_mem_virt2memseg_list(addr); /* addr and len must be page-aligned. */ @@ -1129,7 +1133,7 @@ mlx4_mr_dump_dev(struct rte_eth_dev *dev) n = mr_find_next_chunk(mr, &ret, n); if (!ret.end) break; - DEBUG(" chunk[%u], [0x%lx, 0x%lx)", + DEBUG(" chunk[%u], [0x%" PRIxPTR ", 0x%" PRIxPTR ")", chunk_n++, ret.start, ret.end); } } diff --git a/drivers/net/mlx5/mlx5_mr.c b/drivers/net/mlx5/mlx5_mr.c index 8245535f9..abb1f5179 100644 --- a/drivers/net/mlx5/mlx5_mr.c +++ b/drivers/net/mlx5/mlx5_mr.c @@ -146,8 +146,8 @@ mr_btree_insert(struct mlx5_mr_btree *bt, struct mlx5_mr_cache *entry) /* Find out the slot for insertion. */ if (mr_btree_lookup(bt, &idx, entry->start) != UINT32_MAX) { DRV_LOG(DEBUG, - "abort insertion to B-tree(%p):" - " already exist at idx=%u [0x%lx, 0x%lx) lkey=0x%x", + "abort insertion to B-tree(%p): already exist at" + " idx=%u [0x%" PRIxPTR ", 0x%" PRIxPTR ") lkey=0x%x", (void *)bt, idx, entry->start, entry->end, entry->lkey); /* Already exist, return. */ return 0; @@ -165,7 +165,8 @@ mr_btree_insert(struct mlx5_mr_btree *bt, struct mlx5_mr_cache *entry) lkp_tbl[idx] = *entry; bt->len++; DRV_LOG(DEBUG, - "inserted B-tree(%p)[%u], [0x%lx, 0x%lx) lkey=0x%x", + "inserted B-tree(%p)[%u]," + " [0x%" PRIxPTR ", 0x%" PRIxPTR ") lkey=0x%x", (void *)bt, idx, entry->start, entry->end, entry->lkey); return 0; } @@ -247,7 +248,8 @@ mlx5_mr_btree_dump(struct mlx5_mr_btree *bt) struct mlx5_mr_cache *entry = &lkp_tbl[idx]; DRV_LOG(DEBUG, - "B-tree(%p)[%u], [0x%lx, 0x%lx) lkey=0x%x", + "B-tree(%p)[%u]," + " [0x%" PRIxPTR ", 0x%" PRIxPTR ") lkey=0x%x", (void *)bt, idx, entry->start, entry->end, entry->lkey); } } @@ -574,7 +576,8 @@ mlx5_mr_create(struct rte_eth_dev *dev, struct mlx5_mr_cache *entry, /* Number of memsegs in the range. */ ms_n = len / msl->page_sz; DRV_LOG(DEBUG, - "port %u extending %p to [0x%lx, 0x%lx), page_sz=0x%lx, ms_n=%u", + "port %u extending %p to [0x%" PRIxPTR ", 0x%" PRIxPTR ")," + " page_sz=0x%" PRIx64 ", ms_n=%u", dev->data->port_id, (void *)addr, data.start, data.end, msl->page_sz, ms_n); /* Size of memory for bitmap. */ @@ -714,7 +717,8 @@ mlx5_mr_create(struct rte_eth_dev *dev, struct mlx5_mr_cache *entry, LIST_INSERT_HEAD(&priv->mr.mr_list, mr, mr); DRV_LOG(DEBUG, "port %u MR CREATED (%p) for %p:\n" - " [0x%lx, 0x%lx), lkey=0x%x base_idx=%u ms_n=%u, ms_bmp_n=%u", + " [0x%" PRIxPTR ", 0x%" PRIxPTR ")," + " lkey=0x%x base_idx=%u ms_n=%u, ms_bmp_n=%u", dev->data->port_id, (void *)mr, (void *)addr, data.start, data.end, rte_cpu_to_be_32(mr->ibv_mr->lkey), mr->ms_base_idx, mr->ms_n, mr->ms_bmp_n); @@ -792,7 +796,7 @@ mlx5_mr_mem_event_free_cb(struct rte_eth_dev *dev, const void *addr, size_t len) int i; int rebuild = 0; - DRV_LOG(DEBUG, "port %u free callback: addr=%p, len=%lu", + DRV_LOG(DEBUG, "port %u free callback: addr=%p, len=%zu", dev->data->port_id, addr, len); msl = rte_mem_virt2memseg_list(addr); /* addr and len must be page-aligned. */ @@ -1143,7 +1147,8 @@ mlx5_mr_dump_dev(struct rte_eth_dev *dev) n = mr_find_next_chunk(mr, &ret, n); if (!ret.end) break; - DRV_LOG(DEBUG, " chunk[%u], [0x%lx, 0x%lx)", + DRV_LOG(DEBUG, + " chunk[%u], [0x%" PRIxPTR ", 0x%" PRIxPTR ")", chunk_n++, ret.start, ret.end); } } -- 2.11.0