get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 114573,
    "url": "http://patches.dpdk.org/api/patches/114573/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220803113104.1184059-8-junfeng.guo@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": "<20220803113104.1184059-8-junfeng.guo@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220803113104.1184059-8-junfeng.guo@intel.com",
    "date": "2022-08-03T11:30:58",
    "name": "[07/13] net/idpf: add support to update link status",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "34c8fb32ca333b7731712dd476c1d580797c1300",
    "submitter": {
        "id": 1785,
        "url": "http://patches.dpdk.org/api/people/1785/?format=api",
        "name": "Junfeng Guo",
        "email": "junfeng.guo@intel.com"
    },
    "delegate": {
        "id": 3961,
        "url": "http://patches.dpdk.org/api/users/3961/?format=api",
        "username": "arybchenko",
        "first_name": "Andrew",
        "last_name": "Rybchenko",
        "email": "andrew.rybchenko@oktetlabs.ru"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220803113104.1184059-8-junfeng.guo@intel.com/mbox/",
    "series": [
        {
            "id": 24188,
            "url": "http://patches.dpdk.org/api/series/24188/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24188",
            "date": "2022-08-03T11:30:51",
            "name": "add support for idpf PMD in DPDK",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/24188/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/114573/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/114573/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 22539A00C5;\n\tWed,  3 Aug 2022 13:32:19 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E609E42BCB;\n\tWed,  3 Aug 2022 13:31:32 +0200 (CEST)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by mails.dpdk.org (Postfix) with ESMTP id 5F92D42BBF\n for <dev@dpdk.org>; Wed,  3 Aug 2022 13:31:31 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 03 Aug 2022 04:31:31 -0700",
            "from dpdk-jf-ntb-v2.sh.intel.com ([10.67.118.246])\n by FMSMGA003.fm.intel.com with ESMTP; 03 Aug 2022 04:31:29 -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=1659526291; x=1691062291;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=TSMQhvW0qSSVnLn50OQT5LVILT9Bo7TEUU6RkfiCfmo=;\n b=KaE35MhtRmL1bhviUgnF54sXWi98yMqG8ULKv8m/jNffQ6HpK1OyVYiK\n RIVvsQSNjaK962zVLKRrmJQE0fKXGSzhbwBVQOh+vOKY5zM55GteIS9eL\n fJ3JW6dcRLbCzMokU/5sUOrOpJxuUXX3yxrQ5SB3bQEnytxVXFEfydUzI\n 4otI96BdMAF1K7maV8snpR7vL97G+tXeFqiHSQFvcwGeVdd3fJo7JmHNa\n zjvLNhvQVG0NPFBl06qm7+ZESV7cJNBRfFXqSMds1KPZXmyo+EmMFOoUQ\n i5NO1BACWtvnUVf/VNcymKavVMZHgFlcc8TMXDYGGmmyo8SEi/m+kgIur A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10427\"; a=\"375948521\"",
            "E=Sophos;i=\"5.93,214,1654585200\"; d=\"scan'208\";a=\"375948521\"",
            "E=Sophos;i=\"5.93,214,1654585200\"; d=\"scan'208\";a=\"692211074\""
        ],
        "X-ExtLoop1": "1",
        "From": "Junfeng Guo <junfeng.guo@intel.com>",
        "To": "qi.z.zhang@intel.com,\n\tjingjing.wu@intel.com,\n\tbeilei.xing@intel.com",
        "Cc": "dev@dpdk.org,\n\tjunfeng.guo@intel.com",
        "Subject": "[PATCH 07/13] net/idpf: add support to update link status",
        "Date": "Wed,  3 Aug 2022 19:30:58 +0800",
        "Message-Id": "<20220803113104.1184059-8-junfeng.guo@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20220803113104.1184059-1-junfeng.guo@intel.com>",
        "References": "<20220803113104.1184059-1-junfeng.guo@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": "Add dev ops link_update.\n\nSigned-off-by: Beilei Xing <beilei.xing@intel.com>\nSigned-off-by: Junfeng Guo <junfeng.guo@intel.com>\n---\n drivers/net/idpf/idpf_ethdev.c | 22 ++++++++++++++++++++++\n drivers/net/idpf/idpf_ethdev.h |  2 ++\n 2 files changed, 24 insertions(+)",
    "diff": "diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c\nindex cc70e2e03a..668e488843 100644\n--- a/drivers/net/idpf/idpf_ethdev.c\n+++ b/drivers/net/idpf/idpf_ethdev.c\n@@ -31,6 +31,27 @@ static int idpf_dev_close(struct rte_eth_dev *dev);\n static int idpf_dev_info_get(struct rte_eth_dev *dev,\n \t\t\t     struct rte_eth_dev_info *dev_info);\n \n+int\n+idpf_dev_link_update(struct rte_eth_dev *dev,\n+\t\t     __rte_unused int wait_to_complete)\n+{\n+\tstruct idpf_vport *vport =\n+\t\t(struct idpf_vport *)dev->data->dev_private;\n+\tstruct rte_eth_link new_link;\n+\n+\tmemset(&new_link, 0, sizeof(new_link));\n+\n+\tnew_link.link_speed = RTE_ETH_SPEED_NUM_NONE;\n+\n+\tnew_link.link_duplex = RTE_ETH_LINK_FULL_DUPLEX;\n+\tnew_link.link_status = vport->link_up ? RTE_ETH_LINK_UP :\n+\t\tRTE_ETH_LINK_DOWN;\n+\tnew_link.link_autoneg = !(dev->data->dev_conf.link_speeds &\n+\t\t\t\t  RTE_ETH_LINK_SPEED_FIXED);\n+\n+\treturn rte_eth_linkstatus_set(dev, &new_link);\n+}\n+\n static const struct eth_dev_ops idpf_eth_dev_ops = {\n \t.dev_supported_ptypes_get\t= idpf_dev_supported_ptypes_get,\n \t.dev_configure\t\t\t= idpf_dev_configure,\n@@ -46,6 +67,7 @@ static const struct eth_dev_ops idpf_eth_dev_ops = {\n \t.tx_queue_setup\t\t\t= idpf_tx_queue_setup,\n \t.tx_queue_release\t\t= idpf_dev_tx_queue_release,\n \t.dev_infos_get\t\t\t= idpf_dev_info_get,\n+\t.link_update\t\t\t= idpf_dev_link_update,\n };\n \n static int\ndiff --git a/drivers/net/idpf/idpf_ethdev.h b/drivers/net/idpf/idpf_ethdev.h\nindex 25e0c5cae7..130bb7ad2d 100644\n--- a/drivers/net/idpf/idpf_ethdev.h\n+++ b/drivers/net/idpf/idpf_ethdev.h\n@@ -195,6 +195,8 @@ _atomic_set_cmd(struct idpf_adapter *adapter, enum virtchnl_ops ops)\n \treturn !ret;\n }\n \n+int idpf_dev_link_update(struct rte_eth_dev *dev,\n+\t\t\t __rte_unused int wait_to_complete);\n void idpf_handle_virtchnl_msg(struct rte_eth_dev *dev);\n int idpf_check_api_version(struct idpf_adapter *adapter);\n int idpf_get_caps(struct idpf_adapter *adapter);\n",
    "prefixes": [
        "07/13"
    ]
}