get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 94857,
    "url": "https://patches.dpdk.org/api/patches/94857/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210625093157.24436-3-ting.xu@intel.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": "<20210625093157.24436-3-ting.xu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210625093157.24436-3-ting.xu@intel.com",
    "date": "2021-06-25T09:31:54",
    "name": "[v3,2/5] net/ice/base: support DCF query port ETS adminq",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d9de6566e5908394c4f6f553c19adfc4259174d2",
    "submitter": {
        "id": 1363,
        "url": "https://patches.dpdk.org/api/people/1363/?format=api",
        "name": "Xu, Ting",
        "email": "ting.xu@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "https://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210625093157.24436-3-ting.xu@intel.com/mbox/",
    "series": [
        {
            "id": 17486,
            "url": "https://patches.dpdk.org/api/series/17486/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17486",
            "date": "2021-06-25T09:31:52",
            "name": "Enable ETS-based Tx QoS for VF in DCF",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/17486/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/94857/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/94857/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 E9C87A0547;\n\tFri, 25 Jun 2021 11:33:46 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8E11D410DD;\n\tFri, 25 Jun 2021 11:33:41 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id 8A4F640698\n for <dev@dpdk.org>; Fri, 25 Jun 2021 11:33:34 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 25 Jun 2021 02:33:28 -0700",
            "from dpdk-xuting-main.sh.intel.com ([10.67.117.76])\n by orsmga001.jf.intel.com with ESMTP; 25 Jun 2021 02:33:27 -0700"
        ],
        "IronPort-SDR": [
            "\n A7SCyv9o6sG9nUmVTmjnfJe2KCQxwyYG8pWZeRw6FZB1kahTKNRKRZO+0WFQPZTBjD91yyW+it\n kM7iRIp44hPA==",
            "\n dCaUOYWDGgJg3EOcnkfMPP3xEx5/JKklrIIh4mjS4QcZvsFKI3Uc0xRyMl99vTXHot55ditHeV\n KeRgTK5enPmw=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10025\"; a=\"188022041\"",
            "E=Sophos;i=\"5.83,298,1616482800\"; d=\"scan'208\";a=\"188022041\"",
            "E=Sophos;i=\"5.83,298,1616482800\"; d=\"scan'208\";a=\"488117891\""
        ],
        "X-ExtLoop1": "1",
        "From": "Ting Xu <ting.xu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "qi.z.zhang@intel.com, jingjing.wu@intel.com, beilei.xing@intel.com,\n qiming.yang@intel.com",
        "Date": "Fri, 25 Jun 2021 17:31:54 +0800",
        "Message-Id": "<20210625093157.24436-3-ting.xu@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20210625093157.24436-1-ting.xu@intel.com>",
        "References": "<20210601014034.36100-1-ting.xu@intel.com>\n <20210625093157.24436-1-ting.xu@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v3 2/5] net/ice/base: support DCF query port ETS\n adminq",
        "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": "In the adminq command query port ETS function, the root node teid is\nneeded. However, for DCF, the root node is not initialized, which will\ncause error when we refer to the variable. In this patch, we will check\nwhether the root node is available or not first.\n\nSigned-off-by: Ting Xu <ting.xu@intel.com>\n---\n drivers/net/ice/base/ice_dcb.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/ice/base/ice_dcb.c b/drivers/net/ice/base/ice_dcb.c\nindex c73fc095ff..9c9675f6ef 100644\n--- a/drivers/net/ice/base/ice_dcb.c\n+++ b/drivers/net/ice/base/ice_dcb.c\n@@ -1524,7 +1524,8 @@ ice_aq_query_port_ets(struct ice_port_info *pi,\n \t\treturn ICE_ERR_PARAM;\n \tcmd = &desc.params.port_ets;\n \tice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_query_port_ets);\n-\tcmd->port_teid = pi->root->info.node_teid;\n+\tif (pi->root)\n+\t\tcmd->port_teid = pi->root->info.node_teid;\n \n \tstatus = ice_aq_send_cmd(pi->hw, &desc, buf, buf_size, cd);\n \treturn status;\n",
    "prefixes": [
        "v3",
        "2/5"
    ]
}