get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 97578,
    "url": "http://patches.dpdk.org/api/patches/97578/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210831065417.545339-1-dapengx.yu@intel.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": "<20210831065417.545339-1-dapengx.yu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210831065417.545339-1-dapengx.yu@intel.com",
    "date": "2021-08-31T06:54:17",
    "name": "[v2] net/ice/base: get PF ID of VF's parent",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "1d9b58e18245568ecaae007b98177fcb25390b31",
    "submitter": {
        "id": 2042,
        "url": "http://patches.dpdk.org/api/people/2042/?format=api",
        "name": "Yu, DapengX",
        "email": "dapengx.yu@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210831065417.545339-1-dapengx.yu@intel.com/mbox/",
    "series": [
        {
            "id": 18550,
            "url": "http://patches.dpdk.org/api/series/18550/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=18550",
            "date": "2021-08-31T06:54:17",
            "name": "[v2] net/ice/base: get PF ID of VF's parent",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/18550/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/97578/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/97578/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 9F943A0C46;\n\tTue, 31 Aug 2021 08:55:01 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3F7994068A;\n\tTue, 31 Aug 2021 08:55:01 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id 4D79040687;\n Tue, 31 Aug 2021 08:54:58 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Aug 2021 23:54:47 -0700",
            "from unknown (HELO localhost.localdomain) ([10.240.183.93])\n by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Aug 2021 23:54:45 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10092\"; a=\"240664193\"",
            "E=Sophos;i=\"5.84,365,1620716400\"; d=\"scan'208\";a=\"240664193\"",
            "E=Sophos;i=\"5.84,365,1620716400\"; d=\"scan'208\";a=\"530975583\""
        ],
        "From": "dapengx.yu@intel.com",
        "To": "Qiming Yang <qiming.yang@intel.com>,\n\tQi Zhang <qi.z.zhang@intel.com>",
        "Cc": "dev@dpdk.org, haiyue.wang@intel.com, Dapeng Yu <dapengx.yu@intel.com>,\n stable@dpdk.org",
        "Date": "Tue, 31 Aug 2021 14:54:17 +0800",
        "Message-Id": "<20210831065417.545339-1-dapengx.yu@intel.com>",
        "X-Mailer": "git-send-email 2.27.0",
        "In-Reply-To": "<20210818083226.795256-1-dapengx.yu@intel.com>",
        "References": "<20210818083226.795256-1-dapengx.yu@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2] net/ice/base: get PF ID of VF's parent",
        "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": "From: Dapeng Yu <dapengx.yu@intel.com>\n\nIn original implementation, if DCF is created on PF1, the PF ID is\nstill 0, but not 1. Without the right PF ID, the ACL will not work.\n\nThis patch makes VF to get its parent's physical function ID.\n\nFixes: 0b02c9519432 (\"net/ice: handle PF initialization by DCF\")\nCC: stable@dpdk.org\n\nSigned-off-by: Dapeng Yu <dapengx.yu@intel.com>\n---\nV2:\n* Simplify the code and commit message of V1\n---\n drivers/net/ice/base/ice_switch.c | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c\nindex 9179f66c20..4afd1e80c1 100644\n--- a/drivers/net/ice/base/ice_switch.c\n+++ b/drivers/net/ice/base/ice_switch.c\n@@ -3483,6 +3483,9 @@ enum ice_status ice_get_initial_sw_cfg(struct ice_hw *hw)\n \t\t\t\t\t\t   pf_vf_num, is_vf);\n \t\t\t\tj++;\n \t\t\t\tbreak;\n+\t\t\tcase ICE_AQC_GET_SW_CONF_RESP_VSI:\n+\t\t\t\tif (hw->dcf_enabled && !is_vf)\n+\t\t\t\t\thw->pf_id = pf_vf_num;\n \t\t\tdefault:\n \t\t\t\tbreak;\n \t\t\t}\n",
    "prefixes": [
        "v2"
    ]
}