get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 67160,
    "url": "http://patches.dpdk.org/api/patches/67160/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200326030346.32907-4-haiyue.wang@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": "<20200326030346.32907-4-haiyue.wang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200326030346.32907-4-haiyue.wang@intel.com",
    "date": "2020-03-26T03:03:42",
    "name": "[v4,3/7] net/ice: acquire and disable the DCF capability",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "1657d988273d4e3207728cdbad7c6d9c8af531bd",
    "submitter": {
        "id": 1044,
        "url": "http://patches.dpdk.org/api/people/1044/?format=api",
        "name": "Wang, Haiyue",
        "email": "haiyue.wang@intel.com"
    },
    "delegate": {
        "id": 31221,
        "url": "http://patches.dpdk.org/api/users/31221/?format=api",
        "username": "yexl",
        "first_name": "xiaolong",
        "last_name": "ye",
        "email": "xiaolong.ye@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200326030346.32907-4-haiyue.wang@intel.com/mbox/",
    "series": [
        {
            "id": 9049,
            "url": "http://patches.dpdk.org/api/series/9049/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=9049",
            "date": "2020-03-26T03:03:39",
            "name": "add Intel DCF PMD support",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/9049/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/67160/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/67160/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 27C6FA058E;\n\tThu, 26 Mar 2020 04:12:19 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 464621C0C1;\n\tThu, 26 Mar 2020 04:11:56 +0100 (CET)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by dpdk.org (Postfix) with ESMTP id 09DC11C0B5\n for <dev@dpdk.org>; Thu, 26 Mar 2020 04:11:47 +0100 (CET)",
            "from orsmga003.jf.intel.com ([10.7.209.27])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 25 Mar 2020 20:11:47 -0700",
            "from npg-dpdk-haiyue-1.sh.intel.com ([10.67.119.213])\n by orsmga003.jf.intel.com with ESMTP; 25 Mar 2020 20:11:45 -0700"
        ],
        "IronPort-SDR": [
            "\n dYufJyu8wAF9OZCV+UWbSjFgYl/6rgRHVs4FLio56Hg4P8rlWQ50YIw7p/oxUCWumbcyG9jSqt\n A6C7Bf/+iSDw==",
            "\n dXvQqs+ChtXSj0taKbbiKyo8KVQ9gruVN+OzFse9LqhfMjNjEFLCiOzHlc7VGKRlsTsBvZgOdV\n rfWDOw0kiCrA=="
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.72,306,1580803200\"; d=\"scan'208\";a=\"247406857\"",
        "From": "Haiyue Wang <haiyue.wang@intel.com>",
        "To": "dev@dpdk.org, xiaolong.ye@intel.com, qi.z.zhang@intel.com,\n qiming.yang@intel.com, beilei.xing@intel.com",
        "Cc": "wei.zhao1@intel.com,\n\tHaiyue Wang <haiyue.wang@intel.com>",
        "Date": "Thu, 26 Mar 2020 11:03:42 +0800",
        "Message-Id": "<20200326030346.32907-4-haiyue.wang@intel.com>",
        "X-Mailer": "git-send-email 2.26.0",
        "In-Reply-To": "<20200326030346.32907-1-haiyue.wang@intel.com>",
        "References": "<20200309141437.11800-1-haiyue.wang@intel.com>\n <20200326030346.32907-1-haiyue.wang@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v4 3/7] net/ice: acquire and disable the DCF\n\tcapability",
        "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 <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": "Since the DCF (Device Config Function) controls the flow setting of\nother VFs by the mailbox with PF, for security, it needs to acquire\nthe DCF capability from PF when starts, and disable it when exits.\n\nSigned-off-by: Haiyue Wang <haiyue.wang@intel.com>\n---\n drivers/net/ice/ice_dcf.c | 27 ++++++++++++++++++++++++++-\n 1 file changed, 26 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/ice/ice_dcf.c b/drivers/net/ice/ice_dcf.c\nindex 0a99cceb1..6ea68feb9 100644\n--- a/drivers/net/ice/ice_dcf.c\n+++ b/drivers/net/ice/ice_dcf.c\n@@ -227,7 +227,7 @@ ice_dcf_get_vf_resource(struct ice_dcf_hw *hw)\n \tint err, i;\n \n \tcaps = VIRTCHNL_VF_OFFLOAD_WB_ON_ITR | VIRTCHNL_VF_OFFLOAD_RX_POLLING |\n-\t       VIRTCHNL_VF_CAP_ADV_LINK_SPEED |\n+\t       VIRTCHNL_VF_CAP_ADV_LINK_SPEED | VIRTCHNL_VF_CAP_DCF |\n \t       VF_BASE_MODE_OFFLOADS;\n \n \terr = ice_dcf_send_cmd_req_no_irq(hw, VIRTCHNL_OP_GET_VF_RESOURCES,\n@@ -264,6 +264,30 @@ ice_dcf_get_vf_resource(struct ice_dcf_hw *hw)\n \treturn 0;\n }\n \n+static int\n+ice_dcf_mode_disable(struct ice_dcf_hw *hw)\n+{\n+\tint err;\n+\n+\terr = ice_dcf_send_cmd_req_no_irq(hw, VIRTCHNL_OP_DCF_DISABLE,\n+\t\t\t\t\t  NULL, 0);\n+\tif (err) {\n+\t\tPMD_DRV_LOG(ERR, \"Failed to send msg OP_DCF_DISABLE\");\n+\t\treturn err;\n+\t}\n+\n+\terr = ice_dcf_recv_cmd_rsp_no_irq(hw, VIRTCHNL_OP_DCF_DISABLE,\n+\t\t\t\t\t  hw->arq_buf, ICE_DCF_AQ_BUF_SZ, NULL);\n+\tif (err) {\n+\t\tPMD_DRV_LOG(ERR,\n+\t\t\t    \"Failed to get response of OP_DCF_DISABLE %d\",\n+\t\t\t    err);\n+\t\treturn -1;\n+\t}\n+\n+\treturn 0;\n+}\n+\n static int\n ice_dcf_check_reset_done(struct ice_dcf_hw *hw)\n {\n@@ -467,6 +491,7 @@ ice_dcf_uninit_hw(struct rte_eth_dev *eth_dev, struct ice_dcf_hw *hw)\n \trte_intr_callback_unregister(intr_handle,\n \t\t\t\t     ice_dcf_dev_interrupt_handler, hw);\n \n+\tice_dcf_mode_disable(hw);\n \tiavf_shutdown_adminq(&hw->avf);\n \n \trte_free(hw->arq_buf);\n",
    "prefixes": [
        "v4",
        "3/7"
    ]
}