Show a patch.

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

{
    "id": 74726,
    "url": "https://patches.dpdk.org/api/patches/74726/?format=api",
    "web_url": "https://patches.dpdk.org/patch/74726/",
    "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"
    },
    "msgid": "<20200724053235.71069-17-ajit.khaparde@broadcom.com>",
    "date": "2020-07-24T05:32:29",
    "name": "[v3,16/22] net/bnxt: modify shadow tcam and tbl reference count logic",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "67d3747df3497b58836d47bd2861e80ff051646a",
    "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/patch/74726/mbox/",
    "series": [
        {
            "id": 11269,
            "url": "https://patches.dpdk.org/api/series/11269/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11269",
            "date": "2020-07-24T05:32:13",
            "name": "bnxt patches",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/11269/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/74726/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/74726/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "References": "<20200723115639.22357-1-somnath.kotur@broadcom.com>\n <20200724053235.71069-1-ajit.khaparde@broadcom.com>",
        "X-Mailman-Version": "2.1.15",
        "From": "Ajit Khaparde <ajit.khaparde@broadcom.com>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "X-BeenThere": "dev@dpdk.org",
        "X-Relaying-Domain": "broadcom.com",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Message-Id": "<20200724053235.71069-17-ajit.khaparde@broadcom.com>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=pWyU3XAas9H7gxMlBnHnIRXmuzl0L9TCx05uiYMQAEQ=;\n b=CGLtSS9HQeAROE66Et7Y43ba/u+99ytAGSlaNQZYe7eKdLF3K36Mg1qRUHIdISIa7V\n VgCNKTYCm4xLNL7sfIQOJdmTFfVPlIIBQvhdm5CKrn2RjK2CHSYfwnsVnlE5pLTR3fnd\n K/cJJX8PyTtJFRYCbYL3MnI+JehhJ41/lIVOq9SU059Xd13f2waUa4MJbpQ5RrHRSt+m\n lvmbYRe5YgNDnD0VncUHMfDo2xJFh0YHFMuYTY4gpR9w+3jjhNbUP7oP4xln/+bdJrAs\n YL66iBngnjMp4JP/idDvHxAEypgDoKVAoJUGOCwyuMPI528yDPa8ZZJ6KOFoDOk3wbXE\n dpPg==",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 6E04DA0518;\n\tFri, 24 Jul 2020 07:36:04 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 7FD2C1C1A3;\n\tFri, 24 Jul 2020 07:33:53 +0200 (CEST)",
            "from mail-ua1-f99.google.com (mail-ua1-f99.google.com\n [209.85.222.99]) by dpdk.org (Postfix) with ESMTP id A051A1C10E\n for <dev@dpdk.org>; Fri, 24 Jul 2020 07:33:46 +0200 (CEST)",
            "by mail-ua1-f99.google.com with SMTP id g4so2571592uaq.10\n for <dev@dpdk.org>; Thu, 23 Jul 2020 22:33:46 -0700 (PDT)",
            "from localhost.localdomain ([192.19.223.252])\n by smtp-relay.gmail.com with ESMTPS id h17sm592840vsk.0.2020.07.23.22.33.43\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Thu, 23 Jul 2020 22:33:45 -0700 (PDT)"
        ],
        "X-Mailer": "git-send-email 2.21.1 (Apple Git-122.3)",
        "X-Received": "by 2002:ab0:498e:: with SMTP id e14mr6913856uad.38.1595568825967;\n Thu, 23 Jul 2020 22:33:45 -0700 (PDT)",
        "Subject": "[dpdk-dev] [PATCH v3 16/22] net/bnxt: modify shadow tcam and tbl\n\treference count logic",
        "Precedence": "list",
        "X-Gm-Message-State": "AOAM530UnMOjhUipQwkQG/x0OvHgaxIKleSZ0FwtsOxdOU0uCPGjM9Rh\n 0+CD/VPp1qeYIPn8SfDsEsswRvt0issBtqQXP8+0W30cEwPbU9yXhsMoZg5aPbFH1QVmITvcVQl\n LsyeeUlWkpdqoBNC2kOKBGTugtCuYgcGruoYa6VoMAAGQYBmkuSLTWUxVvSpZNE01GauwMpjZx1\n F5Gw==",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com;\n s=google;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=pWyU3XAas9H7gxMlBnHnIRXmuzl0L9TCx05uiYMQAEQ=;\n b=c6tylwwdeO0JhHjZVOe5HaU3oPmZQ9mWSuaS6zXSjYrKwNIZ2f5da4KqF5v4XftbHb\n q0iFvdXFoR9DQyHCZOq7/q/HyWbX7E+X8Y/2R4aUSgonVvxRIhV1B5pxtRyuaHtM+IT+\n frsV7QAIUA4MZ5swckTLHoL+EoStDIyWtVAsU=",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Date": "Thu, 23 Jul 2020 22:32:29 -0700",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-Google-Smtp-Source": "\n ABdhPJx7SUfHlMgtfjnM3kTaYGf6QTRvfigHkfMYK3hfnY3BZL6vnJf9QUgiWN/4gjo3fWJpN/YCda9oSvOo",
        "Cc": "ferruh.yigit@intel.com, Mike Baucom <michael.baucom@broadcom.com>,\n Kishore Padmanabha <kishore.padmanabha@broadcom.com>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "In-Reply-To": "<20200724053235.71069-1-ajit.khaparde@broadcom.com>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "To": "dev@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 019a26eba..a4207eb3a 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 a0130d6a8..e2c347a1e 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": [
        "v3",
        "16/22"
    ]
}