get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 109370,
    "url": "https://patches.dpdk.org/api/patches/109370/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220407105706.18889-19-kevinx.liu@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": "<20220407105706.18889-19-kevinx.liu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220407105706.18889-19-kevinx.liu@intel.com",
    "date": "2022-04-07T10:56:45",
    "name": "[18/39] net/ice: support buildin recipe configuration",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "dd43475f7545a213dd62aa1e025df4e360070254",
    "submitter": {
        "id": 2440,
        "url": "https://patches.dpdk.org/api/people/2440/?format=api",
        "name": "Kevin Liu",
        "email": "kevinx.liu@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/20220407105706.18889-19-kevinx.liu@intel.com/mbox/",
    "series": [
        {
            "id": 22387,
            "url": "https://patches.dpdk.org/api/series/22387/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=22387",
            "date": "2022-04-07T10:56:27",
            "name": "support full function of DCF",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/22387/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/109370/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/109370/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 777E5A0508;\n\tThu,  7 Apr 2022 04:59:54 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 13CD64287C;\n\tThu,  7 Apr 2022 04:59:09 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id EEFFE4289D\n for <dev@dpdk.org>; Thu,  7 Apr 2022 04:59:06 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 06 Apr 2022 19:59:06 -0700",
            "from intel-cd-odc-kevin.cd.intel.com ([10.240.178.195])\n by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 06 Apr 2022 19:59:03 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1649300347; x=1680836347;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=WDsMFwS6mcRzNwmIl//IO5h3Qnlb7SWHClfjuytGiRA=;\n b=R2aoodjkND7SCZcQ2Zriypf7b2Gsx+IVWOoTU9yeRA6WP7vkrxFKU+rx\n D0y3mg2JbEwUGkgkFcruRQVWySgjCw8equMI6j+UtKOGHoB+Ik3GWgjx0\n eJ7w3TY2CBz1cC5/hL4O3wcqZu2nRmCbFgEnUthhVyXsmWoVRO08eODU9\n Vlvp4peeiGvL+8fBmFZLLCohlaeGiCQoUX8etsroDxwwxzdojYJg4qSL8\n +5ylhef1GYLaJzFQDIohX29DoGDiGCevxmDHAM9B8Y+GvEivDLumg2Bl7\n eNFHW5gheKzyJpQzVot2/coubrOxeK+7i5He2BBm0PlL498HTYn8H5qpv w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10309\"; a=\"248738394\"",
            "E=Sophos;i=\"5.90,241,1643702400\"; d=\"scan'208\";a=\"248738394\"",
            "E=Sophos;i=\"5.90,241,1643702400\"; d=\"scan'208\";a=\"570850636\""
        ],
        "From": "Kevin Liu <kevinx.liu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "qiming.yang@intel.com, qi.z.zhang@intel.com, stevex.yang@intel.com,\n Alvin Zhang <alvinx.zhang@intel.com>, Steven Zou <steven.zou@intel.com>,\n Kevin Liu <kevinx.liu@intel.com>",
        "Subject": "[PATCH 18/39] net/ice: support buildin recipe configuration",
        "Date": "Thu,  7 Apr 2022 10:56:45 +0000",
        "Message-Id": "<20220407105706.18889-19-kevinx.liu@intel.com>",
        "X-Mailer": "git-send-email 2.33.1",
        "In-Reply-To": "<20220407105706.18889-1-kevinx.liu@intel.com>",
        "References": "<20220407105706.18889-1-kevinx.liu@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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"
    },
    "content": "From: Alvin Zhang <alvinx.zhang@intel.com>\n\nSupport parsing 'br'(buildin recipe) parameter in device parameter list.\n\nSigned-off-by: Steven Zou <steven.zou@intel.com>\nSigned-off-by: Alvin Zhang <alvinx.zhang@intel.com>\nSigned-off-by: Kevin Liu <kevinx.liu@intel.com>\n---\n drivers/net/ice/ice_dcf_ethdev.c | 26 +++++++++++++++++++++++++-\n 1 file changed, 25 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c\nindex 90787d8c49..a165f74e26 100644\n--- a/drivers/net/ice/ice_dcf_ethdev.c\n+++ b/drivers/net/ice/ice_dcf_ethdev.c\n@@ -1807,6 +1807,23 @@ ice_dcf_cap_check_handler(__rte_unused const char *key,\n \treturn -1;\n }\n \n+static int\n+parse_bool(const char *key, const char *value, void *args)\n+{\n+\tbool *i = (bool *)args;\n+\tint num = atoi(value);\n+\n+\tif (num != 0 && num != 1) {\n+\t\tPMD_DRV_LOG(WARNING,\n+\t\t\t    \"invalid value:\\\"%s\\\" for key:\\\"%s\\\", must be 0 or 1\",\n+\t\t\t    value, key);\n+\t\treturn -1;\n+\t}\n+\n+\t*i = (bool)num;\n+\treturn 0;\n+}\n+\n static int\n ice_dcf_cap_selected(struct ice_dcf_adapter *adapter,\n \t\t      struct rte_devargs *devargs)\n@@ -1814,7 +1831,9 @@ ice_dcf_cap_selected(struct ice_dcf_adapter *adapter,\n \tstruct ice_adapter *ad = &adapter->parent;\n \tstruct rte_kvargs *kvlist;\n \tconst char *key_cap = \"cap\";\n+\tconst char *key_br = \"br\";\n \tint ret = 0;\n+\tbool br = 0;\n \n \tif (devargs == NULL)\n \t\treturn 0;\n@@ -1832,6 +1851,11 @@ ice_dcf_cap_selected(struct ice_dcf_adapter *adapter,\n \t\t\t       &adapter->real_hw.multi_inst) < 0)\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_br, parse_bool, &br) < 0)\n+\t\tgoto exit;\n+\n+\tad->hw.use_buildin_recipe = br;\n \tret = 1;\n \n exit:\n@@ -2008,4 +2032,4 @@ static struct rte_pci_driver rte_ice_dcf_pmd = {\n RTE_PMD_REGISTER_PCI(net_ice_dcf, rte_ice_dcf_pmd);\n RTE_PMD_REGISTER_PCI_TABLE(net_ice_dcf, pci_id_ice_dcf_map);\n RTE_PMD_REGISTER_KMOD_DEP(net_ice_dcf, \"* igb_uio | vfio-pci\");\n-RTE_PMD_REGISTER_PARAM_STRING(net_ice_dcf, \"cap=dcf|mdcf\");\n+RTE_PMD_REGISTER_PARAM_STRING(net_ice_dcf, \"cap=dcf|mdcf br=<1|0>\");\n",
    "prefixes": [
        "18/39"
    ]
}