get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 131240,
    "url": "http://patchwork.dpdk.org/api/patches/131240/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230908111701.1022724-3-beilei.xing@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20230908111701.1022724-3-beilei.xing@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230908111701.1022724-3-beilei.xing@intel.com",
    "date": "2023-09-08T11:16:53",
    "name": "[v4,02/10] net/cpfl: introduce interface structure",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e33e9ab1fae153e6d10e5ce94d6cc4cb01084306",
    "submitter": {
        "id": 410,
        "url": "http://patchwork.dpdk.org/api/people/410/?format=api",
        "name": "Xing, Beilei",
        "email": "beilei.xing@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patchwork.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230908111701.1022724-3-beilei.xing@intel.com/mbox/",
    "series": [
        {
            "id": 29454,
            "url": "http://patchwork.dpdk.org/api/series/29454/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29454",
            "date": "2023-09-08T11:16:51",
            "name": "net/cpfl: support port representor",
            "version": 4,
            "mbox": "http://patchwork.dpdk.org/series/29454/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/131240/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/131240/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 06FC74253D;\n\tFri,  8 Sep 2023 04:58:36 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A709B402D6;\n\tFri,  8 Sep 2023 04:58:24 +0200 (CEST)",
            "from mgamail.intel.com (mgamail.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id 1FD4B402BD\n for <dev@dpdk.org>; Fri,  8 Sep 2023 04:58:22 +0200 (CEST)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 07 Sep 2023 19:58:21 -0700",
            "from dpdk-beileix-icelake.sh.intel.com ([10.67.116.248])\n by fmsmga008.fm.intel.com with ESMTP; 07 Sep 2023 19:58:20 -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=1694141903; x=1725677903;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=NtD2ePcGBS/hdJGZhKm3HkTeVR3g1CKWsWO+Z4b5sS8=;\n b=QSkSKEFUQN9pVAC98fPoDL53Xpvz1HAz/yY+/RPeAOEoe+LgCiAEzhbR\n YPOHWeQnTCE7n3Hmtq8UzeehJKGcGyzrnPWu92N+j0H2s6bg2CD8cMoBa\n 71Y30wmWb/BnEydatpAXxOXtEvSuIrXSNTNzqoInASMtxgs6ZiLSL8UIN\n EoABBxInhLg06xIffj9FmQ3okHBrN7ExULVRtWjIz7kKc/KyNpX58E73W\n c34FSYVWWKk2NwLcxSI3JQ31Ju0RCK/0rfAwQ3ecWg0ZpJlisxoFsV3Qu\n Y+0Lth81xh553/ZocQYsV13c1dhIvVtrxhSZegR8+mcjIoQSEXrfOfkA9 A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10826\"; a=\"357002034\"",
            "E=Sophos;i=\"6.02,236,1688454000\"; d=\"scan'208\";a=\"357002034\"",
            "E=McAfee;i=\"6600,9927,10826\"; a=\"807789817\"",
            "E=Sophos;i=\"6.02,236,1688454000\"; d=\"scan'208\";a=\"807789817\""
        ],
        "X-ExtLoop1": "1",
        "From": "beilei.xing@intel.com",
        "To": "jingjing.wu@intel.com",
        "Cc": "dev@dpdk.org, mingxia.liu@intel.com, Beilei Xing <beilei.xing@intel.com>,\n Qi Zhang <qi.z.zhang@intel.com>",
        "Subject": "[PATCH v4 02/10] net/cpfl: introduce interface structure",
        "Date": "Fri,  8 Sep 2023 11:16:53 +0000",
        "Message-Id": "<20230908111701.1022724-3-beilei.xing@intel.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20230908111701.1022724-1-beilei.xing@intel.com>",
        "References": "<20230907151606.849612-1-beilei.xing@intel.com>\n <20230908111701.1022724-1-beilei.xing@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: Beilei Xing <beilei.xing@intel.com>\n\nIntroduce cplf interface structure to distinguish vport and port\nrepresentor.\n\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\nSigned-off-by: Beilei Xing <beilei.xing@intel.com>\n---\n drivers/net/cpfl/cpfl_ethdev.c |  3 +++\n drivers/net/cpfl/cpfl_ethdev.h | 16 ++++++++++++++++\n 2 files changed, 19 insertions(+)",
    "diff": "diff --git a/drivers/net/cpfl/cpfl_ethdev.c b/drivers/net/cpfl/cpfl_ethdev.c\nindex 46b3a52e49..92fe92c00f 100644\n--- a/drivers/net/cpfl/cpfl_ethdev.c\n+++ b/drivers/net/cpfl/cpfl_ethdev.c\n@@ -1803,6 +1803,9 @@ cpfl_dev_vport_init(struct rte_eth_dev *dev, void *init_params)\n \t\tgoto err;\n \t}\n \n+\tcpfl_vport->itf.type = CPFL_ITF_TYPE_VPORT;\n+\tcpfl_vport->itf.adapter = adapter;\n+\tcpfl_vport->itf.data = dev->data;\n \tadapter->vports[param->idx] = cpfl_vport;\n \tadapter->cur_vports |= RTE_BIT32(param->devarg_id);\n \tadapter->cur_vport_nb++;\ndiff --git a/drivers/net/cpfl/cpfl_ethdev.h b/drivers/net/cpfl/cpfl_ethdev.h\nindex b637bf2e45..53e45035e8 100644\n--- a/drivers/net/cpfl/cpfl_ethdev.h\n+++ b/drivers/net/cpfl/cpfl_ethdev.h\n@@ -86,7 +86,19 @@ struct p2p_queue_chunks_info {\n \tuint32_t rx_buf_qtail_spacing;\n };\n \n+enum cpfl_itf_type {\n+\tCPFL_ITF_TYPE_VPORT,\n+\tCPFL_ITF_TYPE_REPRESENTOR\n+};\n+\n+struct cpfl_itf {\n+\tenum cpfl_itf_type type;\n+\tstruct cpfl_adapter_ext *adapter;\n+\tvoid *data;\n+};\n+\n struct cpfl_vport {\n+\tstruct cpfl_itf itf;\n \tstruct idpf_vport base;\n \tstruct p2p_queue_chunks_info *p2p_q_chunks_info;\n \n@@ -124,5 +136,9 @@ TAILQ_HEAD(cpfl_adapter_list, cpfl_adapter_ext);\n \tRTE_DEV_TO_PCI((eth_dev)->device)\n #define CPFL_ADAPTER_TO_EXT(p)\t\t\t\t\t\\\n \tcontainer_of((p), struct cpfl_adapter_ext, base)\n+#define CPFL_DEV_TO_VPORT(dev)\t\t\t\t\t\\\n+\t((struct cpfl_vport *)((dev)->data->dev_private))\n+#define CPFL_DEV_TO_ITF(dev)\t\t\t\t\\\n+\t((struct cpfl_itf *)((dev)->data->dev_private))\n \n #endif /* _CPFL_ETHDEV_H_ */\n",
    "prefixes": [
        "v4",
        "02/10"
    ]
}