Show a patch.

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

{
    "id": 74656,
    "url": "https://patches.dpdk.org/api/patches/74656/",
    "web_url": "https://patches.dpdk.org/patch/74656/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<20200723111329.21855-17-somnath.kotur@broadcom.com>",
    "date": "2020-07-23T11:13:25",
    "name": "[16/20] net/bnxt: shadow tcam and tbl reference count modification",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "67d3747df3497b58836d47bd2861e80ff051646a",
    "submitter": {
        "id": 908,
        "url": "https://patches.dpdk.org/api/people/908/",
        "name": "Somnath Kotur",
        "email": "somnath.kotur@broadcom.com"
    },
    "delegate": {
        "id": 1766,
        "url": "https://patches.dpdk.org/api/users/1766/",
        "username": "ajitkhaparde",
        "first_name": "Ajit",
        "last_name": "Khaparde",
        "email": "ajit.khaparde@broadcom.com"
    },
    "mbox": "https://patches.dpdk.org/patch/74656/mbox/",
    "series": [
        {
            "id": 11252,
            "url": "https://patches.dpdk.org/api/series/11252/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11252",
            "date": "2020-07-23T11:13:09",
            "name": "bnxt patches",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/11252/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74656/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/74656/checks/",
    "tags": {},
    "headers": {
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "References": "<20200723111329.21855-1-somnath.kotur@broadcom.com>",
        "X-BeenThere": "dev@dpdk.org",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "DKIM-Filter": "OpenDKIM Filter v2.10.3 relay.smtp.broadcom.com C049B1BD951",
        "Subject": "[dpdk-dev] [PATCH 16/20] net/bnxt: shadow tcam and tbl reference\n\tcount modification",
        "Sender": "\"dev\" <dev-bounces@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 32B33A0521;\n\tThu, 23 Jul 2020 13:21:57 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 9C13D1C0CC;\n\tThu, 23 Jul 2020 13:20:09 +0200 (CEST)",
            "from relay.smtp.broadcom.com (relay.smtp.broadcom.com\n [192.19.232.149]) by dpdk.org (Postfix) with ESMTP id 7E6DC1BFFD\n for <dev@dpdk.org>; Thu, 23 Jul 2020 13:19:15 +0200 (CEST)",
            "from dhcp-10-123-153-55.dhcp.broadcom.net\n (dhcp-10-123-153-55.dhcp.broadcom.net [10.123.153.55])\n by relay.smtp.broadcom.com (Postfix) with ESMTP id C049B1BD951;\n Thu, 23 Jul 2020 04:19:14 -0700 (PDT)"
        ],
        "To": "dev@dpdk.org",
        "X-Mailer": "git-send-email 2.10.1.613.g2cc2e70",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com;\n s=dkimrelay; t=1595503155;\n bh=Y3ykrQBOFatdhQ7roXMrV/Oa+QJxVxHri9dcAzbTKec=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=eJO3+I40WtkFFTuexHmBrNreLX3iUhABl1LLcIA/4p06TmCZT5rsp+gezkFgpJm0w\n 4HPkD0rnCZRHGS3vibR6K1oqIVNW/VIhj6oFg2/ShBMcRUFDyU3Z45tnhO/fi5oSdw\n 4CA8AmBfr/pg+BzuTRmlqJvvCUSUvwelnpTySzMs=",
        "Date": "Thu, 23 Jul 2020 16:43:25 +0530",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "From": "Somnath Kotur <somnath.kotur@broadcom.com>",
        "In-Reply-To": "<20200723111329.21855-1-somnath.kotur@broadcom.com>",
        "Cc": "ferruh.yigit@intel.com",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Message-Id": "<20200723111329.21855-17-somnath.kotur@broadcom.com>",
        "Return-Path": "<dev-bounces@dpdk.org>"
    },
    "content": "From: Mike Baucom <michael.baucom@broadcom.com>\n\nMoved setting the refcnt for shadow tcam and table entries to the\nallocation path only.  The insert can be called multiple times for\nupdates and was resetting the refcnt to 1 each time.  Now multiple\ninsertion/modifications will not change the reference count.\n\nSigned-off-by: Mike Baucom <michael.baucom@broadcom.com>\nReviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>\n---\n drivers/net/bnxt/tf_core/tf_shadow_tbl.c  | 2 --\n drivers/net/bnxt/tf_core/tf_shadow_tcam.c | 2 +-\n 2 files changed, 1 insertion(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/bnxt/tf_core/tf_shadow_tbl.c b/drivers/net/bnxt/tf_core/tf_shadow_tbl.c\nindex 019a26e..a4207eb 100644\n--- a/drivers/net/bnxt/tf_core/tf_shadow_tbl.c\n+++ b/drivers/net/bnxt/tf_core/tf_shadow_tbl.c\n@@ -687,8 +687,6 @@ tf_shadow_tbl_insert(struct tf_shadow_tbl_insert_parms *parms)\n \tif (!TF_SHADOW_HB_HANDLE_IS_VALID(sr_entry->hb_handle))\n \t\treturn 0;\n \n-\tsr_entry->refcnt = 1;\n-\n \treturn 0;\n }\n \ndiff --git a/drivers/net/bnxt/tf_core/tf_shadow_tcam.c b/drivers/net/bnxt/tf_core/tf_shadow_tcam.c\nindex a0130d6..e2c347a 100644\n--- a/drivers/net/bnxt/tf_core/tf_shadow_tcam.c\n+++ b/drivers/net/bnxt/tf_core/tf_shadow_tcam.c\n@@ -472,6 +472,7 @@ tf_shadow_tcam_bind_index(struct tf_shadow_tcam_bind_index_parms *parms)\n \t/* Write the result table */\n \tsr_entry->key_size = parms->key_size;\n \tsr_entry->hb_handle = parms->hb_handle;\n+\tsr_entry->refcnt = 1;\n \n \treturn 0;\n }\n@@ -738,7 +739,6 @@ tf_shadow_tcam_insert(struct tf_shadow_tcam_insert_parms *parms)\n \n \tmemcpy(sr_entry->result, sparms->result, sparms->result_size);\n \tsr_entry->result_size = sparms->result_size;\n-\tsr_entry->refcnt = 1;\n \n \treturn 0;\n }\n",
    "prefixes": [
        "16/20"
    ]
}