From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 75A3645BB6; Wed, 23 Oct 2024 22:25:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 493AA40261; Wed, 23 Oct 2024 22:25:17 +0200 (CEST) Received: from mail-qv1-f47.google.com (mail-qv1-f47.google.com [209.85.219.47]) by mails.dpdk.org (Postfix) with ESMTP id 7B51240144 for ; Wed, 23 Oct 2024 22:25:16 +0200 (CEST) Received: by mail-qv1-f47.google.com with SMTP id 6a1803df08f44-6cbcc2bd7fcso1652276d6.1 for ; Wed, 23 Oct 2024 13:25:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1729715116; x=1730319916; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/56bR8AkeWyspL1fHQdtGwCBt8FiD2CUcVytLnKUtOQ=; b=SjaFfjR5342SnCLzi7QhnxG6nqS9EL35tT2XgjojlZ7PHGei8b1OCcb+ESu1wIn2hz ZE3PRhrvTfGQ+V5q9IezvdGacEEZZSabY/Yyxz6lkO4B7bxtKiO6nzQsNPyM+oJy+VJI Psq8wfrhr2AdnoWutOxtkIIdx2saik9NFmuAE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729715116; x=1730319916; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/56bR8AkeWyspL1fHQdtGwCBt8FiD2CUcVytLnKUtOQ=; b=mFz9j67AER5CWxSPF4LfVUxDaN4PT0M6DyuFJLCeuhmoiolE2DsgNUB0QXiqfmLefa TgZv2wtqLJ/d5ABQv9qYc7FsqVwfXfjRNouE7koD8Eal6vwL1MHVHPTQVmTCuAcD3BGr CS2BXw5ovMaxt0evIqjeJua8IR5c0b6jjVRLacQ2yFKG5Km6JKPBB8oV+ozG5+EWE4fq 3lgZq0uhsRjA6oh9LzhbLlqnay4t6xU0I1hlAXPQE9j95GOKNGg+sOcK5DnB8ZjZ6mnC Na0GX+hCj2zu3zt7xoMyFQLLk0U3pEkVACnTveNTt3WOd+D0y3/uyu3wNikLxWRQE/UX 4dLQ== X-Gm-Message-State: AOJu0Yz7bASpbfnaEMMR6ndLrzP8PKWFae2GIFNlf3Jw+E4GTOvYQE1A DBCyShmQq2xwxsGwPC+8KgCQoH7IFFNSlqDxzkhZcNKOY551JCq5ZLbBXZYySZViPzrXexJ9rEH +otnL39tl912JK1OSmdg+6teA9y3G4Kws+cvJ X-Google-Smtp-Source: AGHT+IErTEOX9BHkhRWGogeOv3Yks4wj8aqSLWmjGRTaBb48hdTPyHKUPZxR5UQDebYtu1eXHFVCXOtdtgSD/8FsAAw= X-Received: by 2002:a05:6214:4a02:b0:6cb:e648:863e with SMTP id 6a1803df08f44-6ce342f4e43mr49301616d6.43.1729715113702; Wed, 23 Oct 2024 13:25:13 -0700 (PDT) MIME-Version: 1.0 References: <20231114082539.1858594-44-huangdengdui@huawei.com> <20241023082852.2780488-1-huangdengdui@huawei.com> <20241023082852.2780488-22-huangdengdui@huawei.com> In-Reply-To: <20241023082852.2780488-22-huangdengdui@huawei.com> From: Ajit Khaparde Date: Wed, 23 Oct 2024 13:24:54 -0700 Message-ID: Subject: Re: [PATCH v4 21/42] net/bnxt: use rte strerror To: Dengdui Huang Cc: dev@dpdk.org, ferruh.yigit@amd.com, stephen@networkplumber.org, mb@smartsharesystems.com, david.marchand@redhat.com, iboukris@gmail.com, lihuisong@huawei.com, fengchengwen@huawei.com, haijie1@huawei.com, liuyonglong@huawei.com Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000000e428206252aafd0" 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 --0000000000000e428206252aafd0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Oct 23, 2024 at 1:32=E2=80=AFAM Dengdui Huang wrote: > > The function strerror() is insecure in a multi-thread environment. > This patch uses rte_strerror() to replace it. > > Cc: stable@dpdk.org > > Signed-off-by: Dengdui Huang > Acked-by: Chengwen Feng > Acked-by: Morten Br=C3=B8rup Acked-by: Ajit Khaparde > --- > drivers/net/bnxt/bnxt_stats.c | 2 +- > drivers/net/bnxt/rte_pmd_bnxt.c | 26 +- > drivers/net/bnxt/tf_core/tf_core.c | 240 +++++++++--------- > drivers/net/bnxt/tf_core/tf_em_common.c | 26 +- > .../net/bnxt/tf_core/tf_em_hash_internal.c | 4 +- > drivers/net/bnxt/tf_core/tf_em_host.c | 24 +- > drivers/net/bnxt/tf_core/tf_em_internal.c | 14 +- > drivers/net/bnxt/tf_core/tf_global_cfg.c | 10 +- > drivers/net/bnxt/tf_core/tf_identifier.c | 8 +- > drivers/net/bnxt/tf_core/tf_if_tbl.c | 6 +- > drivers/net/bnxt/tf_core/tf_msg.c | 160 ++++++------ > drivers/net/bnxt/tf_core/tf_rm.c | 6 +- > drivers/net/bnxt/tf_core/tf_session.c | 72 +++--- > drivers/net/bnxt/tf_core/tf_sram_mgr.c | 22 +- > drivers/net/bnxt/tf_core/tf_tbl.c | 28 +- > drivers/net/bnxt/tf_core/tf_tbl_sram.c | 48 ++-- > drivers/net/bnxt/tf_core/tf_tcam.c | 24 +- > 17 files changed, 360 insertions(+), 360 deletions(-) > > diff --git a/drivers/net/bnxt/bnxt_stats.c b/drivers/net/bnxt/bnxt_stats.= c > index 5e59afe79f..3f89f42bbb 100644 > --- a/drivers/net/bnxt/bnxt_stats.c > +++ b/drivers/net/bnxt/bnxt_stats.c > @@ -1187,7 +1187,7 @@ int bnxt_dev_xstats_reset_op(struct rte_eth_dev *et= h_dev) > ret =3D bnxt_hwrm_port_clr_stats(bp); > if (ret !=3D 0) > PMD_DRV_LOG_LINE(ERR, "Failed to reset xstats: %s", > - strerror(-ret)); > + rte_strerror(-ret)); > > bnxt_clear_prev_stat(bp); > > diff --git a/drivers/net/bnxt/rte_pmd_bnxt.c b/drivers/net/bnxt/rte_pmd_b= nxt.c > index e9b5739050..fedea23a74 100644 > --- a/drivers/net/bnxt/rte_pmd_bnxt.c > +++ b/drivers/net/bnxt/rte_pmd_bnxt.c > @@ -149,7 +149,7 @@ int rte_pmd_bnxt_set_vf_mac_addr(uint16_t port, uint1= 6_t vf, > if (rc !=3D 0) { > PMD_DRV_LOG_LINE(ERR, > "Error during getting device (port %u) info: %s", > - port, strerror(-rc)); > + port, rte_strerror(-rc)); > > return rc; > } > @@ -191,7 +191,7 @@ int rte_pmd_bnxt_set_vf_rate_limit(uint16_t port, uin= t16_t vf, > if (rc !=3D 0) { > PMD_DRV_LOG_LINE(ERR, > "Error during getting device (port %u) info: %s", > - port, strerror(-rc)); > + port, rte_strerror(-rc)); > > return rc; > } > @@ -249,7 +249,7 @@ int rte_pmd_bnxt_set_vf_mac_anti_spoof(uint16_t port,= uint16_t vf, uint8_t on) > if (rc !=3D 0) { > PMD_DRV_LOG_LINE(ERR, > "Error during getting device (port %u) info: %s", > - port, strerror(-rc)); > + port, rte_strerror(-rc)); > > return rc; > } > @@ -308,7 +308,7 @@ int rte_pmd_bnxt_set_vf_vlan_anti_spoof(uint16_t port= , uint16_t vf, uint8_t on) > if (rc !=3D 0) { > PMD_DRV_LOG_LINE(ERR, > "Error during getting device (port %u) info: %s", > - port, strerror(-rc)); > + port, rte_strerror(-rc)); > > return rc; > } > @@ -365,7 +365,7 @@ rte_pmd_bnxt_set_vf_vlan_stripq(uint16_t port, uint16= _t vf, uint8_t on) > if (rc !=3D 0) { > PMD_DRV_LOG_LINE(ERR, > "Error during getting device (port %u) info: %s", > - port, strerror(-rc)); > + port, rte_strerror(-rc)); > > return rc; > } > @@ -409,7 +409,7 @@ int rte_pmd_bnxt_set_vf_rxmode(uint16_t port, uint16_= t vf, > if (rc !=3D 0) { > PMD_DRV_LOG_LINE(ERR, > "Error during getting device (port %u) info: %s", > - port, strerror(-rc)); > + port, rte_strerror(-rc)); > > return rc; > } > @@ -600,7 +600,7 @@ int rte_pmd_bnxt_get_vf_stats(uint16_t port, > if (rc !=3D 0) { > PMD_DRV_LOG_LINE(ERR, > "Error during getting device (port %u) info: %s", > - port, strerror(-rc)); > + port, rte_strerror(-rc)); > > return rc; > } > @@ -636,7 +636,7 @@ int rte_pmd_bnxt_reset_vf_stats(uint16_t port, > if (rc !=3D 0) { > PMD_DRV_LOG_LINE(ERR, > "Error during getting device (port %u) info: %s", > - port, strerror(-rc)); > + port, rte_strerror(-rc)); > > return rc; > } > @@ -670,7 +670,7 @@ int rte_pmd_bnxt_get_vf_rx_status(uint16_t port, uint= 16_t vf_id) > if (rc !=3D 0) { > PMD_DRV_LOG_LINE(ERR, > "Error during getting device (port %u) info: %s", > - port, strerror(-rc)); > + port, rte_strerror(-rc)); > > return rc; > } > @@ -705,7 +705,7 @@ int rte_pmd_bnxt_get_vf_tx_drop_count(uint16_t port, = uint16_t vf_id, > if (rc !=3D 0) { > PMD_DRV_LOG_LINE(ERR, > "Error during getting device (port %u) info: %s", > - port, strerror(-rc)); > + port, rte_strerror(-rc)); > > return rc; > } > @@ -744,7 +744,7 @@ int rte_pmd_bnxt_mac_addr_add(uint16_t port, struct r= te_ether_addr *addr, > if (rc !=3D 0) { > PMD_DRV_LOG_LINE(ERR, > "Error during getting device (port %u) info: %s", > - port, strerror(-rc)); > + port, rte_strerror(-rc)); > > return rc; > } > @@ -827,7 +827,7 @@ rte_pmd_bnxt_set_vf_vlan_insert(uint16_t port, uint16= _t vf, > if (rc !=3D 0) { > PMD_DRV_LOG_LINE(ERR, > "Error during getting device (port %u) info: %s", > - port, strerror(-rc)); > + port, rte_strerror(-rc)); > > return rc; > } > @@ -871,7 +871,7 @@ int rte_pmd_bnxt_set_vf_persist_stats(uint16_t port, = uint16_t vf, uint8_t on) > if (rc !=3D 0) { > PMD_DRV_LOG_LINE(ERR, > "Error during getting device (port %u) info: %s", > - port, strerror(-rc)); > + port, rte_strerror(-rc)); > > return rc; > } > diff --git a/drivers/net/bnxt/tf_core/tf_core.c b/drivers/net/bnxt/tf_cor= e/tf_core.c > index 3a812bee3a..2c7ee09888 100644 > --- a/drivers/net/bnxt/tf_core/tf_core.c > +++ b/drivers/net/bnxt/tf_core/tf_core.c > @@ -205,7 +205,7 @@ int tf_insert_em_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -215,7 +215,7 @@ int tf_insert_em_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -232,7 +232,7 @@ int tf_insert_em_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: EM insert failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -261,7 +261,7 @@ int tf_delete_em_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -271,7 +271,7 @@ int tf_delete_em_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -285,7 +285,7 @@ int tf_delete_em_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: EM delete failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -313,7 +313,7 @@ int tf_get_global_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -323,7 +323,7 @@ int tf_get_global_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -338,7 +338,7 @@ int tf_get_global_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return -EOPNOTSUPP; > } > > @@ -347,7 +347,7 @@ int tf_get_global_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Global Cfg get failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -375,7 +375,7 @@ int tf_set_global_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -385,7 +385,7 @@ int tf_set_global_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -400,7 +400,7 @@ int tf_set_global_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return -EOPNOTSUPP; > } > > @@ -409,7 +409,7 @@ int tf_set_global_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Global Cfg set failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -437,7 +437,7 @@ tf_alloc_identifier(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -447,7 +447,7 @@ tf_alloc_identifier(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -456,7 +456,7 @@ tf_alloc_identifier(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return -EOPNOTSUPP; > } > > @@ -468,7 +468,7 @@ tf_alloc_identifier(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Identifier allocation failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -497,7 +497,7 @@ tf_free_identifier(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -507,7 +507,7 @@ tf_free_identifier(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -516,7 +516,7 @@ tf_free_identifier(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return -EOPNOTSUPP; > } > > @@ -529,7 +529,7 @@ tf_free_identifier(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Identifier free failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -556,7 +556,7 @@ tf_search_identifier(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -566,7 +566,7 @@ tf_search_identifier(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -575,7 +575,7 @@ tf_search_identifier(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -589,7 +589,7 @@ tf_search_identifier(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Identifier search failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -615,7 +615,7 @@ tf_search_tcam_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -625,7 +625,7 @@ tf_search_tcam_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -634,7 +634,7 @@ tf_search_tcam_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -656,7 +656,7 @@ tf_search_tcam_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: TCAM allocation failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -688,7 +688,7 @@ tf_alloc_tcam_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -698,7 +698,7 @@ tf_alloc_tcam_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -707,7 +707,7 @@ tf_alloc_tcam_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -720,7 +720,7 @@ tf_alloc_tcam_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: TCAM allocation failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -748,7 +748,7 @@ tf_set_tcam_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -758,7 +758,7 @@ tf_set_tcam_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -768,7 +768,7 @@ tf_set_tcam_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -786,7 +786,7 @@ tf_set_tcam_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: TCAM set failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > TFP_DRV_LOG(DEBUG, > @@ -816,7 +816,7 @@ tf_get_tcam_entry(struct tf *tfp __rte_unused, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -826,7 +826,7 @@ tf_get_tcam_entry(struct tf *tfp __rte_unused, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -835,7 +835,7 @@ tf_get_tcam_entry(struct tf *tfp __rte_unused, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -853,7 +853,7 @@ tf_get_tcam_entry(struct tf *tfp __rte_unused, > TFP_DRV_LOG(ERR, > "%s: TCAM get failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > parms->key_sz_in_bits =3D gparms.key_size * 8; > @@ -881,7 +881,7 @@ tf_free_tcam_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -891,7 +891,7 @@ tf_free_tcam_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -900,7 +900,7 @@ tf_free_tcam_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -912,7 +912,7 @@ tf_free_tcam_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: TCAM free failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -935,7 +935,7 @@ tf_move_tcam_shared_entries(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -945,7 +945,7 @@ tf_move_tcam_shared_entries(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -954,7 +954,7 @@ tf_move_tcam_shared_entries(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -963,7 +963,7 @@ tf_move_tcam_shared_entries(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: TCAM shared entries move failed, rc:%s\n= ", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -986,7 +986,7 @@ tf_clear_tcam_shared_entries(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -996,7 +996,7 @@ tf_clear_tcam_shared_entries(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1005,7 +1005,7 @@ tf_clear_tcam_shared_entries(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1014,7 +1014,7 @@ tf_clear_tcam_shared_entries(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: TCAM shared entries clear failed, rc:%s\= n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1042,7 +1042,7 @@ tf_alloc_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1052,7 +1052,7 @@ tf_alloc_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1067,7 +1067,7 @@ tf_alloc_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n= ", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return -EOPNOTSUPP; > } > > @@ -1076,7 +1076,7 @@ tf_alloc_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: External table allocation failed= , rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > } else if (dev->ops->tf_dev_is_sram_managed(tfp, parms->type)) { > @@ -1085,7 +1085,7 @@ tf_alloc_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: SRAM table allocation failed, rc= :%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > } else { > @@ -1094,7 +1094,7 @@ tf_alloc_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Table allocation failed, rc:%s\n= ", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > } > @@ -1124,7 +1124,7 @@ tf_free_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1134,7 +1134,7 @@ tf_free_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1149,7 +1149,7 @@ tf_free_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n= ", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return -EOPNOTSUPP; > } > > @@ -1158,7 +1158,7 @@ tf_free_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Table free failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > } else if (dev->ops->tf_dev_is_sram_managed(tfp, parms->type)) { > @@ -1167,7 +1167,7 @@ tf_free_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: SRAM table free failed, rc:%s\n"= , > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > } else { > @@ -1177,7 +1177,7 @@ tf_free_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Table free failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > } > @@ -1204,7 +1204,7 @@ tf_set_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1214,7 +1214,7 @@ tf_set_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1231,7 +1231,7 @@ tf_set_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n= ", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return -EOPNOTSUPP; > } > > @@ -1240,7 +1240,7 @@ tf_set_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Table set failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > } else if (dev->ops->tf_dev_is_sram_managed(tfp, parms->type)) { > @@ -1249,7 +1249,7 @@ tf_set_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: SRAM table set failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > } else { > @@ -1258,7 +1258,7 @@ tf_set_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n= ", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return -EOPNOTSUPP; > } > > @@ -1267,7 +1267,7 @@ tf_set_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Table set failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > } > @@ -1295,7 +1295,7 @@ tf_get_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1305,7 +1305,7 @@ tf_get_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > gparms.dir =3D parms->dir; > @@ -1320,7 +1320,7 @@ tf_get_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: SRAM table get failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > } else { > @@ -1329,7 +1329,7 @@ tf_get_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n= ", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return -EOPNOTSUPP; > } > > @@ -1338,7 +1338,7 @@ tf_get_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Table get failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > } > @@ -1366,7 +1366,7 @@ tf_bulk_get_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1376,7 +1376,7 @@ tf_bulk_get_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1393,7 +1393,7 @@ tf_bulk_get_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s, External table type not supported, rc:%s= \n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > > return rc; > } else if (dev->ops->tf_dev_is_sram_managed(tfp, parms->type)) { > @@ -1402,7 +1402,7 @@ tf_bulk_get_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: SRAM table bulk get failed, rc:%= s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > } > return rc; > } > @@ -1412,7 +1412,7 @@ tf_bulk_get_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return -EOPNOTSUPP; > } > > @@ -1421,7 +1421,7 @@ tf_bulk_get_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Table get bulk failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > return rc; > @@ -1442,7 +1442,7 @@ int tf_get_shared_tbl_increment(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1452,7 +1452,7 @@ int tf_get_shared_tbl_increment(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1463,7 +1463,7 @@ int tf_get_shared_tbl_increment(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return -EOPNOTSUPP; > } > > @@ -1472,7 +1472,7 @@ int tf_get_shared_tbl_increment(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Get table increment not supported, rc:%s= \n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1494,7 +1494,7 @@ tf_alloc_tbl_scope(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1503,7 +1503,7 @@ tf_alloc_tbl_scope(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup device, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1532,7 +1532,7 @@ tf_map_tbl_scope(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1541,7 +1541,7 @@ tf_map_tbl_scope(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup device, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1571,7 +1571,7 @@ tf_free_tbl_scope(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1580,7 +1580,7 @@ tf_free_tbl_scope(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup device, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1612,7 +1612,7 @@ tf_set_if_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1622,7 +1622,7 @@ tf_set_if_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1631,7 +1631,7 @@ tf_set_if_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1646,7 +1646,7 @@ tf_set_if_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: If_tbl set failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1670,7 +1670,7 @@ tf_get_if_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1680,7 +1680,7 @@ tf_get_if_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1689,7 +1689,7 @@ tf_get_if_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1704,7 +1704,7 @@ tf_get_if_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: If_tbl get failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1725,7 +1725,7 @@ int tf_get_session_info(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1734,7 +1734,7 @@ int tf_get_session_info(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup device, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1744,7 +1744,7 @@ int tf_get_session_info(struct tf *tfp, > rc =3D -EOPNOTSUPP; > TFP_DRV_LOG(ERR, > "Operation not supported, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1752,14 +1752,14 @@ int tf_get_session_info(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Ident get resc info failed, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > } > > if (dev->ops->tf_dev_get_tbl_resc_info =3D=3D NULL) { > rc =3D -EOPNOTSUPP; > TFP_DRV_LOG(ERR, > "Operation not supported, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1767,14 +1767,14 @@ int tf_get_session_info(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Tbl get resc info failed, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > } > > if (dev->ops->tf_dev_get_tcam_resc_info =3D=3D NULL) { > rc =3D -EOPNOTSUPP; > TFP_DRV_LOG(ERR, > "Operation not supported, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1782,14 +1782,14 @@ int tf_get_session_info(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "TCAM get resc info failed, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > } > > if (dev->ops->tf_dev_get_em_resc_info =3D=3D NULL) { > rc =3D -EOPNOTSUPP; > TFP_DRV_LOG(ERR, > "Operation not supported, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1797,7 +1797,7 @@ int tf_get_session_info(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "EM get resc info failed, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > } > > return 0; > @@ -1861,7 +1861,7 @@ int tf_query_sram_resources(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return -EOPNOTSUPP; > } > > @@ -1870,7 +1870,7 @@ int tf_query_sram_resources(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Get SRAM resc info failed, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1901,7 +1901,7 @@ int tf_query_sram_resources(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return -EOPNOTSUPP; > } > > @@ -1911,7 +1911,7 @@ int tf_query_sram_resources(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Get SRAM resc info failed, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1943,7 +1943,7 @@ int tf_set_sram_policy(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1952,7 +1952,7 @@ int tf_set_sram_policy(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: SRAM policy set failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1984,7 +1984,7 @@ int tf_get_sram_policy(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1993,7 +1993,7 @@ int tf_get_sram_policy(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: SRAM policy get failed, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > diff --git a/drivers/net/bnxt/tf_core/tf_em_common.c b/drivers/net/bnxt/t= f_core/tf_em_common.c > index c518150d1f..162bc275b9 100644 > --- a/drivers/net/bnxt/tf_core/tf_em_common.c > +++ b/drivers/net/bnxt/tf_core/tf_em_common.c > @@ -51,7 +51,7 @@ tf_create_tbl_pool_external(enum tf_dir dir, > > if (tfp_calloc(&parms) !=3D 0) { > TFP_DRV_LOG(ERR, "%s: TBL: external pool failure %s\n", > - tf_dir_2_str(dir), strerror(ENOMEM)); > + tf_dir_2_str(dir), rte_strerror(ENOMEM)); > return -ENOMEM; > } > > @@ -61,7 +61,7 @@ tf_create_tbl_pool_external(enum tf_dir dir, > > if (rc !=3D 0) { > TFP_DRV_LOG(ERR, "%s: TBL: stack init failure %s\n", > - tf_dir_2_str(dir), strerror(-rc)); > + tf_dir_2_str(dir), rte_strerror(-rc)); > goto cleanup; > } > > @@ -78,7 +78,7 @@ tf_create_tbl_pool_external(enum tf_dir dir, > rc =3D stack_push(pool, j); > if (rc !=3D 0) { > TFP_DRV_LOG(ERR, "%s TBL: stack failure %s\n", > - tf_dir_2_str(dir), strerror(-rc)); > + tf_dir_2_str(dir), rte_strerror(-rc))= ; > goto cleanup; > } > > @@ -93,7 +93,7 @@ tf_create_tbl_pool_external(enum tf_dir dir, > if (!stack_is_full(pool)) { > rc =3D -EINVAL; > TFP_DRV_LOG(ERR, "%s TBL: stack failure %s\n", > - tf_dir_2_str(dir), strerror(-rc)); > + tf_dir_2_str(dir), rte_strerror(-rc)); > goto cleanup; > } > return 0; > @@ -921,7 +921,7 @@ tf_em_ext_common_bind(struct tf *tfp, > cparms.alignment =3D 0; > if (tfp_calloc(&cparms) !=3D 0) { > TFP_DRV_LOG(ERR, "em_ext_db alloc error %s\n", > - strerror(ENOMEM)); > + rte_strerror(ENOMEM)); > return -ENOMEM; > } > > @@ -980,7 +980,7 @@ tf_em_ext_common_unbind(struct tf *tfp) > rc =3D tf_session_get_session_internal(tfp, &tfs); > if (rc) { > TFP_DRV_LOG(ERR, "Failed to get tf_session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -989,7 +989,7 @@ tf_em_ext_common_unbind(struct tf *tfp) > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup device, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -997,7 +997,7 @@ tf_em_ext_common_unbind(struct tf *tfp) > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get em_ext_db from session, rc:%s\= n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1157,7 +1157,7 @@ int tf_em_ext_map_tbl_scope(struct tf *tfp, > rc =3D -EOPNOTSUPP; > TFP_DRV_LOG(ERR, > "Map table scope operation not supported, rc:= %s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1167,14 +1167,14 @@ int tf_em_ext_map_tbl_scope(struct tf *tfp, > > if (tfp_calloc(&aparms) !=3D 0) { > TFP_DRV_LOG(ERR, "Map tbl scope alloc data error %s\n", > - strerror(ENOMEM)); > + rte_strerror(ENOMEM)); > return -ENOMEM; > } > data =3D aparms.mem_va; > > if (tfp_calloc(&aparms) !=3D 0) { > TFP_DRV_LOG(ERR, "Map tbl scope alloc mask error %s\n", > - strerror(ENOMEM)); > + rte_strerror(ENOMEM)); > rc =3D -ENOMEM; > goto clean; > } > @@ -1188,7 +1188,7 @@ int tf_em_ext_map_tbl_scope(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Map table scope config failure, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > goto cleaner; > } > > @@ -1203,7 +1203,7 @@ int tf_em_ext_map_tbl_scope(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Map tbl scope, set failed, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > } > cleaner: > tfp_free(mask); > diff --git a/drivers/net/bnxt/tf_core/tf_em_hash_internal.c b/drivers/net= /bnxt/tf_core/tf_em_hash_internal.c > index 9c527e152d..92dba8c4f9 100644 > --- a/drivers/net/bnxt/tf_core/tf_em_hash_internal.c > +++ b/drivers/net/bnxt/tf_core/tf_em_hash_internal.c > @@ -130,7 +130,7 @@ tf_em_hash_delete_int_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -165,7 +165,7 @@ tf_em_move_int_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > diff --git a/drivers/net/bnxt/tf_core/tf_em_host.c b/drivers/net/bnxt/tf_= core/tf_em_host.c > index 9efffe4ee5..55d27b88a2 100644 > --- a/drivers/net/bnxt/tf_core/tf_em_host.c > +++ b/drivers/net/bnxt/tf_core/tf_em_host.c > @@ -182,7 +182,7 @@ tf_em_alloc_page_table(struct hcapi_cfa_em_table *tbl= ) > TFP_DRV_LOG(WARNING, > "Failed to allocate page table: lvl: %d, = rc:%s\n", > i, > - strerror(-rc)); > + rte_strerror(-rc)); > goto cleanup; > } > > @@ -379,7 +379,7 @@ tf_em_ext_alloc(struct tf *tfp, > rc =3D tf_session_get_session_internal(tfp, &tfs); > if (rc) { > TFP_DRV_LOG(ERR, "Failed to get tf_session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -387,7 +387,7 @@ tf_em_ext_alloc(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get em_ext_db from session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > ext_db =3D (struct em_ext_db *)ext_ptr; > @@ -396,7 +396,7 @@ tf_em_ext_alloc(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "EEM: PF query error rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > goto cleanup; > } > > @@ -420,7 +420,7 @@ tf_em_ext_alloc(struct tf *tfp, > /* Log error */ > TFP_DRV_LOG(ERR, > "Failed to allocate session table scope, rc:%s\n"= , > - strerror(-rc)); > + rte_strerror(-rc)); > goto cleanup; > } > > @@ -436,7 +436,7 @@ tf_em_ext_alloc(struct tf *tfp, > TFP_DRV_LOG(ERR, > "EEM: Unable to query for EEM capabil= ity," > " rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > goto cleanup_ts; > } > } > @@ -456,7 +456,7 @@ tf_em_ext_alloc(struct tf *tfp, > TFP_DRV_LOG(ERR, > "EEM: Unable to register for EEM ctx,= " > " rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > goto cleanup_ts; > } > > @@ -473,7 +473,7 @@ tf_em_ext_alloc(struct tf *tfp, > TFP_DRV_LOG(ERR, > "TBL: Unable to configure EEM in firm= ware" > " rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > goto cleanup_full; > } > > @@ -485,7 +485,7 @@ tf_em_ext_alloc(struct tf *tfp, > TFP_DRV_LOG(ERR, > "EEM: Unable to enable EEM in firmwar= e" > " rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > goto cleanup_full; > } > > @@ -501,7 +501,7 @@ tf_em_ext_alloc(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s TBL: Unable to allocate idx pools= %s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > goto cleanup_full; > } > } > @@ -547,7 +547,7 @@ tf_em_ext_free(struct tf *tfp, > rc =3D tf_session_get_session_internal(tfp, &tfs); > if (rc) { > TFP_DRV_LOG(ERR, "Failed to get tf_session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return -EINVAL; > } > > @@ -555,7 +555,7 @@ tf_em_ext_free(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get em_ext_db from session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > ext_db =3D (struct em_ext_db *)ext_ptr; > diff --git a/drivers/net/bnxt/tf_core/tf_em_internal.c b/drivers/net/bnxt= /tf_core/tf_em_internal.c > index 7f7a663789..2fea8adb4b 100644 > --- a/drivers/net/bnxt/tf_core/tf_em_internal.c > +++ b/drivers/net/bnxt/tf_core/tf_em_internal.c > @@ -49,7 +49,7 @@ tf_em_insert_int_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -113,7 +113,7 @@ tf_em_delete_int_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -153,7 +153,7 @@ tf_em_move_callback(void *user_data, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(parms.dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -163,7 +163,7 @@ tf_em_move_callback(void *user_data, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(parms.dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -202,7 +202,7 @@ tf_em_int_bind(struct tf *tfp, > cparms.alignment =3D 0; > if (tfp_calloc(&cparms) !=3D 0) { > TFP_DRV_LOG(ERR, "em_rm_db alloc error %s\n", > - strerror(ENOMEM)); > + rte_strerror(ENOMEM)); > return -ENOMEM; > } > > @@ -232,7 +232,7 @@ tf_em_int_bind(struct tf *tfp, > "%s, EM Allocation must be in blocks = of %d, failure %s\n", > tf_dir_2_str(i), > TF_SESSION_EM_ENTRY_SIZE, > - strerror(-rc)); > + rte_strerror(-rc)); > > return rc; > } > @@ -278,7 +278,7 @@ tf_em_int_bind(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s, EM stack allocation failure= %s\n", > tf_dir_2_str(i), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > diff --git a/drivers/net/bnxt/tf_core/tf_global_cfg.c b/drivers/net/bnxt/= tf_core/tf_global_cfg.c > index 3a8030a2fb..ba748fdc23 100644 > --- a/drivers/net/bnxt/tf_core/tf_global_cfg.c > +++ b/drivers/net/bnxt/tf_core/tf_global_cfg.c > @@ -83,7 +83,7 @@ tf_global_cfg_bind(struct tf *tfp, > cparms.alignment =3D 0; > if (tfp_calloc(&cparms) !=3D 0) { > TFP_DRV_LOG(ERR, "global_rm_db alloc error %s\n", > - strerror(ENOMEM)); > + rte_strerror(ENOMEM)); > return -ENOMEM; > } > > @@ -141,7 +141,7 @@ tf_global_cfg_set(struct tf *tfp, > "%s, Failed type lookup, type:%d, rc:%s\n", > tf_dir_2_str(parms->dir), > parms->type, > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -151,7 +151,7 @@ tf_global_cfg_set(struct tf *tfp, > "%s, Set failed, type:%d, rc:%s\n", > tf_dir_2_str(parms->dir), > parms->type, > - strerror(-rc)); > + rte_strerror(-rc)); > } > > return 0; > @@ -185,7 +185,7 @@ tf_global_cfg_get(struct tf *tfp, > "%s, Failed type lookup, type:%d, rc:%s\n", > tf_dir_2_str(parms->dir), > parms->type, > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -196,7 +196,7 @@ tf_global_cfg_get(struct tf *tfp, > "%s, Get failed, type:%d, rc:%s\n", > tf_dir_2_str(parms->dir), > parms->type, > - strerror(-rc)); > + rte_strerror(-rc)); > } > > return 0; > diff --git a/drivers/net/bnxt/tf_core/tf_identifier.c b/drivers/net/bnxt/= tf_core/tf_identifier.c > index 7d9d9595dd..21e60a8ad5 100644 > --- a/drivers/net/bnxt/tf_core/tf_identifier.c > +++ b/drivers/net/bnxt/tf_core/tf_identifier.c > @@ -39,7 +39,7 @@ tf_ident_bind(struct tf *tfp, > cparms.alignment =3D 0; > if (tfp_calloc(&cparms) !=3D 0) { > TFP_DRV_LOG(ERR, "ident_rm_db alloc error %s\n", > - strerror(ENOMEM)); > + rte_strerror(ENOMEM)); > return -ENOMEM; > } > > @@ -124,7 +124,7 @@ tf_ident_alloc(struct tf *tfp __rte_unused, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get ident_db from session, rc:%s\n= ", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > ident_db =3D (struct ident_rm_db *)ident_db_ptr; > @@ -164,7 +164,7 @@ tf_ident_free(struct tf *tfp __rte_unused, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get ident_db from session, rc:%s\n= ", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > ident_db =3D (struct ident_rm_db *)ident_db_ptr; > @@ -222,7 +222,7 @@ tf_ident_search(struct tf *tfp __rte_unused, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get ident_db from session, rc:%s\n= ", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > ident_db =3D (struct ident_rm_db *)ident_db_ptr; > diff --git a/drivers/net/bnxt/tf_core/tf_if_tbl.c b/drivers/net/bnxt/tf_c= ore/tf_if_tbl.c > index 578d361417..4d85b77b4e 100644 > --- a/drivers/net/bnxt/tf_core/tf_if_tbl.c > +++ b/drivers/net/bnxt/tf_core/tf_if_tbl.c > @@ -65,7 +65,7 @@ tf_if_tbl_bind(struct tf *tfp, > cparms.alignment =3D 0; > if (tfp_calloc(&cparms) !=3D 0) { > TFP_DRV_LOG(ERR, "if_tbl_rm_db alloc error %s\n", > - strerror(ENOMEM)); > + rte_strerror(ENOMEM)); > return -ENOMEM; > } > > @@ -143,7 +143,7 @@ tf_if_tbl_set(struct tf *tfp, > "%s, If Tbl set failed, type:%d, rc:%s\n", > tf_dir_2_str(parms->dir), > parms->type, > - strerror(-rc)); > + rte_strerror(-rc)); > } > > return 0; > @@ -187,7 +187,7 @@ tf_if_tbl_get(struct tf *tfp, > "%s, If Tbl get failed, type:%d, rc:%s\n", > tf_dir_2_str(parms->dir), > parms->type, > - strerror(-rc)); > + rte_strerror(-rc)); > } > > return 0; > diff --git a/drivers/net/bnxt/tf_core/tf_msg.c b/drivers/net/bnxt/tf_core= /tf_msg.c > index 1c66c7e01a..5e180813d8 100644 > --- a/drivers/net/bnxt/tf_core/tf_msg.c > +++ b/drivers/net/bnxt/tf_core/tf_msg.c > @@ -216,7 +216,7 @@ tf_msg_session_client_register(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup device, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -224,7 +224,7 @@ tf_msg_session_client_register(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Unable to lookup FW id, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -291,7 +291,7 @@ tf_msg_session_client_unregister(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup device, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -299,7 +299,7 @@ tf_msg_session_client_unregister(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Unable to lookup FW id, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -361,7 +361,7 @@ tf_msg_session_qcfg(struct tf *tfp) > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -370,7 +370,7 @@ tf_msg_session_qcfg(struct tf *tfp) > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup device, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -378,7 +378,7 @@ tf_msg_session_qcfg(struct tf *tfp) > if (rc) { > TFP_DRV_LOG(ERR, > "Unable to lookup FW id, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -447,7 +447,7 @@ tf_msg_session_resc_qcaps(struct tf *tfp, > TFP_DRV_LOG(WARNING, > "%s: QCAPS message size error, rc:%s, request= %d vs response %d\n", > tf_dir_2_str(dir), > - strerror(EINVAL), > + rte_strerror(EINVAL), > size, > resp.size); > } > @@ -498,7 +498,7 @@ tf_msg_session_resc_alloc(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -509,7 +509,7 @@ tf_msg_session_resc_alloc(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Unable to lookup FW id, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -559,7 +559,7 @@ tf_msg_session_resc_alloc(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Alloc message size error, rc:%s\n", > tf_dir_2_str(dir), > - strerror(EINVAL)); > + rte_strerror(EINVAL)); > rc =3D -EINVAL; > goto cleanup; > } > @@ -605,7 +605,7 @@ tf_msg_session_resc_info(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -616,7 +616,7 @@ tf_msg_session_resc_info(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Unable to lookup FW id, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -666,7 +666,7 @@ tf_msg_session_resc_info(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Alloc message size error, rc:%s\n", > tf_dir_2_str(dir), > - strerror(EINVAL)); > + rte_strerror(EINVAL)); > rc =3D -EINVAL; > goto cleanup; > } > @@ -712,7 +712,7 @@ tf_msg_session_resc_flush(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -722,7 +722,7 @@ tf_msg_session_resc_flush(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -731,7 +731,7 @@ tf_msg_session_resc_flush(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Unable to lookup FW id, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -797,7 +797,7 @@ tf_msg_insert_em_internal_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(em_parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -807,7 +807,7 @@ tf_msg_insert_em_internal_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(em_parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -816,7 +816,7 @@ tf_msg_insert_em_internal_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Unable to lookup FW id, rc:%s\n", > tf_dir_2_str(em_parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -830,7 +830,7 @@ tf_msg_insert_em_internal_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Invalid parameters for msg type, rc:%s\n= ", > tf_dir_2_str(em_parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -893,7 +893,7 @@ tf_msg_hash_insert_em_internal_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(em_parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -903,7 +903,7 @@ tf_msg_hash_insert_em_internal_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(em_parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -912,7 +912,7 @@ tf_msg_hash_insert_em_internal_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Unable to lookup FW id, rc:%s\n", > tf_dir_2_str(em_parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -927,7 +927,7 @@ tf_msg_hash_insert_em_internal_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Record size to large, rc:%s\n", > tf_dir_2_str(em_parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -982,7 +982,7 @@ tf_msg_delete_em_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(em_parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -992,7 +992,7 @@ tf_msg_delete_em_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(em_parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1001,7 +1001,7 @@ tf_msg_delete_em_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Unable to lookup FW id, rc:%s\n", > tf_dir_2_str(em_parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1050,7 +1050,7 @@ tf_msg_move_em_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(em_parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1060,7 +1060,7 @@ tf_msg_move_em_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(em_parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1069,7 +1069,7 @@ tf_msg_move_em_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Unable to lookup FW id, rc:%s\n", > tf_dir_2_str(em_parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1120,7 +1120,7 @@ int tf_msg_ext_em_ctxt_mem_alloc(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1129,7 +1129,7 @@ int tf_msg_ext_em_ctxt_mem_alloc(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup device, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > /* Retrieve the session information */ > @@ -1149,7 +1149,7 @@ int tf_msg_ext_em_ctxt_mem_alloc(struct tf *tfp, > rc =3D tfp_send_msg_direct(tf_session_get_bp(tfp), &parms= ); > if (rc) { > TFP_DRV_LOG(ERR, "Failed ext_em_alloc error rc:%s= \n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1180,7 +1180,7 @@ int tf_msg_ext_em_ctxt_mem_free(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1189,7 +1189,7 @@ int tf_msg_ext_em_ctxt_mem_free(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup device, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > /* Retrieve the session information */ > @@ -1231,7 +1231,7 @@ tf_msg_em_mem_rgtr(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1240,7 +1240,7 @@ tf_msg_em_mem_rgtr(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup device, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > fw_se_id =3D tfs->session_id.internal.fw_session_id; > @@ -1284,7 +1284,7 @@ tf_msg_em_mem_unrgtr(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1293,7 +1293,7 @@ tf_msg_em_mem_unrgtr(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup device, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1334,7 +1334,7 @@ tf_msg_em_qcaps(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > fw_se_id =3D tfs->session_id.internal.fw_session_id; > @@ -1345,7 +1345,7 @@ tf_msg_em_qcaps(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1401,7 +1401,7 @@ tf_msg_em_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1411,7 +1411,7 @@ tf_msg_em_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1465,7 +1465,7 @@ tf_msg_ext_em_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1475,7 +1475,7 @@ tf_msg_ext_em_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > fw_se_id =3D tfs->session_id.internal.fw_session_id; > @@ -1534,7 +1534,7 @@ tf_msg_em_op(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1544,7 +1544,7 @@ tf_msg_em_op(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1585,7 +1585,7 @@ tf_msg_tcam_entry_set(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1594,7 +1594,7 @@ tf_msg_tcam_entry_set(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Unable to lookup FW id, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1664,7 +1664,7 @@ tf_msg_tcam_entry_get(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1673,7 +1673,7 @@ tf_msg_tcam_entry_get(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Unable to lookup FW id, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1705,7 +1705,7 @@ tf_msg_tcam_entry_get(struct tf *tfp, > tf_dir_2_str(parms->dir), > parms->key_size, > resp.key_size, > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > parms->key_size =3D resp.key_size; > @@ -1734,7 +1734,7 @@ tf_msg_tcam_entry_free(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1743,7 +1743,7 @@ tf_msg_tcam_entry_free(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Unable to lookup FW id, rc:%s\n", > tf_dir_2_str(in_parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1793,7 +1793,7 @@ tf_msg_set_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1803,7 +1803,7 @@ tf_msg_set_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1812,7 +1812,7 @@ tf_msg_set_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Unable to lookup FW id, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1877,7 +1877,7 @@ tf_msg_get_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1887,7 +1887,7 @@ tf_msg_get_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1896,7 +1896,7 @@ tf_msg_get_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Unable to lookup FW id, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > flags =3D (dir =3D=3D TF_DIR_TX ? > @@ -1964,7 +1964,7 @@ tf_msg_get_global_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(params->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1974,7 +1974,7 @@ tf_msg_get_global_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(params->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1983,7 +1983,7 @@ tf_msg_get_global_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Unable to lookup FW id, rc:%s\n", > tf_dir_2_str(params->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -2043,7 +2043,7 @@ tf_msg_set_global_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(params->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -2053,7 +2053,7 @@ tf_msg_set_global_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(params->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -2062,7 +2062,7 @@ tf_msg_set_global_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Unable to lookup FW id, rc:%s\n", > tf_dir_2_str(params->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -2082,7 +2082,7 @@ tf_msg_set_global_cfg(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Invalid parameters for msg type, rc:%s\n= ", > tf_dir_2_str(params->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -2140,7 +2140,7 @@ tf_msg_bulk_get_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -2150,7 +2150,7 @@ tf_msg_bulk_get_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -2159,7 +2159,7 @@ tf_msg_bulk_get_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Unable to lookup FW id, rc:%s\n", > tf_dir_2_str(dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > flags =3D (dir =3D=3D TF_DIR_TX ? > @@ -2217,7 +2217,7 @@ tf_msg_get_if_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(params->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -2227,7 +2227,7 @@ tf_msg_get_if_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup device, rc:%s\n", > tf_dir_2_str(params->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -2278,7 +2278,7 @@ tf_msg_set_if_tbl_entry(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Failed to lookup session, rc:%s\n", > tf_dir_2_str(params->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -2366,7 +2366,7 @@ tf_msg_session_set_hotup_state(struct tf *tfp, uint= 16_t state) > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -2375,7 +2375,7 @@ tf_msg_session_set_hotup_state(struct tf *tfp, uint= 16_t state) > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup device, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -2383,7 +2383,7 @@ tf_msg_session_set_hotup_state(struct tf *tfp, uint= 16_t state) > if (rc) { > TFP_DRV_LOG(ERR, > "Unable to lookup FW id, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -2421,7 +2421,7 @@ tf_msg_session_get_hotup_state(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -2430,7 +2430,7 @@ tf_msg_session_get_hotup_state(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup device, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -2438,7 +2438,7 @@ tf_msg_session_get_hotup_state(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Unable to lookup FW id, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > diff --git a/drivers/net/bnxt/tf_core/tf_rm.c b/drivers/net/bnxt/tf_core/= tf_rm.c > index 9b85f5397d..05d05befaa 100644 > --- a/drivers/net/bnxt/tf_core/tf_rm.c > +++ b/drivers/net/bnxt/tf_core/tf_rm.c > @@ -1059,7 +1059,7 @@ tf_rm_get_pool(struct tf_rm_new_db *rm_db, > "%s: Invalid pool for this type:%d, rc:%s\n", > tf_dir_2_str(rm_db->dir), > tmp_subtype, > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > *new_subtype =3D tmp_subtype; > @@ -1106,7 +1106,7 @@ tf_rm_allocate(struct tf_rm_allocate_parms *parms) > TFP_DRV_LOG(ERR, > "%s: Allocation failed, rc:%s\n", > tf_dir_2_str(rm_db->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1120,7 +1120,7 @@ tf_rm_allocate(struct tf_rm_allocate_parms *parms) > TFP_DRV_LOG(ERR, > "%s: Alloc adjust of base index failed, rc:%s= \n", > tf_dir_2_str(rm_db->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return -EINVAL; > } > > diff --git a/drivers/net/bnxt/tf_core/tf_session.c b/drivers/net/bnxt/tf_= core/tf_session.c > index 253d716572..a1f9848aed 100644 > --- a/drivers/net/bnxt/tf_core/tf_session.c > +++ b/drivers/net/bnxt/tf_core/tf_session.c > @@ -78,11 +78,11 @@ tf_session_create(struct tf *tfp, > if (rc =3D=3D -EEXIST) > TFP_DRV_LOG(ERR, > "Session is already open, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > else > TFP_DRV_LOG(ERR, > "Open message send failed, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > > parms->open_cfg->session_id.id =3D TF_FW_SESSION_ID_INVAL= ID; > return rc; > @@ -97,7 +97,7 @@ tf_session_create(struct tf *tfp, > /* Log error */ > TFP_DRV_LOG(ERR, > "Failed to allocate session info, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > goto cleanup; > } > tfp->session =3D (struct tf_session_info *)cparms.mem_va; > @@ -111,7 +111,7 @@ tf_session_create(struct tf *tfp, > /* Log error */ > TFP_DRV_LOG(ERR, > "Failed to allocate session data, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > goto cleanup; > } > tfp->session->core_data =3D cparms.mem_va; > @@ -154,7 +154,7 @@ tf_session_create(struct tf *tfp, > /* Log error */ > TFP_DRV_LOG(ERR, > "Failed to allocate session client, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > goto cleanup; > } > client =3D cparms.mem_va; > @@ -226,7 +226,7 @@ tf_session_create(struct tf *tfp, > /* Log error */ > TFP_DRV_LOG(ERR, > "FW Session close failed, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > } > if (tfp->session) { > tfp_free(tfp->session->core_data); > @@ -268,7 +268,7 @@ tf_session_client_create(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -289,7 +289,7 @@ tf_session_client_create(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to create client on session, rc:%s\n"= , > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -303,7 +303,7 @@ tf_session_client_create(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to allocate session client, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > goto cleanup; > } > client =3D cparms.mem_va; > @@ -320,7 +320,7 @@ tf_session_client_create(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Session Firmware id lookup failed, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -373,7 +373,7 @@ tf_session_client_destroy(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to lookup session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -405,7 +405,7 @@ tf_session_client_destroy(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Client destroy on FW Failed, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > } > > ll_delete(&tfs->client_ll, &client->ll_entry); > @@ -435,7 +435,7 @@ tf_session_open_session(struct tf *tfp, > TFP_DRV_LOG(ERR, > "Failed to create session, ctrl_chan_= name:%s, rc:%s\n", > parms->open_cfg->ctrl_chan_name, > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -457,7 +457,7 @@ tf_session_open_session(struct tf *tfp, > TFP_DRV_LOG(ERR, > "Failed to create client on session 0x%x, r= c:%s\n", > parms->open_cfg->session_id.id, > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -480,7 +480,7 @@ tf_session_attach_session(struct tf *tfp __rte_unused= , > > TFP_DRV_LOG(ERR, > "Attach not yet supported, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -503,7 +503,7 @@ tf_session_close_session(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Session lookup failed, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -511,7 +511,7 @@ tf_session_close_session(struct tf *tfp, > rc =3D -EINVAL; > TFP_DRV_LOG(ERR, > "Invalid session id, unable to close, rc:%s\n= ", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -531,7 +531,7 @@ tf_session_close_session(struct tf *tfp, > rc =3D -EINVAL; > TFP_DRV_LOG(ERR, > "Client not part of the session, unable to cl= ose, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -556,7 +556,7 @@ tf_session_close_session(struct tf *tfp, > TFP_DRV_LOG(ERR, > "Failed to unregister Client %d, rc:%= s\n", > client->session_client_id.id, > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -576,7 +576,7 @@ tf_session_close_session(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Device lookup failed, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -586,7 +586,7 @@ tf_session_close_session(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Unable to lookup FW id, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -596,7 +596,7 @@ tf_session_close_session(struct tf *tfp, > /* Log error */ > TFP_DRV_LOG(ERR, > "Device unbind failed, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > } > > rc =3D tf_msg_session_close(tfp, fw_session_id, mailbox); > @@ -604,7 +604,7 @@ tf_session_close_session(struct tf *tfp, > /* Log error */ > TFP_DRV_LOG(ERR, > "FW Session close failed, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > } > > /* Final cleanup as we're last user of the session thus we > @@ -658,7 +658,7 @@ tf_session_get_session_internal(struct tf *tfp, > rc =3D -EINVAL; > TFP_DRV_LOG(ERR, > "Session not created, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -689,7 +689,7 @@ tf_session_get_session(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Internal FID lookup\n, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -698,7 +698,7 @@ tf_session_get_session(struct tf *tfp, > TFP_DRV_LOG > (ERR, > "Ctrl channel not registered with session\n, rc:%= s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return -EINVAL; > } > > @@ -810,7 +810,7 @@ tf_session_get_fw_session_id(struct tf *tfp, > rc =3D -EINVAL; > TFP_DRV_LOG(ERR, > "Session not created, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -818,7 +818,7 @@ tf_session_get_fw_session_id(struct tf *tfp, > rc =3D -EINVAL; > TFP_DRV_LOG(ERR, > "Invalid Argument(s), rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -842,7 +842,7 @@ tf_session_get_session_id(struct tf *tfp, > rc =3D -EINVAL; > TFP_DRV_LOG(ERR, > "Session not created, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -850,7 +850,7 @@ tf_session_get_session_id(struct tf *tfp, > rc =3D -EINVAL; > TFP_DRV_LOG(ERR, > "Invalid Argument(s), rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1152,7 +1152,7 @@ tf_session_set_hotup_state(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Session lookup failed, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1160,7 +1160,7 @@ tf_session_set_hotup_state(struct tf *tfp, > rc =3D -EINVAL; > TFP_DRV_LOG(ERR, > "Only shared session able to set state, rc:%s= \n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1169,7 +1169,7 @@ tf_session_set_hotup_state(struct tf *tfp, > /* Log error */ > TFP_DRV_LOG(ERR, > "Set session hot upgrade state failed, rc:%s\= n", > - strerror(-rc)); > + rte_strerror(-rc)); > } > > return rc; > @@ -1186,7 +1186,7 @@ tf_session_get_hotup_state(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Session lookup failed, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1194,7 +1194,7 @@ tf_session_get_hotup_state(struct tf *tfp, > rc =3D -EINVAL; > TFP_DRV_LOG(ERR, > "Only shared session able to get state, rc:%s= \n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -1203,7 +1203,7 @@ tf_session_get_hotup_state(struct tf *tfp, > /* Log error */ > TFP_DRV_LOG(ERR, > "Get session hot upgrade state failed, rc:%s\= n", > - strerror(-rc)); > + rte_strerror(-rc)); > } > > return rc; > diff --git a/drivers/net/bnxt/tf_core/tf_sram_mgr.c b/drivers/net/bnxt/tf= _core/tf_sram_mgr.c > index 87e8882fed..afbc3a3e46 100644 > --- a/drivers/net/bnxt/tf_core/tf_sram_mgr.c > +++ b/drivers/net/bnxt/tf_core/tf_sram_mgr.c > @@ -494,7 +494,7 @@ static struct tf_sram_block > /* Log error */ > TFP_DRV_LOG(ERR, > "Failed to allocate block, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return NULL; > } > block =3D (struct tf_sram_block *)cparms.mem_va; > @@ -588,7 +588,7 @@ tf_sram_mgr_bind(void **sram_handle) > /* Log error */ > TFP_DRV_LOG(ERR, > "Failed to allocate SRAM mgmt data, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > sram =3D (struct tf_sram *)cparms.mem_va; > @@ -628,7 +628,7 @@ tf_sram_mgr_unbind(void *sram_handle) > /* Log error */ > TFP_DRV_LOG(ERR, > "No SRAM slice list, rc= :%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > if (tf_sram_get_block_cnt(slice_list)) > @@ -670,7 +670,7 @@ int tf_sram_mgr_alloc(void *sram_handle, > /* Log error */ > TFP_DRV_LOG(ERR, > "No SRAM slice list, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -759,7 +759,7 @@ tf_sram_mgr_free(void *sram_handle, > /* Log error */ > TFP_DRV_LOG(ERR, > "No SRAM slice list, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -781,7 +781,7 @@ tf_sram_mgr_free(void *sram_handle, > rc =3D tf_sram_free_slice(parms->slice_size, slice_offset, > block, &block_is_empty); > if (rc) { > - TFP_DRV_LOG(ERR, "Error freeing slice (%s)\n", strerror(-= rc)); > + TFP_DRV_LOG(ERR, "Error freeing slice (%s)\n", rte_strerr= or(-rc)); > return rc; > } > #if (STATS_CLEAR_ON_READ_SUPPORT =3D=3D 0) > @@ -805,7 +805,7 @@ tf_sram_mgr_free(void *sram_handle, > "%s, Failed type lookup, type:%s, rc:= %s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->tbl_type), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > /* Clear the counter > @@ -821,7 +821,7 @@ tf_sram_mgr_free(void *sram_handle, > "%s, Set failed, type:%s, rc:%s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->tbl_type), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > } > @@ -836,14 +836,14 @@ tf_sram_mgr_free(void *sram_handle, > > if (rc) { > TFP_DRV_LOG(ERR, "Free block_id(%d) failed error(= %s)\n", > - block_id, strerror(-rc)); > + block_id, rte_strerror(-rc)); > } > fparms.index =3D block_id + 1; > rc =3D tf_rm_free(&fparms); > > if (rc) { > TFP_DRV_LOG(ERR, "Free next block_id(%d) failed e= rror(%s)\n", > - block_id + 1, strerror(-rc)); > + block_id + 1, rte_strerror(-rc)); > } > /* Free local entry regardless */ > tf_sram_free_block(slice_list, block); > @@ -937,7 +937,7 @@ int tf_sram_mgr_is_allocated(void *sram_handle, > /* Log error */ > TFP_DRV_LOG(ERR, > "No SRAM slice list, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > diff --git a/drivers/net/bnxt/tf_core/tf_tbl.c b/drivers/net/bnxt/tf_core= /tf_tbl.c > index f5f3889934..0fbcba6c76 100644 > --- a/drivers/net/bnxt/tf_core/tf_tbl.c > +++ b/drivers/net/bnxt/tf_core/tf_tbl.c > @@ -45,7 +45,7 @@ tf_tbl_bind(struct tf *tfp, > cparms.alignment =3D 0; > if (tfp_calloc(&cparms) !=3D 0) { > TFP_DRV_LOG(ERR, "tbl_rm_db alloc error %s\n", > - strerror(ENOMEM)); > + rte_strerror(ENOMEM)); > return -ENOMEM; > } > > @@ -143,7 +143,7 @@ tf_tbl_alloc(struct tf *tfp __rte_unused, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get tbl_db from session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > tbl_db =3D (struct tbl_rm_db *)tbl_db_ptr; > @@ -195,7 +195,7 @@ tf_tbl_free(struct tf *tfp __rte_unused, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get em_ext_db from session, rc:%s\= n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > tbl_db =3D (struct tbl_rm_db *)tbl_db_ptr; > @@ -234,7 +234,7 @@ tf_tbl_free(struct tf *tfp __rte_unused, > "%s, Failed type lookup, type:%s, rc:= %s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > /* Clear the counter > @@ -250,7 +250,7 @@ tf_tbl_free(struct tf *tfp __rte_unused, > "%s, Set failed, type:%s, rc:%s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > } > @@ -302,7 +302,7 @@ tf_tbl_set(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get em_ext_db from session, rc:%s\= n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > tbl_db =3D (struct tbl_rm_db *)tbl_db_ptr; > @@ -341,7 +341,7 @@ tf_tbl_set(struct tf *tfp, > "%s, Failed type lookup, type:%s, rc:%s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -356,7 +356,7 @@ tf_tbl_set(struct tf *tfp, > "%s, Set failed, type:%s, rc:%s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -393,7 +393,7 @@ tf_tbl_get(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get em_ext_db from session, rc:%s\= n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > tbl_db =3D (struct tbl_rm_db *)tbl_db_ptr; > @@ -432,7 +432,7 @@ tf_tbl_get(struct tf *tfp, > "%s, Failed type lookup, type:%s, rc:%s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -449,7 +449,7 @@ tf_tbl_get(struct tf *tfp, > "%s, Get failed, type:%s, rc:%s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -485,7 +485,7 @@ tf_tbl_bulk_get(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get em_ext_db from session, rc:%s\= n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > tbl_db =3D (struct tbl_rm_db *)tbl_db_ptr; > @@ -517,7 +517,7 @@ tf_tbl_bulk_get(struct tf *tfp, > "%s, Failed type lookup, type:%s, rc:%s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -535,7 +535,7 @@ tf_tbl_bulk_get(struct tf *tfp, > "%s, Bulk get failed, type:%s, rc:%s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > - strerror(-rc)); > + rte_strerror(-rc)); > } > > return rc; > diff --git a/drivers/net/bnxt/tf_core/tf_tbl_sram.c b/drivers/net/bnxt/tf= _core/tf_tbl_sram.c > index 3a6f1c68c7..39dbe11610 100644 > --- a/drivers/net/bnxt/tf_core/tf_tbl_sram.c > +++ b/drivers/net/bnxt/tf_core/tf_tbl_sram.c > @@ -114,7 +114,7 @@ static int tf_tbl_sram_get_info(struct tf_tbl_sram_ge= t_info_parms *parms) > "%s: Failed to get hcapi_type %s, rc:%s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->tbl_type), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > parms->bank_id =3D tf_tbl_sram_hcapi_2_bank[hcapi_type]; > @@ -129,7 +129,7 @@ static int tf_tbl_sram_get_info(struct tf_tbl_sram_ge= t_info_parms *parms) > "%s: Failed to get slice cnt %s, rc:%s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->tbl_type), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > if (slices) > @@ -168,7 +168,7 @@ tf_tbl_sram_unbind(struct tf *tfp __rte_unused) > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get sram_handle from session, rc:%= s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > if (sram_handle) > @@ -204,7 +204,7 @@ tf_tbl_sram_alloc(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get tbl_db from session, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -214,7 +214,7 @@ tf_tbl_sram_alloc(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get sram_handle from session, rc:%= s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -290,7 +290,7 @@ tf_tbl_sram_free(struct tf *tfp __rte_unused, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get em_ext_db from session, rc:%s\= n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > tbl_db =3D (struct tbl_rm_db *)tbl_db_ptr; > @@ -299,7 +299,7 @@ tf_tbl_sram_free(struct tf *tfp __rte_unused, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get sram_handle from session, rc:%= s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -345,7 +345,7 @@ tf_tbl_sram_free(struct tf *tfp __rte_unused, > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > parms->idx, > - strerror(-rc)); > + rte_strerror(-rc)); > rc =3D -ENOMEM; > return rc; > } > @@ -417,7 +417,7 @@ tf_tbl_sram_set(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get em_ext_db from session, rc:%s\= n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > tbl_db =3D (struct tbl_rm_db *)tbl_db_ptr; > @@ -426,7 +426,7 @@ tf_tbl_sram_set(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get sram_handle from session, rc:%= s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -489,7 +489,7 @@ tf_tbl_sram_set(struct tf *tfp, > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > parms->idx, > - strerror(-rc)); > + rte_strerror(-rc)); > rc =3D -ENOMEM; > return rc; > } > @@ -504,7 +504,7 @@ tf_tbl_sram_set(struct tf *tfp, > "%s, Failed type lookup, type:%s, rc:%s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -519,7 +519,7 @@ tf_tbl_sram_set(struct tf *tfp, > "%s, Set failed, type:%s, rc:%s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > return rc; > @@ -553,7 +553,7 @@ tf_tbl_sram_get(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get em_ext_db from session, rc:%s\= n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > tbl_db =3D (struct tbl_rm_db *)tbl_db_ptr; > @@ -562,7 +562,7 @@ tf_tbl_sram_get(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get sram_handle from session, rc:%= s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -592,7 +592,7 @@ tf_tbl_sram_get(struct tf *tfp, > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > parms->idx, > - strerror(-rc)); > + rte_strerror(-rc)); > rc =3D -ENOMEM; > return rc; > } > @@ -607,7 +607,7 @@ tf_tbl_sram_get(struct tf *tfp, > "%s, Failed type lookup, type:%s, rc:%s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > if (parms->type =3D=3D TF_TBL_TYPE_ACT_STATS_64) > @@ -626,7 +626,7 @@ tf_tbl_sram_get(struct tf *tfp, > "%s, Get failed, type:%s, rc:%s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > return rc; > @@ -661,7 +661,7 @@ tf_tbl_sram_bulk_get(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get em_ext_db from session, rc:%s\= n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > tbl_db =3D (struct tbl_rm_db *)tbl_db_ptr; > @@ -670,7 +670,7 @@ tf_tbl_sram_bulk_get(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get sram_handle from session, rc:%= s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -703,7 +703,7 @@ tf_tbl_sram_bulk_get(struct tf *tfp, > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > parms->starting_idx, > - strerror(-rc)); > + rte_strerror(-rc)); > rc =3D -ENOMEM; > return rc; > } > @@ -716,7 +716,7 @@ tf_tbl_sram_bulk_get(struct tf *tfp, > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > idx, > - strerror(-rc)); > + rte_strerror(-rc)); > rc =3D -ENOMEM; > return rc; > } > @@ -730,7 +730,7 @@ tf_tbl_sram_bulk_get(struct tf *tfp, > "%s, Failed type lookup, type:%s, rc:%s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -751,7 +751,7 @@ tf_tbl_sram_bulk_get(struct tf *tfp, > "%s, Bulk get failed, type:%s, rc:%s\n", > tf_dir_2_str(parms->dir), > tf_tbl_type_2_str(parms->type), > - strerror(-rc)); > + rte_strerror(-rc)); > } > return rc; > } > diff --git a/drivers/net/bnxt/tf_core/tf_tcam.c b/drivers/net/bnxt/tf_cor= e/tf_tcam.c > index 9e0671d47b..5924c5e6c1 100644 > --- a/drivers/net/bnxt/tf_core/tf_tcam.c > +++ b/drivers/net/bnxt/tf_core/tf_tcam.c > @@ -57,7 +57,7 @@ tf_tcam_bind(struct tf *tfp, > rc =3D -EOPNOTSUPP; > TFP_DRV_LOG(ERR, > "Operation not supported, rc:%s\n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -91,7 +91,7 @@ tf_tcam_bind(struct tf *tfp, > cparms.alignment =3D 0; > if (tfp_calloc(&cparms) !=3D 0) { > TFP_DRV_LOG(ERR, "tcam_rm_db alloc error %s\n", > - strerror(ENOMEM)); > + rte_strerror(ENOMEM)); > return -ENOMEM; > } > > @@ -301,7 +301,7 @@ tf_tcam_alloc(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -320,7 +320,7 @@ tf_tcam_alloc(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get tcam_db from session, rc:%s\n"= , > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > tcam_db =3D (struct tcam_rm_db *)tcam_db_ptr; > @@ -385,7 +385,7 @@ tf_tcam_free(struct tf *tfp, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -417,7 +417,7 @@ tf_tcam_free(struct tf *tfp, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get em_ext_db from session, rc:%s\= n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > tcam_db =3D (struct tcam_rm_db *)tcam_db_ptr; > @@ -477,7 +477,7 @@ tf_tcam_free(struct tf *tfp, > tf_dir_2_str(parms->dir), > tf_tcam_tbl_2_str(parms->type), > parms->idx, > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -515,7 +515,7 @@ tf_tcam_set(struct tf *tfp __rte_unused, > TFP_DRV_LOG(ERR, > "%s: Operation not supported, rc:%s\n", > tf_dir_2_str(parms->dir), > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > @@ -535,7 +535,7 @@ tf_tcam_set(struct tf *tfp __rte_unused, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get em_ext_db from session, rc:%s\= n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > tcam_db =3D (struct tcam_rm_db *)tcam_db_ptr; > @@ -579,7 +579,7 @@ tf_tcam_set(struct tf *tfp __rte_unused, > tf_dir_2_str(parms->dir), > tf_tcam_tbl_2_str(parms->type), > parms->idx, > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > return 0; > @@ -618,7 +618,7 @@ tf_tcam_get(struct tf *tfp __rte_unused, > if (rc) { > TFP_DRV_LOG(ERR, > "Failed to get em_ext_db from session, rc:%s\= n", > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > tcam_db =3D (struct tcam_rm_db *)tcam_db_ptr; > @@ -662,7 +662,7 @@ tf_tcam_get(struct tf *tfp __rte_unused, > tf_dir_2_str(parms->dir), > tf_tcam_tbl_2_str(parms->type), > parms->idx, > - strerror(-rc)); > + rte_strerror(-rc)); > return rc; > } > > -- > 2.33.0 > --0000000000000e428206252aafd0 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQdgYJKoZIhvcNAQcCoIIQZzCCEGMCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3NMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXfYnK7zeop26ry1RpKtogB7/O115zultAz64ydQYLe+a1e/czkALg3sgTcOOcFZTXk38e aqsXsipoX1vsNurqPtnC27TWsA7pk4uKXscFjkeUE8JZu9BDKaswZygxBOPBQBwrA5+20Wxlk6k1 e6EKaaNaNZUy30q3ArEf30ZDpXyfCtiXnupjSK8WU2cK4qsEtj09JS4+mhi0CTCrCnXAzum3tgcH cHRg0prcSzzEUDQWoFxyuqwiwhHu3sPQNmFOMwIDAQABo4IB2jCCAdYwDgYDVR0PAQH/BAQDAgGG MGAGA1UdJQRZMFcGCCsGAQUFBwMCBggrBgEFBQcDBAYKKwYBBAGCNxQCAgYKKwYBBAGCNwoDBAYJ KwYBBAGCNxUGBgorBgEEAYI3CgMMBggrBgEFBQcDBwYIKwYBBQUHAxEwEgYDVR0TAQH/BAgwBgEB /wIBADAdBgNVHQ4EFgQUljPR5lgXWzR1ioFWZNW+SN6hj88wHwYDVR0jBBgwFoAUj/BLf6guRSSu TVD6Y5qL3uLdG7wwegYIKwYBBQUHAQEEbjBsMC0GCCsGAQUFBzABhiFodHRwOi8vb2NzcC5nbG9i YWxzaWduLmNvbS9yb290cjMwOwYIKwYBBQUHMAKGL2h0dHA6Ly9zZWN1cmUuZ2xvYmFsc2lnbi5j b20vY2FjZXJ0L3Jvb3QtcjMuY3J0MDYGA1UdHwQvMC0wK6ApoCeGJWh0dHA6Ly9jcmwuZ2xvYmFs c2lnbi5jb20vcm9vdC1yMy5jcmwwWgYDVR0gBFMwUTALBgkrBgEEAaAyASgwQgYKKwYBBAGgMgEo CjA0MDIGCCsGAQUFBwIBFiZodHRwczovL3d3dy5nbG9iYWxzaWduLmNvbS9yZXBvc2l0b3J5LzAN BgkqhkiG9w0BAQsFAAOCAQEAdAXk/XCnDeAOd9nNEUvWPxblOQ/5o/q6OIeTYvoEvUUi2qHUOtbf jBGdTptFsXXe4RgjVF9b6DuizgYfy+cILmvi5hfk3Iq8MAZsgtW+A/otQsJvK2wRatLE61RbzkX8 9/OXEZ1zT7t/q2RiJqzpvV8NChxIj+P7WTtepPm9AIj0Keue+gS2qvzAZAY34ZZeRHgA7g5O4TPJ /oTd+4rgiU++wLDlcZYd/slFkaT3xg4qWDepEMjT4T1qFOQIL+ijUArYS4owpPg9NISTKa1qqKWJ jFoyms0d0GwOniIIbBvhI2MJ7BSY9MYtWVT5jJO3tsVHwj4cp92CSFuGwunFMzCCA18wggJHoAMC AQICCwQAAAAAASFYUwiiMA0GCSqGSIb3DQEBCwUAMEwxIDAeBgNVBAsTF0dsb2JhbFNpZ24gUm9v dCBDQSAtIFIzMRMwEQYDVQQKEwpHbG9iYWxTaWduMRMwEQYDVQQDEwpHbG9iYWxTaWduMB4XDTA5 MDMxODEwMDAwMFoXDTI5MDMxODEwMDAwMFowTDEgMB4GA1UECxMXR2xvYmFsU2lnbiBSb290IENB IC0gUjMxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkdsb2JhbFNpZ24wggEiMA0GCSqG SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDMJXaQeQZ4Ihb1wIO2hMoonv0FdhHFrYhy/EYCQ8eyip0E XyTLLkvhYIJG4VKrDIFHcGzdZNHr9SyjD4I9DCuul9e2FIYQebs7E4B3jAjhSdJqYi8fXvqWaN+J J5U4nwbXPsnLJlkNc96wyOkmDoMVxu9bi9IEYMpJpij2aTv2y8gokeWdimFXN6x0FNx04Druci8u nPvQu7/1PQDhBjPogiuuU6Y6FnOM3UEOIDrAtKeh6bJPkC4yYOlXy7kEkmho5TgmYHWyn3f/kRTv riBJ/K1AFUjRAjFhGV64l++td7dkmnq/X8ET75ti+w1s4FRpFqkD2m7pg5NxdsZphYIXAgMBAAGj QjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBSP8Et/qC5FJK5N UPpjmove4t0bvDANBgkqhkiG9w0BAQsFAAOCAQEAS0DbwFCq/sgM7/eWVEVJu5YACUGssxOGhigH M8pr5nS5ugAtrqQK0/Xx8Q+Kv3NnSoPHRHt44K9ubG8DKY4zOUXDjuS5V2yq/BKW7FPGLeQkbLmU Y/vcU2hnVj6DuM81IcPJaP7O2sJTqsyQiunwXUaMld16WCgaLx3ezQA3QY/tRG3XUyiXfvNnBB4V 14qWtNPeTCekTBtzc3b0F5nCH3oO4y0IrQocLP88q1UOD5F+NuvDV0m+4S4tfGCLw0FREyOdzvcy a5QBqJnnLDMfOjsl0oZAzjsshnjJYS8Uuu7bVW/fhO4FCU29KNhyztNiUGUe65KXgzHZs7XKR1g/ XzCCBVUwggQ9oAMCAQICDAzZWuPidkrRZaiw2zANBgkqhkiG9w0BAQsFADBbMQswCQYDVQQGEwJC RTEZMBcGA1UEChMQR2xvYmFsU2lnbiBudi1zYTExMC8GA1UEAxMoR2xvYmFsU2lnbiBHQ0MgUjMg UGVyc29uYWxTaWduIDIgQ0EgMjAyMDAeFw0yMjA5MTAwODE4NDVaFw0yNTA5MTAwODE4NDVaMIGW MQswCQYDVQQGEwJJTjESMBAGA1UECBMJS2FybmF0YWthMRIwEAYDVQQHEwlCYW5nYWxvcmUxFjAU BgNVBAoTDUJyb2FkY29tIEluYy4xHDAaBgNVBAMTE0FqaXQgS3VtYXIgS2hhcGFyZGUxKTAnBgkq hkiG9w0BCQEWGmFqaXQua2hhcGFyZGVAYnJvYWRjb20uY29tMIIBIjANBgkqhkiG9w0BAQEFAAOC AQ8AMIIBCgKCAQEArZ/Aqg34lMOo2BabvAa+dRThl9OeUUJMob125dz+jvS78k4NZn1mYrHu53Dn YycqjtuSMlJ6vJuwN2W6QpgTaA2SDt5xTB7CwA2urpcm7vWxxLOszkr5cxMB1QBbTd77bXFuyTqW jrer3VIWqOujJ1n+n+1SigMwEr7PKQR64YKq2aRYn74ukY3DlQdKUrm2yUkcA7aExLcAwHWUna/u pZEyqKnwS1lKCzjX7mV5W955rFsFxChdAKfw0HilwtqdY24mhy62+GeaEkD0gYIj1tCmw9gnQToc K+0s7xEunfR9pBrzmOwS3OQbcP0nJ8SmQ8R+reroH6LYuFpaqK1rgQIDAQABo4IB2zCCAdcwDgYD VR0PAQH/BAQDAgWgMIGjBggrBgEFBQcBAQSBljCBkzBOBggrBgEFBQcwAoZCaHR0cDovL3NlY3Vy ZS5nbG9iYWxzaWduLmNvbS9jYWNlcnQvZ3NnY2NyM3BlcnNvbmFsc2lnbjJjYTIwMjAuY3J0MEEG CCsGAQUFBzABhjVodHRwOi8vb2NzcC5nbG9iYWxzaWduLmNvbS9nc2djY3IzcGVyc29uYWxzaWdu MmNhMjAyMDBNBgNVHSAERjBEMEIGCisGAQQBoDIBKAowNDAyBggrBgEFBQcCARYmaHR0cHM6Ly93 d3cuZ2xvYmFsc2lnbi5jb20vcmVwb3NpdG9yeS8wCQYDVR0TBAIwADBJBgNVHR8EQjBAMD6gPKA6 hjhodHRwOi8vY3JsLmdsb2JhbHNpZ24uY29tL2dzZ2NjcjNwZXJzb25hbHNpZ24yY2EyMDIwLmNy bDAlBgNVHREEHjAcgRphaml0LmtoYXBhcmRlQGJyb2FkY29tLmNvbTATBgNVHSUEDDAKBggrBgEF BQcDBDAfBgNVHSMEGDAWgBSWM9HmWBdbNHWKgVZk1b5I3qGPzzAdBgNVHQ4EFgQUbrcTuh0mr2qP xYdtyDgFeRIiE/gwDQYJKoZIhvcNAQELBQADggEBALrc1TljKrDhXicOaZlzIQyqOEkKAZ324i8X OwzA0n2EcPGmMZvgARurvanSLD3mLeeuyq1feCcjfGM1CJFh4+EY7EkbFbpVPOIdstSBhbnAJnOl aC/q0wTndKoC/xXBhXOZB8YL/Zq4ZclQLMUO6xi/fFRyHviI5/IrosdrpniXFJ9ukJoOXtvdrEF+ KlMYg/Deg9xo3wddCqQIsztHSkR4XaANdn+dbLRQpctZ13BY1lim4uz5bYn3M0IxyZWkQ1JuPHCK aRJv0SfR88PoI4RB7NCEHqFwARTj1KvFPQi8pK/YISFydZYbZrxQdyWDidqm4wSuJfpE6i0cWvCd u50xggJtMIICaQIBATBrMFsxCzAJBgNVBAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNh MTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBSMyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwAgwM2Vrj 4nZK0WWosNswDQYJYIZIAWUDBAIBBQCggdQwLwYJKoZIhvcNAQkEMSIEIIXjuKMSonxckFSH8xkP VNbSJQ/77IHaZ7BO22EdjE5KMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkF MQ8XDTI0MTAyMzIwMjUxNlowaQYJKoZIhvcNAQkPMVwwWjALBglghkgBZQMEASowCwYJYIZIAWUD BAEWMAsGCWCGSAFlAwQBAjAKBggqhkiG9w0DBzALBgkqhkiG9w0BAQowCwYJKoZIhvcNAQEHMAsG CWCGSAFlAwQCATANBgkqhkiG9w0BAQEFAASCAQCLNAIDluj1+TJRrG8p5TirSpId+YUartu5LS7S 94K4K/APxepmxtEwx9cZ0bO7SWbEEHmthu9obdumYh2FCfjOMNTjV7Pi3t/RclY1BL1apl+VkX9Y koQ5MkuSfEUmwlsnc1Sl7G70xaqqN7wCBTEV4u4uc7oGMjM/JNKgiOC7uDUXFXMttchTQZw7xlxT 4VDA+D3Hr8hM4NqGIqUPDJbpXe26uQJabz7dzwgjDf6xjzbJmGOUYBDaJKVi9iV3odU+GiX2qh2o kjj8NScxq9x77cYiCvvE9t5oYfdaZ7cCWWe9xRGzC4nGcLNp8nE2KnKOMLyp6BBk3CG+6Kqf0wim --0000000000000e428206252aafd0--