get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 59312,
    "url": "http://patches.dpdk.org/api/patches/59312/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190917075754.8310-7-amo@semihalf.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": "<20190917075754.8310-7-amo@semihalf.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190917075754.8310-7-amo@semihalf.com",
    "date": "2019-09-17T07:57:50",
    "name": "[v2,06/10] net/dpaa2: fix possible use of uninitialized vars",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d3f49597d01259cde6b58b9033fe98e13b52ca57",
    "submitter": {
        "id": 1112,
        "url": "http://patches.dpdk.org/api/people/1112/?format=api",
        "name": "Andrzej Ostruszka",
        "email": "amo@semihalf.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190917075754.8310-7-amo@semihalf.com/mbox/",
    "series": [
        {
            "id": 6422,
            "url": "http://patches.dpdk.org/api/series/6422/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=6422",
            "date": "2019-09-17T07:57:44",
            "name": "Add an option to use LTO for DPDK build",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/6422/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/59312/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/59312/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 1765B1BFF4;\n\tTue, 17 Sep 2019 09:58:15 +0200 (CEST)",
            "from mail-lf1-f65.google.com (mail-lf1-f65.google.com\n\t[209.85.167.65]) by dpdk.org (Postfix) with ESMTP id A391B1BFB2\n\tfor <dev@dpdk.org>; Tue, 17 Sep 2019 09:58:02 +0200 (CEST)",
            "by mail-lf1-f65.google.com with SMTP id u28so2083068lfc.5\n\tfor <dev@dpdk.org>; Tue, 17 Sep 2019 00:58:02 -0700 (PDT)",
            "from localhost.localdomain (31-172-191-173.noc.fibertech.net.pl.\n\t[31.172.191.173]) by smtp.googlemail.com with ESMTPSA id\n\tg1sm270659ljl.31.2019.09.17.00.58.01\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 17 Sep 2019 00:58:01 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=semihalf-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=bK9nl/qV04wjIKeztaLOLubH2UF/0ajtfJqFha0o/9s=;\n\tb=QavRhPGWaxURYAkkGptuOInGnGMyZ4WCp2IcjcQe40T61JdNLw3CpMkv8IAqvL0CI8\n\tRyP0JLH0AkYlxiyJbZzSv5IKPP137DGDkK/s6K2kxlgEYTWQ5GjULHvhqn6Y8ltsCJwo\n\tod+LAXSxjJo8Mso0ncUBpRz6Ot+0Z+EjdkMaj4lCLrXrHx26sh0XR9ix2rb1WO7EqlH3\n\tM4IYGpKhS7MlvJG1tFOWmHj7i5B78FM4X4xxymLVrhjecy2DKcOnm3USJ8CRLYnSOrbj\n\tsexc+/QQJejChD1eGN2WM1sPt8CsfWXRNXNCr08MCpOVz2IryXjDCVXsnHtcO/PJP+AR\n\ta5Lg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=bK9nl/qV04wjIKeztaLOLubH2UF/0ajtfJqFha0o/9s=;\n\tb=bOs49lUnINOuCTWLLJv9TDaUz/cclp1YsADWNIxwFg0JAu8y7yer1x243ecTthZIfR\n\tCjYaJ/1OWX7771yl07tPklGlS1qhgr8+VgwYxmAjOnY6NFi7NxJqpIx5mhgrKHucZRbs\n\tsZdAXqOaz5QZMV3pWybX7DsKm6CgDOk0vLqsfgdeg1ReRyZTMoyW31ov7sp8UOulmN83\n\tEjHSq9wKh6D2aXieuLVZFoqqGO/sgUYps+kC/YztAWUU1Z6Kdbcp6XUTK+XfmUSzV01i\n\th6q6ZDhmWKy5HFCBTfxezLiUXgTOPXhAb0VM69tFhZQRJBhwcpTSTpFg9XmV6bJUzoWL\n\tmZwQ==",
        "X-Gm-Message-State": "APjAAAU8nN5iZh6v5v1hwPS3H+8Dv1n0mbNoIEe5XtyHjTSU38B9M2Xr\n\tGH8OuhS8Bzpw9jUKVFXrumnQchjQI3dgcQ==",
        "X-Google-Smtp-Source": "APXvYqy4jBnt4xDFdapKfYlblJWAm59J2P4sMLlZfzlttu/6i6waL/K6z4x1jtzEKJxEAY4t79nYJA==",
        "X-Received": "by 2002:ac2:562c:: with SMTP id\n\tb12mr1363538lff.156.1568707081885; \n\tTue, 17 Sep 2019 00:58:01 -0700 (PDT)",
        "From": "Andrzej Ostruszka <amo@semihalf.com>",
        "To": "dev@dpdk.org, Hemant Agrawal <hemant.agrawal@nxp.com>,\n\tSachin Saxena <sachin.saxena@nxp.com>",
        "Cc": "mattias.ronnblom@ericsson.com, stephen@networkplumber.org,\n\tAndrzej Ostruszka <aostruszka@marvell.com>",
        "Date": "Tue, 17 Sep 2019 09:57:50 +0200",
        "Message-Id": "<20190917075754.8310-7-amo@semihalf.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190917075754.8310-1-amo@semihalf.com>",
        "References": "<20190917075754.8310-1-amo@semihalf.com>",
        "Subject": "[dpdk-dev] [PATCH v2 06/10] net/dpaa2: fix possible use of\n\tuninitialized vars",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This patch fixes 'maybe-uninitialized' warnings reported by compiler\nwhen using LTO.\n\nSigned-off-by: Andrzej Ostruszka <aostruszka@marvell.com>\n---\n drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 1 +\n drivers/net/dpaa2/mc/dpkg.c            | 2 +-\n drivers/net/dpaa2/mc/dpni.c            | 9 ++++++---\n 3 files changed, 8 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c\nindex 56e2e56a3..2f6534a31 100644\n--- a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c\n+++ b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c\n@@ -51,6 +51,7 @@ rte_pmd_dpaa2_set_custom_hash(uint16_t port_id,\n \tkg_cfg.extracts[0].type = DPKG_EXTRACT_FROM_DATA;\n \tkg_cfg.extracts[0].extract.from_data.offset = offset;\n \tkg_cfg.extracts[0].extract.from_data.size = size;\n+\tkg_cfg.extracts[0].num_of_byte_masks = 0;\n \tkg_cfg.num_extracts = 1;\n \n \tret = dpkg_prepare_key_cfg(&kg_cfg, p_params);\ndiff --git a/drivers/net/dpaa2/mc/dpkg.c b/drivers/net/dpaa2/mc/dpkg.c\nindex 80f94f40e..7aa63ea12 100644\n--- a/drivers/net/dpaa2/mc/dpkg.c\n+++ b/drivers/net/dpaa2/mc/dpkg.c\n@@ -63,7 +63,7 @@ dpkg_prepare_key_cfg(const struct dpkg_profile_cfg *cfg, uint8_t *key_cfg_buf)\n \t\tdpkg_set_field(extr->extract_type, EXTRACT_TYPE,\n \t\t\t       cfg->extracts[i].type);\n \n-\t\tfor (j = 0; j < DPKG_NUM_OF_MASKS; j++) {\n+\t\tfor (j = 0; j < extr->num_of_byte_masks; j++) {\n \t\t\textr->masks[j].mask = cfg->extracts[i].masks[j].mask;\n \t\t\textr->masks[j].offset =\n \t\t\t\tcfg->extracts[i].masks[j].offset;\ndiff --git a/drivers/net/dpaa2/mc/dpni.c b/drivers/net/dpaa2/mc/dpni.c\nindex 362cd476f..b74a1a317 100644\n--- a/drivers/net/dpaa2/mc/dpni.c\n+++ b/drivers/net/dpaa2/mc/dpni.c\n@@ -1803,10 +1803,13 @@ int dpni_set_congestion_notification(struct fsl_mc_io *mc_io,\n \tcmd_params->qtype = qtype;\n \tcmd_params->tc = tc_id;\n \tcmd_params->congestion_point = cfg->cg_point;\n-\tcmd_params->cgid = (uint8_t)cfg->cgid;\n-\tcmd_params->dest_id = cpu_to_le32(cfg->dest_cfg.dest_id);\n+\tif (cfg->cg_point == DPNI_CP_CONGESTION_GROUP)\n+\t\tcmd_params->cgid = (uint8_t)cfg->cgid;\n+\tif (cfg->dest_cfg.dest_type != DPNI_DEST_NONE) {\n+\t\tcmd_params->dest_id = cpu_to_le32(cfg->dest_cfg.dest_id);\n+\t\tcmd_params->dest_priority = cfg->dest_cfg.priority;\n+\t}\n \tcmd_params->notification_mode = cpu_to_le16(cfg->notification_mode);\n-\tcmd_params->dest_priority = cfg->dest_cfg.priority;\n \tcmd_params->message_iova = cpu_to_le64(cfg->message_iova);\n \tcmd_params->message_ctx = cpu_to_le64(cfg->message_ctx);\n \tcmd_params->threshold_entry = cpu_to_le32(cfg->threshold_entry);\n",
    "prefixes": [
        "v2",
        "06/10"
    ]
}