get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 109644,
    "url": "https://patches.dpdk.org/api/patches/109644/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220413160932.2074781-11-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": "<20220413160932.2074781-11-kevinx.liu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220413160932.2074781-11-kevinx.liu@intel.com",
    "date": "2022-04-13T16:09:09",
    "name": "[v2,10/33] net/ice: enable CVL DCF device reset API",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "7b3b1edfbef6e90bd0db323f3e8f0e62fad5929a",
    "submitter": {
        "id": 2440,
        "url": "https://patches.dpdk.org/api/people/2440/?format=api",
        "name": "Kevin Liu",
        "email": "kevinx.liu@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220413160932.2074781-11-kevinx.liu@intel.com/mbox/",
    "series": [
        {
            "id": 22497,
            "url": "https://patches.dpdk.org/api/series/22497/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=22497",
            "date": "2022-04-13T16:08:59",
            "name": "support full function of DCF",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/22497/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/109644/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/109644/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 DC10FA0508;\n\tWed, 13 Apr 2022 10:11:53 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6766642805;\n\tWed, 13 Apr 2022 10:11:12 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id 9770242805\n for <dev@dpdk.org>; Wed, 13 Apr 2022 10:11:10 +0200 (CEST)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Apr 2022 01:11:06 -0700",
            "from intel-cd-odc-kevin.cd.intel.com ([10.240.178.195])\n by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Apr 2022 01:11:04 -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=1649837470; x=1681373470;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=soZEOlPaZDYWJK582B374G4S5rjpEAf/cO/hHvnfTro=;\n b=ZRmEiH5r4ApScxRduXgxq0CLCvM83Hx46PiT8XzXrL5qRjW4PZbEscGW\n fqj7DhrWKUnvfbZxZYtFitMbPRWLPrM2Hm1Xew39rjz3wzmv2hibOaDnm\n imGjRoKqv7wRajmvRLLcRsVEKLCvszY/aGzl+X1QFiA/tYpBa0+NB0gx5\n GqgG2UG/sayJZK9z7RcLDQIgmyzC522PGhQDo7dkf6vP5USGcEqX9fOYM\n liIRvq+eRPmNk5fWl681dUFHKHyy6jbq+gtx1zCxwTDOC18kitlAa93FJ\n KpbjZQMyGpvtgLHNy0pt9DEE0vDTxin3Rsbiy5dUxYPFXh9LF9Q8k4t33 w==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10315\"; a=\"243189118\"",
            "E=Sophos;i=\"5.90,256,1643702400\"; d=\"scan'208\";a=\"243189118\"",
            "E=Sophos;i=\"5.90,256,1643702400\"; d=\"scan'208\";a=\"526847611\""
        ],
        "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 Dapeng Yu <dapengx.yu@intel.com>, Kevin Liu <kevinx.liu@intel.com>",
        "Subject": "[PATCH v2 10/33] net/ice: enable CVL DCF device reset API",
        "Date": "Wed, 13 Apr 2022 16:09:09 +0000",
        "Message-Id": "<20220413160932.2074781-11-kevinx.liu@intel.com>",
        "X-Mailer": "git-send-email 2.33.1",
        "In-Reply-To": "<20220413160932.2074781-1-kevinx.liu@intel.com>",
        "References": "<20220407105706.18889-1-kevinx.liu@intel.com>\n <20220413160932.2074781-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: Dapeng Yu <dapengx.yu@intel.com>\n\nEnable CVL DCF device reset API.\n\nSigned-off-by: Dapeng Yu <dapengx.yu@intel.com>\nSigned-off-by: Kevin Liu <kevinx.liu@intel.com>\n---\n drivers/net/ice/ice_dcf.c | 24 ++++++++++++++++++++++++\n drivers/net/ice/ice_dcf.h |  1 +\n 2 files changed, 25 insertions(+)",
    "diff": "diff --git a/drivers/net/ice/ice_dcf.c b/drivers/net/ice/ice_dcf.c\nindex 885d58c0f4..9c2f13cf72 100644\n--- a/drivers/net/ice/ice_dcf.c\n+++ b/drivers/net/ice/ice_dcf.c\n@@ -1163,3 +1163,27 @@ ice_dcf_add_del_all_mac_addr(struct ice_dcf_hw *hw,\n \trte_free(list);\n \treturn err;\n }\n+\n+int\n+ice_dcf_cap_reset(struct rte_eth_dev *eth_dev, struct ice_dcf_hw *hw)\n+{\n+\tint ret;\n+\n+\tstruct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(eth_dev);\n+\tstruct rte_intr_handle *intr_handle = &pci_dev->intr_handle;\n+\n+\tice_dcf_disable_irq0(hw);\n+\trte_intr_disable(intr_handle);\n+\trte_intr_callback_unregister(intr_handle, ice_dcf_dev_interrupt_handler,\n+\t\t\t\t     hw);\n+\tret = ice_dcf_mode_disable(hw);\n+\tif (ret)\n+\t\tgoto err;\n+\tret = ice_dcf_get_vf_resource(hw);\n+err:\n+\trte_intr_callback_register(intr_handle, ice_dcf_dev_interrupt_handler,\n+\t\t\t\t   hw);\n+\trte_intr_enable(intr_handle);\n+\tice_dcf_enable_irq0(hw);\n+\treturn ret;\n+}\ndiff --git a/drivers/net/ice/ice_dcf.h b/drivers/net/ice/ice_dcf.h\nindex 32e6031bd9..8cf17e7700 100644\n--- a/drivers/net/ice/ice_dcf.h\n+++ b/drivers/net/ice/ice_dcf.h\n@@ -137,6 +137,7 @@ int ice_dcf_add_del_all_mac_addr(struct ice_dcf_hw *hw,\n \t\t\t\t uint8_t type);\n int ice_dcf_link_update(struct rte_eth_dev *dev,\n \t\t    __rte_unused int wait_to_complete);\n+int ice_dcf_cap_reset(struct rte_eth_dev *eth_dev, struct ice_dcf_hw *hw);\n void ice_dcf_tm_conf_init(struct rte_eth_dev *dev);\n void ice_dcf_tm_conf_uninit(struct rte_eth_dev *dev);\n int ice_dcf_replay_vf_bw(struct ice_dcf_hw *hw, uint16_t vf_id);\n",
    "prefixes": [
        "v2",
        "10/33"
    ]
}