From patchwork Mon Jul 3 06:17:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rma Ma X-Patchwork-Id: 129184 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7ED4C42DC0; Mon, 3 Jul 2023 08:18:09 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 05AAD40EF0; Mon, 3 Jul 2023 08:18:09 +0200 (CEST) Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2050.outbound.protection.outlook.com [40.107.117.50]) by mails.dpdk.org (Postfix) with ESMTP id 10BBB40156 for ; Mon, 3 Jul 2023 08:18:06 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UTbi7MwltviEb6858y9PinFNOsi5WcyzPoL5DWtwE4V1WyQf7QCZG7sUB5KK8Al4S0O3Ba7WJxik/VnoX0/5aTJfeu4LFkGs6Cx98NtWp3Zp5JfahaSvIgadOuQpMIIYk+0gpq859htaXl4OF//fB1MuibyeoAEzAaGCBSFI1RY182dEems0/6o1YhxdSIc5mtHTLE10jcdw3E4kIB7DmrwG+3A1AtD7qlh5v/Qs1PCSIPn+Vpl0g33hAF14ga1yFTUhRebRqu5/LeJav26DEMR/k/8gH51INo51BvgNLQp+oSZ5GnKsxlhwVmprw4GzAtLg8zzRMbRJAprI8smmWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=U8aOCJBdf66tjl4t5FT8D18/DRBAPD535+eugZQqYTg=; b=hmYf5Ash0/O5Zif2ZKAda3iIOJh6bz7+9wynHiUv9WGabqsFC5ekt7LAHK9PbqKlJvpD84A3tAdxW1UEwAmIFG29jJVezMNBkq0QMNxLSpkSvQ0msOZFKpPwJhoo1Zkh6p2ZRDp6Sld3EkxnrCsFXVPvbexNsDQE76y3CJQXMAQa6TJ98vIxqHBVDZof4A5yMxJ+s9g/kDb1rZnAuCfZK4OrpugFSeAcuMGNRJ/Anh3mmiwqvrz13hFKbmw3P/7Kd5894E9gDE47O8ZCE2YDPMpTrTwoLh4t2yXQphv5493INSQ9qZ4RBsUj7JCfKoVpd+xdyyxJcsH0Je+bybHndQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=jaguarmicro.com; dmarc=pass action=none header.from=jaguarmicro.com; dkim=pass header.d=jaguarmicro.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jaguarmicro.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U8aOCJBdf66tjl4t5FT8D18/DRBAPD535+eugZQqYTg=; b=oWnW7S40kkMV95hp0dweMhhujn6UGWVnfbH/CYjvSKTTnm3Q9vDl15uOs/7r1qZUq+gkWhOA2EwmFqE6ijYL12wdjTVUQXHX5w5TexIXQbPwYuP5jlH7tsMIeo0sC4I2jyZHdBfTMUHNmVyxZ5NXKAyZpagYiBVosZzyrlU0X6hGFuV8ddrpR6XqC2Fx3nDHCFPVPUUBLZeer8GC1lhxj9j1YhAExn+XjjitA4Khxc0T7iDxFlQdQwXL5e/0kL2oJjQzUj/qRk37p6JFufFNEsyzqsDf49paaOovHTlA4clD+QyHiNC6yEGu/8vSg3ALJBm71eR5jljQBzhrqCuz7w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=jaguarmicro.com; Received: from SI2PR06MB4752.apcprd06.prod.outlook.com (2603:1096:4:14c::14) by KL1PR0601MB4243.apcprd06.prod.outlook.com (2603:1096:820:7c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Mon, 3 Jul 2023 06:18:00 +0000 Received: from SI2PR06MB4752.apcprd06.prod.outlook.com ([fe80::25f2:1ee4:9de:7b00]) by SI2PR06MB4752.apcprd06.prod.outlook.com ([fe80::25f2:1ee4:9de:7b00%3]) with mapi id 15.20.6544.024; Mon, 3 Jul 2023 06:18:00 +0000 From: Rma Ma To: dpdk-dev Cc: Olivier Matz , Andrew Rybchenko , Rma Ma Subject: [PATCH v1] mempool: fix some errors in html api Date: Mon, 3 Jul 2023 14:17:43 +0800 Message-Id: <20230703061743.10576-1-rma.ma@jaguarmicro.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: SGXP274CA0022.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::34) To SI2PR06MB4752.apcprd06.prod.outlook.com (2603:1096:4:14c::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SI2PR06MB4752:EE_|KL1PR0601MB4243:EE_ X-MS-Office365-Filtering-Correlation-Id: 7e8b64cb-80f3-4d0f-bc1e-08db7b8d4045 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dyIwlmjq68eXx/pxjNcaTDsu16zN8M00oLxODvRS3Gl75C0rNalB5yJO6B7Eg9Phyd24yjnAC5sFtWMAHlZdPmIomWOWdXtMlgij4rs6YfEiH/ewn48d+Ym/NWX91wEoP0B3maJjTxxpS1t2vYa4hJUIUWedTsBqAhR9nZVyawEmDEaGxYV7DRe/FQlz4fH7S7cCJ2GyPFRulapplZJ8QWWzqiDWK+TO1ovyy9zqW95dfBoF6KrVs4U1a9hPyYJokeuho5hVT9oPvSBViM5EfWf1GbjWj5EjNklJk+1Y46cZTbgHuXz84vwtwdAQ0CTTUvkAbr3CA4tp66rLLUjyrIK/pxrnVeXdK+Up3y0Hi3+VF2TJBnJMZKPI0ya9oKYPCDRHj4v9i0EqtKFG2m3NYwtV9iZjx0JinangzuO1vLuZfMz8T4ac+GOvmbZqBkQGyja2zMO/5a/HMEWB6IWMBisOCcl7S1dHMZw4SckbAlyymwreCwpBU5KONMGn3jNLNvCogmyBRFiFHtoiMYrb+BfR/JmP0NAYrj3TLjnYJ/L/BJNpkRWdOGeh2mn33foC6lCt0ea/qOvSAsWWEoKCux5m/wdc102MPGBOuq9dKbvN7cmbvLmm/H/aS6T8TEPf X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SI2PR06MB4752.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(376002)(396003)(366004)(136003)(346002)(39830400003)(451199021)(2906002)(41300700001)(5660300002)(8676002)(8936002)(44832011)(36756003)(86362001)(186003)(2616005)(478600001)(107886003)(26005)(6512007)(6506007)(1076003)(6666004)(6486002)(52116002)(316002)(6916009)(4326008)(66476007)(66556008)(66946007)(38100700002)(38350700002)(54906003)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Jn72eZRmWNG238PmxfmRl9mCEmgoFKZlIf1EFIMD7nQxrNadfrQOXyAXeZ9Tpgz/E0Xhk+DCh215Xv0WnEj8e9YGQ0W6K+oK74J+L1x0Xb/S5B/ePyXKBv/znhMLPZe6vdQNLblY4wBh5Htonu7V4SMx2YE8LH900Sn73iAwtZkosGrOFeQehSni1Zbk4QgltOlZWycWD84FAKXA46jBgYP91SfqICuPmUZ/KEunvMVef+GBJoCZkrYgaPtgwpDAkEuHV4kRMglU+mVdSARnL8xG/QbVOW3ZaPU4HrfQj3IsD+nVRnmCeMLS6OvL29TJwslLFVHDkfPLy2VjZ1Q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d68YJit+IFVKnQPEKRAV6aSP7lNhzVQQoyvcXZZ5WVIPWWrs5agQ0Ea2Ac90TfpZXodKjiOObFtMwTHZ4b1HP0AH0PJ3wSODRPgaOWtDxrCjokhcyhMU14mkan+/GJkf3XSdS4FFPs+RnxxItf7HROi9HycBiKdHEpN6/mo10bXUJoeJp0jngTg6WcwwHrehwaWAMow== X-OriginatorOrg: jaguarmicro.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7e8b64cb-80f3-4d0f-bc1e-08db7b8d4045 X-MS-Exchange-CrossTenant-AuthSource: SI2PR06MB4752.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2023 06:18:00.3829 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 1e45a5c2-d3e1-46b3-a0e6-c5ebf6d8ba7b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: u+Ddt9IP1TBRxMK53PI5ZZAGpUngZLR5QHG+DhsW5+vHUuvANpncie/2Oz/TW1ccYP95vDkuiSE9n1Mi7QEpTA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB4243 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 This patch fix some error descriptions of return value in mempool api which affect in html api. Signed-off-by: Rma Ma --- lib/mempool/rte_mempool.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/mempool/rte_mempool.h b/lib/mempool/rte_mempool.h index 160975a7e7..d4d707533a 100644 --- a/lib/mempool/rte_mempool.h +++ b/lib/mempool/rte_mempool.h @@ -1610,7 +1610,7 @@ rte_mempool_do_generic_get(struct rte_mempool *mp, void **obj_table, * Get several objects from the mempool. * * If cache is enabled, objects will be retrieved first from cache, - * subsequently from the common pool. Note that it can return -ENOENT when + * subsequently from the common pool. Note that it can return -ENOBUFS when * the local cache and common pool are empty, even if cache from other * lcores are full. * @@ -1624,7 +1624,7 @@ rte_mempool_do_generic_get(struct rte_mempool *mp, void **obj_table, * A pointer to a mempool cache structure. May be NULL if not needed. * @return * - 0: Success; objects taken. - * - -ENOENT: Not enough entries in the mempool; no object is retrieved. + * - -ENOBUFS: Not enough entries in the mempool; no object is retrieved. */ static __rte_always_inline int rte_mempool_generic_get(struct rte_mempool *mp, void **obj_table, @@ -1646,7 +1646,7 @@ rte_mempool_generic_get(struct rte_mempool *mp, void **obj_table, * mempool creation time (see flags). * * If cache is enabled, objects will be retrieved first from cache, - * subsequently from the common pool. Note that it can return -ENOENT when + * subsequently from the common pool. Note that it can return -ENOBUFS when * the local cache and common pool are empty, even if cache from other * lcores are full. * @@ -1658,7 +1658,7 @@ rte_mempool_generic_get(struct rte_mempool *mp, void **obj_table, * The number of objects to get from the mempool to obj_table. * @return * - 0: Success; objects taken - * - -ENOENT: Not enough entries in the mempool; no object is retrieved. + * - -ENOBUFS: Not enough entries in the mempool; no object is retrieved. */ static __rte_always_inline int rte_mempool_get_bulk(struct rte_mempool *mp, void **obj_table, unsigned int n) @@ -1677,7 +1677,7 @@ rte_mempool_get_bulk(struct rte_mempool *mp, void **obj_table, unsigned int n) * mempool creation (see flags). * * If cache is enabled, objects will be retrieved first from cache, - * subsequently from the common pool. Note that it can return -ENOENT when + * subsequently from the common pool. Note that it can return -ENOBUFS when * the local cache and common pool are empty, even if cache from other * lcores are full. * @@ -1687,7 +1687,7 @@ rte_mempool_get_bulk(struct rte_mempool *mp, void **obj_table, unsigned int n) * A pointer to a void * pointer (object) that will be filled. * @return * - 0: Success; objects taken. - * - -ENOENT: Not enough entries in the mempool; no object is retrieved. + * - -ENOBUFS: Not enough entries in the mempool; no object is retrieved. */ static __rte_always_inline int rte_mempool_get(struct rte_mempool *mp, void **obj_p)