get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 93635,
    "url": "http://patches.dpdk.org/api/patches/93635/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210531141027.13289-13-arkadiuszx.kusztal@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": "<20210531141027.13289-13-arkadiuszx.kusztal@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210531141027.13289-13-arkadiuszx.kusztal@intel.com",
    "date": "2021-05-31T14:10:24",
    "name": "[12/15] common/qat: reset ring pairs before setting pmd",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "7969b3ecb56e2507376470551809872ea3c49116",
    "submitter": {
        "id": 452,
        "url": "http://patches.dpdk.org/api/people/452/?format=api",
        "name": "Arkadiusz Kusztal",
        "email": "arkadiuszx.kusztal@intel.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210531141027.13289-13-arkadiuszx.kusztal@intel.com/mbox/",
    "series": [
        {
            "id": 17172,
            "url": "http://patches.dpdk.org/api/series/17172/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=17172",
            "date": "2021-05-31T14:10:12",
            "name": "Add support for fourth generation of Intel QuickAssist Technology devices",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/17172/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/93635/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/93635/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 CED17A0524;\n\tMon, 31 May 2021 16:12:22 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8897141145;\n\tMon, 31 May 2021 16:11:08 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id 611D44113E\n for <dev@dpdk.org>; Mon, 31 May 2021 16:11:07 +0200 (CEST)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 31 May 2021 07:11:06 -0700",
            "from silpixa00400308.ir.intel.com ([10.237.214.61])\n by orsmga004.jf.intel.com with ESMTP; 31 May 2021 07:11:05 -0700"
        ],
        "IronPort-SDR": [
            "\n x6BoN61bvvMvMcu6ZguplxhTkjnp4OUBLHNJ0fjcPQPOxqLgTaFwHMRcixguFjF9QkLpA6411y\n 8CzHHHUVsbog==",
            "\n 6ICIj86rBHFiS1O1RpIQKKfQrvqXDQ4m4a4gf9gBgghF2rv+78weUwp3trVsdX4BSdvwNZZ87k\n ujoiG0tn5uVw=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10001\"; a=\"201492251\"",
            "E=Sophos;i=\"5.83,237,1616482800\"; d=\"scan'208\";a=\"201492251\"",
            "E=Sophos;i=\"5.83,237,1616482800\"; d=\"scan'208\";a=\"548760206\""
        ],
        "X-ExtLoop1": "1",
        "From": "Arek Kusztal <arkadiuszx.kusztal@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "gakhil@marvell.com, fiona.trahe@intel.com, roy.fan.zhang@intel.com,\n Arek Kusztal <arkadiuszx.kusztal@intel.com>",
        "Date": "Mon, 31 May 2021 15:10:24 +0100",
        "Message-Id": "<20210531141027.13289-13-arkadiuszx.kusztal@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20210531141027.13289-1-arkadiuszx.kusztal@intel.com>",
        "References": "<20210531141027.13289-1-arkadiuszx.kusztal@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 12/15] common/qat: reset ring pairs before\n setting pmd",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This commit resets ring pairs of particular vf before\nsetting PMD on fourth generation devices.\n\nSigned-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>\n---\n drivers/common/qat/qat_device.c | 27 +++++++++++++++++++++++++++\n 1 file changed, 27 insertions(+)",
    "diff": "diff --git a/drivers/common/qat/qat_device.c b/drivers/common/qat/qat_device.c\nindex 5ee441171e..d6bf0f52db 100644\n--- a/drivers/common/qat/qat_device.c\n+++ b/drivers/common/qat/qat_device.c\n@@ -11,6 +11,7 @@\n #include \"qat_sym_pmd.h\"\n #include \"qat_comp_pmd.h\"\n #include \"adf_pf2vf_msg.h\"\n+#include \"qat_pf2vf.h\"\n \n /* pv2vf data Gen 4*/\n struct qat_pf2vf_dev qat_pf2vf_gen4 = {\n@@ -125,6 +126,27 @@ qat_get_qat_dev_from_pci_dev(struct rte_pci_device *pci_dev)\n \treturn qat_pci_get_named_dev(name);\n }\n \n+static int qat_gen4_reset_ring_pair(struct qat_pci_device *qat_pci_dev)\n+{\n+\tint ret = 0, i;\n+\tuint8_t data[4];\n+\tstruct qat_pf2vf_msg pf2vf_msg;\n+\n+\tpf2vf_msg.msg_type = ADF_VF2PF_MSGTYPE_RP_RESET;\n+\tpf2vf_msg.block_hdr = -1;\n+\tfor (i = 0; i < QAT_GEN4_BUNDLE_NUM; i++) {\n+\t\tpf2vf_msg.msg_data = i;\n+\t\tret = qat_pf2vf_exch_msg(qat_pci_dev, pf2vf_msg, 1, data);\n+\t\tif (ret) {\n+\t\t\tQAT_LOG(ERR, \"QAT error when reset bundle no %d\",\n+\t\t\t\ti);\n+\t\t\treturn ret;\n+\t\t}\n+\t}\n+\n+\treturn 0;\n+}\n+\n static void qat_dev_parse_cmd(const char *str, struct qat_dev_cmd_param\n \t\t*qat_dev_cmd_param)\n {\n@@ -371,6 +393,11 @@ static int qat_pci_probe(struct rte_pci_driver *pci_drv __rte_unused,\n \tif (qat_pci_dev == NULL)\n \t\treturn -ENODEV;\n \n+\tif (qat_pci_dev->qat_dev_gen == QAT_GEN4) {\n+\t\tif (qat_gen4_reset_ring_pair(qat_pci_dev))\n+\t\t\treturn -ENODEV;\n+\t}\n+\n \tsym_ret = qat_sym_dev_create(qat_pci_dev, qat_dev_cmd_param);\n \tif (sym_ret == 0) {\n \t\tnum_pmds_created++;\n",
    "prefixes": [
        "12/15"
    ]
}