get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/93574/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 93574,
    "url": "http://patches.dpdk.org/api/patches/93574/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210530085929.29695-26-venkatkumar.duvvuru@broadcom.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20210530085929.29695-26-venkatkumar.duvvuru@broadcom.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210530085929.29695-26-venkatkumar.duvvuru@broadcom.com",
    "date": "2021-05-30T08:58:56",
    "name": "[25/58] net/bnxt: add API to clear hi/lo WC region",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6bcfcd641c3ff24fd0b157d51a507277c8a01b1a",
    "submitter": {
        "id": 1635,
        "url": "http://patches.dpdk.org/api/people/1635/?format=api",
        "name": "Venkat Duvvuru",
        "email": "venkatkumar.duvvuru@broadcom.com"
    },
    "delegate": {
        "id": 1766,
        "url": "http://patches.dpdk.org/api/users/1766/?format=api",
        "username": "ajitkhaparde",
        "first_name": "Ajit",
        "last_name": "Khaparde",
        "email": "ajit.khaparde@broadcom.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210530085929.29695-26-venkatkumar.duvvuru@broadcom.com/mbox/",
    "series": [
        {
            "id": 17161,
            "url": "http://patches.dpdk.org/api/series/17161/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=17161",
            "date": "2021-05-30T08:58:31",
            "name": "enhancements to host based flow table management",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/17161/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/93574/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/93574/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 5CF6DA0524;\n\tSun, 30 May 2021 11:04:11 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5FE04411A9;\n\tSun, 30 May 2021 11:01:12 +0200 (CEST)",
            "from relay.smtp-ext.broadcom.com (relay.smtp-ext.broadcom.com\n [192.19.11.229]) by mails.dpdk.org (Postfix) with ESMTP id 00DF340DFD\n for <dev@dpdk.org>; Sun, 30 May 2021 11:01:10 +0200 (CEST)",
            "from S60.dhcp.broadcom.net (unknown [10.123.66.170])\n (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n (No client certificate requested)\n by relay.smtp-ext.broadcom.com (Postfix) with ESMTPS id 601CC7DAF;\n Sun, 30 May 2021 02:01:08 -0700 (PDT)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 601CC7DAF",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com;\n s=dkimrelay; t=1622365269;\n bh=SsHE0PtF9mbQIeas9gEG7guy5+1hcIhEoeFQi0YsdIk=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=KmXOY7PwDNRW5/ub8E1d1IOmiGzlA+XYgaodWRcIX4WtaCKjXNjoixKbHpMVxz4nr\n L3/w6U8SB04btp7q3dKQ76arZFm63d7443SfpfMSdDpnpZ+080v530jwW7DoXD+8gZ\n jK0gChZtKGD9Ni84xLS3B9cS/G9xRpvzLnoF/WeM=",
        "From": "Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>",
        "To": "dev@dpdk.org",
        "Cc": "Farah Smith <farah.smith@broadcom.com>,\n Randy Schacher <stuart.schacher@broadcom.com>,\n Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>",
        "Date": "Sun, 30 May 2021 14:28:56 +0530",
        "Message-Id": "<20210530085929.29695-26-venkatkumar.duvvuru@broadcom.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20210530085929.29695-1-venkatkumar.duvvuru@broadcom.com>",
        "References": "<20210530085929.29695-1-venkatkumar.duvvuru@broadcom.com>",
        "Subject": "[dpdk-dev] [PATCH 25/58] net/bnxt: add API to clear hi/lo WC region",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Farah Smith <farah.smith@broadcom.com>\n\nProvide TRUFLOW API to clear either the hi or the low region\nfor ungraceful exit cleanup.\n\nSigned-off-by: Farah Smith <farah.smith@broadcom.com>\nSigned-off-by: Randy Schacher <stuart.schacher@broadcom.com>\nSigned-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>\nReviewed-by: Jay Ding <jay.ding@broadcom.com>\nReviewed-by: Peter Spreadborough <peter.spreadborough@broadcom.com>\n---\n drivers/net/bnxt/tf_core/tf_core.c        |  51 ++++++++++\n drivers/net/bnxt/tf_core/tf_core.h        |  39 +++++++-\n drivers/net/bnxt/tf_core/tf_device.h      |  19 +++-\n drivers/net/bnxt/tf_core/tf_device_p4.c   |   4 +-\n drivers/net/bnxt/tf_core/tf_device_p58.c  |   1 +\n drivers/net/bnxt/tf_core/tf_tcam_shared.c | 111 +++++++++++++++++++++-\n drivers/net/bnxt/tf_core/tf_tcam_shared.h |  21 ++++\n drivers/net/bnxt/tf_core/tf_util.h        |   1 -\n 8 files changed, 235 insertions(+), 12 deletions(-)",
    "diff": "diff --git a/drivers/net/bnxt/tf_core/tf_core.c b/drivers/net/bnxt/tf_core/tf_core.c\nindex 0fbbd40252..97e6165e92 100644\n--- a/drivers/net/bnxt/tf_core/tf_core.c\n+++ b/drivers/net/bnxt/tf_core/tf_core.c\n@@ -968,6 +968,57 @@ tf_move_tcam_shared_entries(struct tf *tfp,\n \n \treturn 0;\n }\n+\n+int\n+tf_clear_tcam_shared_entries(struct tf *tfp,\n+\t\t\t     struct tf_clear_tcam_shared_entries_parms *parms)\n+{\n+\tint rc;\n+\tstruct tf_session *tfs;\n+\tstruct tf_dev_info *dev;\n+\n+\tTF_CHECK_PARMS2(tfp, parms);\n+\n+\t/* Retrieve the session information */\n+\trc = tf_session_get_session(tfp, &tfs);\n+\tif (rc) {\n+\t\tTFP_DRV_LOG(ERR,\n+\t\t\t    \"%s: Failed to lookup session, rc:%s\\n\",\n+\t\t\t    tf_dir_2_str(parms->dir),\n+\t\t\t    strerror(-rc));\n+\t\treturn rc;\n+\t}\n+\n+\t/* Retrieve the device information */\n+\trc = tf_session_get_device(tfs, &dev);\n+\tif (rc) {\n+\t\tTFP_DRV_LOG(ERR,\n+\t\t\t    \"%s: Failed to lookup device, rc:%s\\n\",\n+\t\t\t    tf_dir_2_str(parms->dir),\n+\t\t\t    strerror(-rc));\n+\t\treturn rc;\n+\t}\n+\n+\tif (dev->ops->tf_dev_clear_tcam == NULL) {\n+\t\trc = -EOPNOTSUPP;\n+\t\tTFP_DRV_LOG(ERR,\n+\t\t\t    \"%s: Operation not supported, rc:%s\\n\",\n+\t\t\t    tf_dir_2_str(parms->dir),\n+\t\t\t    strerror(-rc));\n+\t\treturn rc;\n+\t}\n+\n+\trc = dev->ops->tf_dev_clear_tcam(tfp, parms);\n+\tif (rc) {\n+\t\tTFP_DRV_LOG(ERR,\n+\t\t\t    \"%s: TCAM shared entries clear failed, rc:%s\\n\",\n+\t\t\t    tf_dir_2_str(parms->dir),\n+\t\t\t    strerror(-rc));\n+\t\treturn rc;\n+\t}\n+\n+\treturn 0;\n+}\n #endif /* TF_TCAM_SHARED */\n \n int\ndiff --git a/drivers/net/bnxt/tf_core/tf_core.h b/drivers/net/bnxt/tf_core/tf_core.h\nindex 44c30fa904..0b06bb2bb5 100644\n--- a/drivers/net/bnxt/tf_core/tf_core.h\n+++ b/drivers/net/bnxt/tf_core/tf_core.h\n@@ -233,7 +233,7 @@ enum tf_identifier_type {\n \t */\n \tTF_IDENT_TYPE_EM_PROF,\n \t/**\n-\t *  TH\n+\t *  (Future)\n \t *  The L2 func is included in the ILT result and from recycling to\n \t *  enable virtualization of further lookups.\n \t */\n@@ -1244,6 +1244,8 @@ int tf_free_tbl_scope(struct tf *tfp,\n  *\n #ifdef TF_TCAM_SHARED\n  * @ref tf_move_tcam_shared_entries\n+ *\n+ * @ref tf_clear_tcam_shared_entries\n #endif\n  */\n \n@@ -1580,6 +1582,37 @@ struct tf_move_tcam_shared_entries_parms {\n int tf_move_tcam_shared_entries(struct tf *tfp,\n \t\t\t\tstruct tf_move_tcam_shared_entries_parms *parms);\n \n+/**\n+ * tf_clear_tcam_shared_entries parameter definition\n+ */\n+struct tf_clear_tcam_shared_entries_parms {\n+\t/**\n+\t * [in] receive or transmit direction\n+\t */\n+\tenum tf_dir dir;\n+\t/**\n+\t * [in] TCAM table type\n+\t */\n+\tenum tf_tcam_tbl_type tcam_tbl_type;\n+};\n+\n+/**\n+ * Clear TCAM shared entries pool\n+ *\n+ * This API only affects the following TCAM pools within a shared session:\n+ *\n+ * TF_TCAM_TBL_TYPE_WC_TCAM_HIGH\n+ * TF_TCAM_TBL_TYPE_WC_TCAM_LOW\n+ *\n+ * When called, the indicated WC TCAM high or low pool will be cleared.\n+ *\n+ * This API is not supported on a non-shared session.\n+ *\n+ * Returns success or failure code.\n+ */\n+int tf_clear_tcam_shared_entries(struct tf *tfp,\n+\t\t\t      struct tf_clear_tcam_shared_entries_parms *parms);\n+\n #endif /* TF_TCAM_SHARED */\n /**\n  * @page table Table Access\n@@ -2108,7 +2141,7 @@ struct tf_move_em_entry_parms {\n \tuint64_t flow_handle;\n };\n /**\n- * tf_search_em_entry parameter definition\n+ * tf_search_em_entry parameter definition (Future)\n  */\n struct tf_search_em_entry_parms {\n \t/**\n@@ -2211,7 +2244,7 @@ int tf_delete_em_entry(struct tf *tfp,\n \t\t       struct tf_delete_em_entry_parms *parms);\n \n /**\n- * search em hash entry table memory\n+ * search em hash entry table memory (Future)\n  *\n  * Internal:\n \ndiff --git a/drivers/net/bnxt/tf_core/tf_device.h b/drivers/net/bnxt/tf_core/tf_device.h\nindex 1893f630e7..da3f541685 100644\n--- a/drivers/net/bnxt/tf_core/tf_device.h\n+++ b/drivers/net/bnxt/tf_core/tf_device.h\n@@ -595,7 +595,24 @@ struct tf_dev_ops {\n \t *    -EINVAL - Error\n \t */\n \tint (*tf_dev_move_tcam)(struct tf *tfp,\n-\t\t\t\tstruct tf_move_tcam_shared_entries_parms *parms);\n+\t\t\t       struct tf_move_tcam_shared_entries_parms *parms);\n+\n+\t/**\n+\t * Move TCAM shared entries\n+\t *\n+\t * [in] tfp\n+\t *   Pointer to TF handle\n+\t *\n+\t * [in] parms\n+\t *   Pointer to parameters\n+\t *\n+\t *    returns:\n+\t *    0       - Success\n+\t *    -EINVAL - Error\n+\t */\n+\tint (*tf_dev_clear_tcam)(struct tf *tfp,\n+\t\t\t      struct tf_clear_tcam_shared_entries_parms *parms);\n+\n #endif /* TF_TCAM_SHARED */\n \n \t/**\ndiff --git a/drivers/net/bnxt/tf_core/tf_device_p4.c b/drivers/net/bnxt/tf_core/tf_device_p4.c\nindex 28a6e41906..c340098cde 100644\n--- a/drivers/net/bnxt/tf_core/tf_device_p4.c\n+++ b/drivers/net/bnxt/tf_core/tf_device_p4.c\n@@ -251,9 +251,6 @@ const struct tf_dev_ops tf_dev_ops_p4_init = {\n \t.tf_dev_alloc_search_tcam = NULL,\n \t.tf_dev_set_tcam = NULL,\n \t.tf_dev_get_tcam = NULL,\n-#ifdef TF_TCAM_SHARED\n-\t.tf_dev_move_tcam = NULL,\n-#endif /* TF_TCAM_SHARED */\n \t.tf_dev_get_tcam_resc_info = NULL,\n \t.tf_dev_insert_int_em_entry = NULL,\n \t.tf_dev_delete_int_em_entry = NULL,\n@@ -301,6 +298,7 @@ const struct tf_dev_ops tf_dev_ops_p4 = {\n \t.tf_dev_set_tcam = tf_tcam_shared_set,\n \t.tf_dev_get_tcam = tf_tcam_shared_get,\n \t.tf_dev_move_tcam = tf_tcam_shared_move_p4,\n+\t.tf_dev_clear_tcam = tf_tcam_shared_clear,\n #else /* !TF_TCAM_SHARED */\n \t.tf_dev_alloc_tcam = tf_tcam_alloc,\n \t.tf_dev_free_tcam = tf_tcam_free,\ndiff --git a/drivers/net/bnxt/tf_core/tf_device_p58.c b/drivers/net/bnxt/tf_core/tf_device_p58.c\nindex bd6813beef..77a884f645 100644\n--- a/drivers/net/bnxt/tf_core/tf_device_p58.c\n+++ b/drivers/net/bnxt/tf_core/tf_device_p58.c\n@@ -342,6 +342,7 @@ const struct tf_dev_ops tf_dev_ops_p58 = {\n \t.tf_dev_set_tcam = tf_tcam_shared_set,\n \t.tf_dev_get_tcam = tf_tcam_shared_get,\n \t.tf_dev_move_tcam = tf_tcam_shared_move_p58,\n+\t.tf_dev_clear_tcam = tf_tcam_shared_clear,\n #else /* !TF_TCAM_SHARED */\n \t.tf_dev_alloc_tcam = tf_tcam_alloc,\n \t.tf_dev_free_tcam = tf_tcam_free,\ndiff --git a/drivers/net/bnxt/tf_core/tf_tcam_shared.c b/drivers/net/bnxt/tf_core/tf_tcam_shared.c\nindex b96d9ca9dd..c1c94829d7 100644\n--- a/drivers/net/bnxt/tf_core/tf_tcam_shared.c\n+++ b/drivers/net/bnxt/tf_core/tf_tcam_shared.c\n@@ -1154,8 +1154,9 @@ int tf_tcam_shared_move(struct tf *tfp,\n \treturn rc;\n }\n \n-int tf_tcam_shared_move_p4(struct tf *tfp,\n-\t\t\t   struct tf_move_tcam_shared_entries_parms *parms)\n+int\n+tf_tcam_shared_move_p4(struct tf *tfp,\n+\t\t       struct tf_move_tcam_shared_entries_parms *parms)\n {\n \tint rc = 0;\n \trc = tf_tcam_shared_move(tfp,\n@@ -1167,8 +1168,9 @@ int tf_tcam_shared_move_p4(struct tf *tfp,\n }\n \n \n-int tf_tcam_shared_move_p58(struct tf *tfp,\n-\t\t\t    struct tf_move_tcam_shared_entries_parms *parms)\n+int\n+tf_tcam_shared_move_p58(struct tf *tfp,\n+\t\t\tstruct tf_move_tcam_shared_entries_parms *parms)\n {\n \tint rc = 0;\n \trc = tf_tcam_shared_move(tfp,\n@@ -1178,3 +1180,104 @@ int tf_tcam_shared_move_p58(struct tf *tfp,\n \t\t\t\t true); /* set enable bit */\n \treturn rc;\n }\n+\n+int\n+tf_tcam_shared_clear(struct tf *tfp,\n+\t\t     struct tf_clear_tcam_shared_entries_parms *parms)\n+{\n+\tint rc = 0;\n+\tstruct tf_session *tfs;\n+\tstruct tf_dev_info *dev;\n+\tuint16_t start;\n+\tint phy_idx;\n+\tenum tf_tcam_shared_wc_pool_id id;\n+\tstruct tf_tcam_free_parms nparms;\n+\tuint16_t hcapi_type;\n+\tstruct tf_rm_alloc_info info;\n+\tvoid *tcam_shared_db_ptr = NULL;\n+\tstruct tf_tcam_shared_wc_pools *tcam_shared_wc;\n+\tint i, cnt;\n+\n+\tTF_CHECK_PARMS2(tfp, parms);\n+\n+\t/* Retrieve the session information */\n+\trc = tf_session_get_session_internal(tfp, &tfs);\n+\tif (rc)\n+\t\treturn rc;\n+\n+\tif (!tf_session_is_shared_session(tfs) ||\n+\t    (parms->tcam_tbl_type != TF_TCAM_TBL_TYPE_WC_TCAM_HIGH &&\n+\t     parms->tcam_tbl_type != TF_TCAM_TBL_TYPE_WC_TCAM_LOW))\n+\t\treturn -EOPNOTSUPP;\n+\n+\tif (!tf_tcam_db_valid(tfp, parms->dir)) {\n+\t\tTFP_DRV_LOG(ERR,\n+\t\t\t    \"%s: tcam shared pool doesn't exist\\n\",\n+\t\t\t    tf_dir_2_str(parms->dir));\n+\t\treturn -ENOMEM;\n+\t}\n+\n+\trc = tf_session_get_tcam_shared_db(tfp, (void *)&tcam_shared_db_ptr);\n+\tif (rc) {\n+\t\tTFP_DRV_LOG(ERR,\n+\t\t\t    \"Failed to get tcam_shared_db from session, rc:%s\\n\",\n+\t\t\t    strerror(-rc));\n+\t\treturn rc;\n+\t}\n+\ttcam_shared_wc = (struct tf_tcam_shared_wc_pools *)tcam_shared_db_ptr;\n+\n+\n+\tif (parms->tcam_tbl_type == TF_TCAM_TBL_TYPE_WC_TCAM_HIGH)\n+\t\tid = TF_TCAM_SHARED_WC_POOL_HI;\n+\telse\n+\t\tid = TF_TCAM_SHARED_WC_POOL_LO;\n+\n+\n+\t/* Retrieve the device information */\n+\trc = tf_session_get_device(tfs, &dev);\n+\tif (rc)\n+\t\treturn rc;\n+\n+\trc = tf_tcam_shared_get_rm_info(tfp,\n+\t\t\t\t\tparms->dir,\n+\t\t\t\t\t&hcapi_type,\n+\t\t\t\t\t&info);\n+\tif (rc) {\n+\t\tTFP_DRV_LOG(ERR,\n+\t\t\t    \"%s: TCAM rm info get failed\\n\",\n+\t\t\t    tf_dir_2_str(parms->dir));\n+\t\treturn rc;\n+\t}\n+\n+\tstart = tcam_shared_wc->db[parms->dir][id].info.start;\n+\tcnt = tcam_shared_wc->db[parms->dir][id].info.stride;\n+\n+\t/* Override HI/LO type with parent WC TCAM type */\n+\tnparms.dir = parms->dir;\n+\tnparms.type = TF_TCAM_TBL_TYPE_WC_TCAM;\n+\tnparms.hcapi_type = hcapi_type;\n+\n+\tfor (i = 0; i < cnt; i++) {\n+\t\tphy_idx = start + i;\n+\t\tnparms.idx = phy_idx;\n+\n+\t\t/* Clear entry */\n+\t\trc = tf_msg_tcam_entry_free(tfp, dev, &nparms);\n+\t\tif (rc) {\n+\t\t\t/* Log error */\n+\t\t\tTFP_DRV_LOG(ERR,\n+\t\t\t\t    \"%s: %s: log%d free failed, rc:%s\\n\",\n+\t\t\t\t    tf_dir_2_str(nparms.dir),\n+\t\t\t\t    tf_tcam_tbl_2_str(nparms.type),\n+\t\t\t\t    phy_idx,\n+\t\t\t\t    strerror(-rc));\n+\t\t\treturn rc;\n+\t\t}\n+\t}\n+\n+\tTFP_DRV_LOG(DEBUG,\n+\t\t    \"%s: TCAM shared clear pool(%s)\\n\",\n+\t\t    tf_dir_2_str(nparms.dir),\n+\t\t    tf_pool_2_str(id));\n+\treturn 0;\n+}\ndiff --git a/drivers/net/bnxt/tf_core/tf_tcam_shared.h b/drivers/net/bnxt/tf_core/tf_tcam_shared.h\nindex 5588125470..020763af6b 100644\n--- a/drivers/net/bnxt/tf_core/tf_tcam_shared.h\n+++ b/drivers/net/bnxt/tf_core/tf_tcam_shared.h\n@@ -24,6 +24,11 @@\n  *\n  * @ref tf_tcam_shared_get\n  *\n+ * @ref tf_tcam_shared_move_p4\n+ *\n+ * @ref tf_tcam_shared_move_p58\n+ *\n+ * @ref tf_tcam_shared_clear\n  */\n \n /**\n@@ -159,4 +164,20 @@ int tf_tcam_shared_move_p4(struct tf *tfp,\n int tf_tcam_shared_move_p58(struct tf *tfp,\n \t\t\t    struct tf_move_tcam_shared_entries_parms *parms);\n \n+/**\n+ * Allocates and clears the entire WC_TCAM_HI or WC_TCAM_LO shared pools\n+ *\n+ * [in] tfp\n+ *   Pointer to the truflow handle\n+ *\n+ * [in] parms\n+ *   Pointer to parameters\n+ *\n+ * Returns\n+ *   - (0) if successful.\n+ *   - (-EINVAL) on failure.\n+ */\n+int tf_tcam_shared_clear(struct tf *tfp,\n+\t\t\t struct tf_clear_tcam_shared_entries_parms *parms);\n+\n #endif /* _TF_TCAM_SHARED_H */\ndiff --git a/drivers/net/bnxt/tf_core/tf_util.h b/drivers/net/bnxt/tf_core/tf_util.h\nindex 4caf50349d..854c51931a 100644\n--- a/drivers/net/bnxt/tf_core/tf_util.h\n+++ b/drivers/net/bnxt/tf_core/tf_util.h\n@@ -7,7 +7,6 @@\n #define _TF_UTIL_H_\n \n #include \"tf_core.h\"\n-#include \"tf_device.h\"\n \n #define TF_BITS2BYTES(x) (((x) + 7) >> 3)\n #define TF_BITS2BYTES_WORD_ALIGN(x) ((((x) + 31) >> 5) * 4)\n",
    "prefixes": [
        "25/58"
    ]
}