get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 66481,
    "url": "http://patches.dpdk.org/api/patches/66481/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200310065029.40966-2-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": "<20200310065029.40966-2-haiyue.wang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200310065029.40966-2-haiyue.wang@intel.com",
    "date": "2020-03-10T06:50:23",
    "name": "[v2,1/7] net/iavf: stop the PCI probe in DCF mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "1f3cae089372481b45d6c90c89aaafda5bb46484",
    "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/20200310065029.40966-2-haiyue.wang@intel.com/mbox/",
    "series": [
        {
            "id": 8859,
            "url": "http://patches.dpdk.org/api/series/8859/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8859",
            "date": "2020-03-10T06:50:22",
            "name": "add Intel DCF PMD support",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/8859/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/66481/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/66481/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 870F2A0563;\n\tTue, 10 Mar 2020 07:58:26 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 88D541BFFD;\n\tTue, 10 Mar 2020 07:58:21 +0100 (CET)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by dpdk.org (Postfix) with ESMTP id 317362E81\n for <dev@dpdk.org>; Tue, 10 Mar 2020 07:58:17 +0100 (CET)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 09 Mar 2020 23:58:17 -0700",
            "from npg-dpdk-haiyue-1.sh.intel.com ([10.67.119.213])\n by orsmga001.jf.intel.com with ESMTP; 09 Mar 2020 23:58:15 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.70,518,1574150400\"; d=\"scan'208\";a=\"321693928\"",
        "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": "Tue, 10 Mar 2020 14:50:23 +0800",
        "Message-Id": "<20200310065029.40966-2-haiyue.wang@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20200310065029.40966-1-haiyue.wang@intel.com>",
        "References": "<20200309141437.11800-1-haiyue.wang@intel.com>\n <20200310065029.40966-1-haiyue.wang@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 1/7] net/iavf: stop the PCI probe in DCF mode",
        "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": "A new DCF PMD will be introduced, which runs on Intel VF hardware, and\nit is a pure software design to control the advance functionality (such\nas switch, ACL) for rest of the VFs.\n\nSo if the DCF (Device Config Function) mode is specified by the devarg\n'cap=dcf', then it will stop the PCI probe in the iavf PMD.\n\nSigned-off-by: Haiyue Wang <haiyue.wang@intel.com>\n---\n drivers/net/iavf/iavf_ethdev.c | 43 ++++++++++++++++++++++++++++++++++\n 1 file changed, 43 insertions(+)",
    "diff": "diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c\nindex 34913f9c4..c0b95e169 100644\n--- a/drivers/net/iavf/iavf_ethdev.c\n+++ b/drivers/net/iavf/iavf_ethdev.c\n@@ -1416,9 +1416,51 @@ iavf_dev_uninit(struct rte_eth_dev *dev)\n \treturn 0;\n }\n \n+static int\n+iavf_dcf_cap_check_handler(__rte_unused const char *key,\n+\t\t\t   const char *value, __rte_unused void *opaque)\n+{\n+\tif (strcmp(value, \"dcf\"))\n+\t\treturn -1;\n+\n+\treturn 0;\n+}\n+\n+static int\n+iavf_dcf_cap_selected(struct rte_devargs *devargs)\n+{\n+\tstruct rte_kvargs *kvlist;\n+\tconst char *key = \"cap\";\n+\tint ret = 0;\n+\n+\tif (devargs == NULL)\n+\t\treturn 0;\n+\n+\tkvlist = rte_kvargs_parse(devargs->args, NULL);\n+\tif (kvlist == NULL)\n+\t\treturn 0;\n+\n+\tif (!rte_kvargs_count(kvlist, key))\n+\t\tgoto exit;\n+\n+\t/* dcf capability selected when there's a key-value pair: cap=dcf */\n+\tif (rte_kvargs_process(kvlist, key,\n+\t\t\t       iavf_dcf_cap_check_handler, NULL) < 0)\n+\t\tgoto exit;\n+\n+\tret = 1;\n+\n+exit:\n+\trte_kvargs_free(kvlist);\n+\treturn ret;\n+}\n+\n static int eth_iavf_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n \t\t\t     struct rte_pci_device *pci_dev)\n {\n+\tif (iavf_dcf_cap_selected(pci_dev->device.devargs))\n+\t\treturn 1;\n+\n \treturn rte_eth_dev_pci_generic_probe(pci_dev,\n \t\tsizeof(struct iavf_adapter), iavf_dev_init);\n }\n@@ -1439,6 +1481,7 @@ static struct rte_pci_driver rte_iavf_pmd = {\n RTE_PMD_REGISTER_PCI(net_iavf, rte_iavf_pmd);\n RTE_PMD_REGISTER_PCI_TABLE(net_iavf, pci_id_iavf_map);\n RTE_PMD_REGISTER_KMOD_DEP(net_iavf, \"* igb_uio | vfio-pci\");\n+RTE_PMD_REGISTER_PARAM_STRING(net_iavf, \"cap=dcf\");\n RTE_INIT(iavf_init_log)\n {\n \tiavf_logtype_init = rte_log_register(\"pmd.net.iavf.init\");\n",
    "prefixes": [
        "v2",
        "1/7"
    ]
}