Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/72542/?format=api
https://patches.dpdk.org/api/patches/72542/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200701065212.41391-20-ajit.khaparde@broadcom.com/", "project": { "id": 1, "url": "https://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": "<20200701065212.41391-20-ajit.khaparde@broadcom.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200701065212.41391-20-ajit.khaparde@broadcom.com", "date": "2020-07-01T06:51:40", "name": "[v2,19/51] net/bnxt: update identifier with remap support", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "e873b25b5a218417ce57a10922e523a7f01d191f", "submitter": { "id": 501, "url": "https://patches.dpdk.org/api/people/501/?format=api", "name": "Ajit Khaparde", "email": "ajit.khaparde@broadcom.com" }, "delegate": { "id": 1766, "url": "https://patches.dpdk.org/api/users/1766/?format=api", "username": "ajitkhaparde", "first_name": "Ajit", "last_name": "Khaparde", "email": "ajit.khaparde@broadcom.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200701065212.41391-20-ajit.khaparde@broadcom.com/mbox/", "series": [ { "id": 10703, "url": "https://patches.dpdk.org/api/series/10703/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10703", "date": "2020-07-01T06:51:22", "name": "add features for host-based flow management", "version": 2, "mbox": "https://patches.dpdk.org/series/10703/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/72542/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/72542/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id D0883A0350;\n\tWed, 1 Jul 2020 08:56:40 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 5C1B31C2F7;\n\tWed, 1 Jul 2020 08:52:46 +0200 (CEST)", "from rnd-relay.smtp.broadcom.com (rnd-relay.smtp.broadcom.com\n [192.19.229.170]) by dpdk.org (Postfix) with ESMTP id 99B321C0B7\n for <dev@dpdk.org>; Wed, 1 Jul 2020 08:52:22 +0200 (CEST)", "from mail-irv-17.broadcom.com (mail-irv-17.lvn.broadcom.net\n [10.75.242.48])\n by rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id E591430C324;\n Tue, 30 Jun 2020 23:52:21 -0700 (PDT)", "from localhost.localdomain (unknown [10.230.185.215])\n by mail-irv-17.broadcom.com (Postfix) with ESMTP id BD49E14008B;\n Tue, 30 Jun 2020 23:52:21 -0700 (PDT)" ], "DKIM-Filter": "OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com E591430C324", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com;\n s=dkimrelay; t=1593586341;\n bh=3c1k75JRPQJ2PH9yAHZYf9avS1RyuGNWGQowlei3urA=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=fe9UGSb16Gtl8hRZiMENh4D8+/SGr2USbvyA1MUyo6E38AUx6U9uuV1bfiTBTCrYM\n xS9vtDHQ/evD3yT0qWVko0zlGGvA6tEJw4fjKepL5tyLRB7zu/PxUI6+iMDzJhqwix\n yUXCU0ibxK5p/F3qkusXdCXfcl4+hoUS2SuQZzRo=", "From": "Ajit Khaparde <ajit.khaparde@broadcom.com>", "To": "dev@dpdk.org", "Cc": "Michael Wildt <michael.wildt@broadcom.com>,\n Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>,\n Randy Schacher <stuart.schacher@broadcom.com>", "Date": "Tue, 30 Jun 2020 23:51:40 -0700", "Message-Id": "<20200701065212.41391-20-ajit.khaparde@broadcom.com>", "X-Mailer": "git-send-email 2.21.1 (Apple Git-122.3)", "In-Reply-To": "<20200701065212.41391-1-ajit.khaparde@broadcom.com>", "References": "<20200612132934.16488-1-somnath.kotur@broadcom.com>\n <20200701065212.41391-1-ajit.khaparde@broadcom.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v2 19/51] net/bnxt: update identifier with remap\n\tsupport", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "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: Michael Wildt <michael.wildt@broadcom.com>\n\n- Add Identifier L2 CTXT Remap to the P4 device and updated the\n cfa_resource_types.h to get the type support.\n\nSigned-off-by: Michael Wildt <michael.wildt@broadcom.com>\nSigned-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>\nReviewed-by: Randy Schacher <stuart.schacher@broadcom.com>\nReviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>\n---\n drivers/net/bnxt/tf_core/cfa_resource_types.h | 110 ++++++++++--------\n drivers/net/bnxt/tf_core/tf_device_p4.h | 2 +-\n 2 files changed, 60 insertions(+), 52 deletions(-)", "diff": "diff --git a/drivers/net/bnxt/tf_core/cfa_resource_types.h b/drivers/net/bnxt/tf_core/cfa_resource_types.h\nindex 11e8892f4..058d8cc88 100644\n--- a/drivers/net/bnxt/tf_core/cfa_resource_types.h\n+++ b/drivers/net/bnxt/tf_core/cfa_resource_types.h\n@@ -20,46 +20,48 @@\n \n /* L2 Context TCAM */\n #define CFA_RESOURCE_TYPE_P59_L2_CTXT_TCAM 0x0UL\n+/* L2 Context REMAP */\n+#define CFA_RESOURCE_TYPE_P59_L2_CTXT_REMAP 0x1UL\n /* Profile Func */\n-#define CFA_RESOURCE_TYPE_P59_PROF_FUNC 0x1UL\n+#define CFA_RESOURCE_TYPE_P59_PROF_FUNC 0x2UL\n /* Profile TCAM */\n-#define CFA_RESOURCE_TYPE_P59_PROF_TCAM 0x2UL\n+#define CFA_RESOURCE_TYPE_P59_PROF_TCAM 0x3UL\n /* Exact Match Profile Id */\n-#define CFA_RESOURCE_TYPE_P59_EM_PROF_ID 0x3UL\n+#define CFA_RESOURCE_TYPE_P59_EM_PROF_ID 0x4UL\n /* Wildcard TCAM Profile Id */\n-#define CFA_RESOURCE_TYPE_P59_WC_TCAM_PROF_ID 0x4UL\n+#define CFA_RESOURCE_TYPE_P59_WC_TCAM_PROF_ID 0x5UL\n /* Wildcard TCAM */\n-#define CFA_RESOURCE_TYPE_P59_WC_TCAM 0x5UL\n+#define CFA_RESOURCE_TYPE_P59_WC_TCAM 0x6UL\n /* Meter Profile */\n-#define CFA_RESOURCE_TYPE_P59_METER_PROF 0x6UL\n+#define CFA_RESOURCE_TYPE_P59_METER_PROF 0x7UL\n /* Meter */\n-#define CFA_RESOURCE_TYPE_P59_METER 0x7UL\n+#define CFA_RESOURCE_TYPE_P59_METER 0x8UL\n /* Meter */\n-#define CFA_RESOURCE_TYPE_P59_MIRROR 0x8UL\n+#define CFA_RESOURCE_TYPE_P59_MIRROR 0x9UL\n /* Source Properties TCAM */\n-#define CFA_RESOURCE_TYPE_P59_SP_TCAM 0x9UL\n+#define CFA_RESOURCE_TYPE_P59_SP_TCAM 0xaUL\n /* Exact Match Flexible Key Builder */\n-#define CFA_RESOURCE_TYPE_P59_EM_FKB 0xaUL\n+#define CFA_RESOURCE_TYPE_P59_EM_FKB 0xbUL\n /* Wildcard Flexible Key Builder */\n-#define CFA_RESOURCE_TYPE_P59_WC_FKB 0xbUL\n+#define CFA_RESOURCE_TYPE_P59_WC_FKB 0xcUL\n /* Table Scope */\n-#define CFA_RESOURCE_TYPE_P59_TBL_SCOPE 0xcUL\n+#define CFA_RESOURCE_TYPE_P59_TBL_SCOPE 0xdUL\n /* L2 Func */\n-#define CFA_RESOURCE_TYPE_P59_L2_FUNC 0xdUL\n+#define CFA_RESOURCE_TYPE_P59_L2_FUNC 0xeUL\n /* EPOCH */\n-#define CFA_RESOURCE_TYPE_P59_EPOCH 0xeUL\n+#define CFA_RESOURCE_TYPE_P59_EPOCH 0xfUL\n /* Metadata */\n-#define CFA_RESOURCE_TYPE_P59_METADATA 0xfUL\n+#define CFA_RESOURCE_TYPE_P59_METADATA 0x10UL\n /* Connection Tracking Rule TCAM */\n-#define CFA_RESOURCE_TYPE_P59_CT_RULE_TCAM 0x10UL\n+#define CFA_RESOURCE_TYPE_P59_CT_RULE_TCAM 0x11UL\n /* Range Profile */\n-#define CFA_RESOURCE_TYPE_P59_RANGE_PROF 0x11UL\n+#define CFA_RESOURCE_TYPE_P59_RANGE_PROF 0x12UL\n /* Range */\n-#define CFA_RESOURCE_TYPE_P59_RANGE 0x12UL\n+#define CFA_RESOURCE_TYPE_P59_RANGE 0x13UL\n /* Link Aggrigation */\n-#define CFA_RESOURCE_TYPE_P59_LAG 0x13UL\n+#define CFA_RESOURCE_TYPE_P59_LAG 0x14UL\n /* VEB TCAM */\n-#define CFA_RESOURCE_TYPE_P59_VEB_TCAM 0x14UL\n+#define CFA_RESOURCE_TYPE_P59_VEB_TCAM 0x15UL\n #define CFA_RESOURCE_TYPE_P59_LAST CFA_RESOURCE_TYPE_P59_VEB_TCAM\n \n \n@@ -105,30 +107,32 @@\n #define CFA_RESOURCE_TYPE_P58_FORMAT_4_ACTION 0x13UL\n /* L2 Context TCAM */\n #define CFA_RESOURCE_TYPE_P58_L2_CTXT_TCAM 0x14UL\n+/* L2 Context REMAP */\n+#define CFA_RESOURCE_TYPE_P58_L2_CTXT_REMAP 0x15UL\n /* Profile Func */\n-#define CFA_RESOURCE_TYPE_P58_PROF_FUNC 0x15UL\n+#define CFA_RESOURCE_TYPE_P58_PROF_FUNC 0x16UL\n /* Profile TCAM */\n-#define CFA_RESOURCE_TYPE_P58_PROF_TCAM 0x16UL\n+#define CFA_RESOURCE_TYPE_P58_PROF_TCAM 0x17UL\n /* Exact Match Profile Id */\n-#define CFA_RESOURCE_TYPE_P58_EM_PROF_ID 0x17UL\n+#define CFA_RESOURCE_TYPE_P58_EM_PROF_ID 0x18UL\n /* Wildcard Profile Id */\n-#define CFA_RESOURCE_TYPE_P58_WC_TCAM_PROF_ID 0x18UL\n+#define CFA_RESOURCE_TYPE_P58_WC_TCAM_PROF_ID 0x19UL\n /* Exact Match Record */\n-#define CFA_RESOURCE_TYPE_P58_EM_REC 0x19UL\n+#define CFA_RESOURCE_TYPE_P58_EM_REC 0x1aUL\n /* Wildcard TCAM */\n-#define CFA_RESOURCE_TYPE_P58_WC_TCAM 0x1aUL\n+#define CFA_RESOURCE_TYPE_P58_WC_TCAM 0x1bUL\n /* Meter profile */\n-#define CFA_RESOURCE_TYPE_P58_METER_PROF 0x1bUL\n+#define CFA_RESOURCE_TYPE_P58_METER_PROF 0x1cUL\n /* Meter */\n-#define CFA_RESOURCE_TYPE_P58_MIRROR 0x1cUL\n+#define CFA_RESOURCE_TYPE_P58_MIRROR 0x1dUL\n /* Source Property TCAM */\n-#define CFA_RESOURCE_TYPE_P58_SP_TCAM 0x1dUL\n+#define CFA_RESOURCE_TYPE_P58_SP_TCAM 0x1eUL\n /* Exact Match Flexible Key Builder */\n-#define CFA_RESOURCE_TYPE_P58_EM_FKB 0x1eUL\n+#define CFA_RESOURCE_TYPE_P58_EM_FKB 0x1fUL\n /* Wildcard Flexible Key Builder */\n-#define CFA_RESOURCE_TYPE_P58_WC_FKB 0x1fUL\n+#define CFA_RESOURCE_TYPE_P58_WC_FKB 0x20UL\n /* VEB TCAM */\n-#define CFA_RESOURCE_TYPE_P58_VEB_TCAM 0x20UL\n+#define CFA_RESOURCE_TYPE_P58_VEB_TCAM 0x21UL\n #define CFA_RESOURCE_TYPE_P58_LAST CFA_RESOURCE_TYPE_P58_VEB_TCAM\n \n \n@@ -176,26 +180,28 @@\n #define CFA_RESOURCE_TYPE_P45_FORMAT_4_ACTION 0x14UL\n /* L2 Context TCAM */\n #define CFA_RESOURCE_TYPE_P45_L2_CTXT_TCAM 0x15UL\n+/* L2 Context REMAP */\n+#define CFA_RESOURCE_TYPE_P45_L2_CTXT_REMAP 0x16UL\n /* Profile Func */\n-#define CFA_RESOURCE_TYPE_P45_PROF_FUNC 0x16UL\n+#define CFA_RESOURCE_TYPE_P45_PROF_FUNC 0x17UL\n /* Profile TCAM */\n-#define CFA_RESOURCE_TYPE_P45_PROF_TCAM 0x17UL\n+#define CFA_RESOURCE_TYPE_P45_PROF_TCAM 0x18UL\n /* Exact Match Profile Id */\n-#define CFA_RESOURCE_TYPE_P45_EM_PROF_ID 0x18UL\n+#define CFA_RESOURCE_TYPE_P45_EM_PROF_ID 0x19UL\n /* Exact Match Record */\n-#define CFA_RESOURCE_TYPE_P45_EM_REC 0x19UL\n+#define CFA_RESOURCE_TYPE_P45_EM_REC 0x1aUL\n /* Wildcard Profile Id */\n-#define CFA_RESOURCE_TYPE_P45_WC_TCAM_PROF_ID 0x1aUL\n+#define CFA_RESOURCE_TYPE_P45_WC_TCAM_PROF_ID 0x1bUL\n /* Wildcard TCAM */\n-#define CFA_RESOURCE_TYPE_P45_WC_TCAM 0x1bUL\n+#define CFA_RESOURCE_TYPE_P45_WC_TCAM 0x1cUL\n /* Meter profile */\n-#define CFA_RESOURCE_TYPE_P45_METER_PROF 0x1cUL\n+#define CFA_RESOURCE_TYPE_P45_METER_PROF 0x1dUL\n /* Meter */\n-#define CFA_RESOURCE_TYPE_P45_MIRROR 0x1dUL\n+#define CFA_RESOURCE_TYPE_P45_MIRROR 0x1eUL\n /* Source Property TCAM */\n-#define CFA_RESOURCE_TYPE_P45_SP_TCAM 0x1eUL\n+#define CFA_RESOURCE_TYPE_P45_SP_TCAM 0x1fUL\n /* VEB TCAM */\n-#define CFA_RESOURCE_TYPE_P45_VEB_TCAM 0x1fUL\n+#define CFA_RESOURCE_TYPE_P45_VEB_TCAM 0x20UL\n #define CFA_RESOURCE_TYPE_P45_LAST CFA_RESOURCE_TYPE_P45_VEB_TCAM\n \n \n@@ -243,24 +249,26 @@\n #define CFA_RESOURCE_TYPE_P4_FORMAT_4_ACTION 0x14UL\n /* L2 Context TCAM */\n #define CFA_RESOURCE_TYPE_P4_L2_CTXT_TCAM 0x15UL\n+/* L2 Context REMAP */\n+#define CFA_RESOURCE_TYPE_P4_L2_CTXT_REMAP 0x16UL\n /* Profile Func */\n-#define CFA_RESOURCE_TYPE_P4_PROF_FUNC 0x16UL\n+#define CFA_RESOURCE_TYPE_P4_PROF_FUNC 0x17UL\n /* Profile TCAM */\n-#define CFA_RESOURCE_TYPE_P4_PROF_TCAM 0x17UL\n+#define CFA_RESOURCE_TYPE_P4_PROF_TCAM 0x18UL\n /* Exact Match Profile Id */\n-#define CFA_RESOURCE_TYPE_P4_EM_PROF_ID 0x18UL\n+#define CFA_RESOURCE_TYPE_P4_EM_PROF_ID 0x19UL\n /* Exact Match Record */\n-#define CFA_RESOURCE_TYPE_P4_EM_REC 0x19UL\n+#define CFA_RESOURCE_TYPE_P4_EM_REC 0x1aUL\n /* Wildcard Profile Id */\n-#define CFA_RESOURCE_TYPE_P4_WC_TCAM_PROF_ID 0x1aUL\n+#define CFA_RESOURCE_TYPE_P4_WC_TCAM_PROF_ID 0x1bUL\n /* Wildcard TCAM */\n-#define CFA_RESOURCE_TYPE_P4_WC_TCAM 0x1bUL\n+#define CFA_RESOURCE_TYPE_P4_WC_TCAM 0x1cUL\n /* Meter profile */\n-#define CFA_RESOURCE_TYPE_P4_METER_PROF 0x1cUL\n+#define CFA_RESOURCE_TYPE_P4_METER_PROF 0x1dUL\n /* Meter */\n-#define CFA_RESOURCE_TYPE_P4_MIRROR 0x1dUL\n+#define CFA_RESOURCE_TYPE_P4_MIRROR 0x1eUL\n /* Source Property TCAM */\n-#define CFA_RESOURCE_TYPE_P4_SP_TCAM 0x1eUL\n+#define CFA_RESOURCE_TYPE_P4_SP_TCAM 0x1fUL\n #define CFA_RESOURCE_TYPE_P4_LAST CFA_RESOURCE_TYPE_P4_SP_TCAM\n \n \ndiff --git a/drivers/net/bnxt/tf_core/tf_device_p4.h b/drivers/net/bnxt/tf_core/tf_device_p4.h\nindex 5cd02b298..235d81f96 100644\n--- a/drivers/net/bnxt/tf_core/tf_device_p4.h\n+++ b/drivers/net/bnxt/tf_core/tf_device_p4.h\n@@ -12,7 +12,7 @@\n #include \"tf_rm_new.h\"\n \n struct tf_rm_element_cfg tf_ident_p4[TF_IDENT_TYPE_MAX] = {\n-\t{ TF_RM_ELEM_CFG_PRIVATE, CFA_RESOURCE_TYPE_INVALID },\n+\t{ TF_RM_ELEM_CFG_HCAPI, CFA_RESOURCE_TYPE_P4_L2_CTXT_REMAP },\n \t{ TF_RM_ELEM_CFG_HCAPI, CFA_RESOURCE_TYPE_P4_PROF_FUNC },\n \t{ TF_RM_ELEM_CFG_HCAPI, CFA_RESOURCE_TYPE_P4_WC_TCAM_PROF_ID },\n \t{ TF_RM_ELEM_CFG_HCAPI, CFA_RESOURCE_TYPE_P4_EM_PROF_ID },\n", "prefixes": [ "v2", "19/51" ] }{ "id": 72542, "url": "