get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 109659,
    "url": "https://patches.dpdk.org/api/patches/109659/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220413160932.2074781-26-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-26-kevinx.liu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220413160932.2074781-26-kevinx.liu@intel.com",
    "date": "2022-04-13T16:09:24",
    "name": "[v2,25/33] net/ice: handle virtchnl event message without interrupt",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "1b164eda940ed9b5ca7d2fe81d6cd6009dcb85ce",
    "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-26-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/109659/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/109659/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 9BD1CA0508;\n\tWed, 13 Apr 2022 10:13:45 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D56AE42858;\n\tWed, 13 Apr 2022 10:11:50 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id 779EF4285A\n for <dev@dpdk.org>; Wed, 13 Apr 2022 10:11:49 +0200 (CEST)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 13 Apr 2022 01:11:48 -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:46 -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=1649837509; x=1681373509;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=vx3KvaMnEFzaeQ20Xa1BkP9Xre0h7AyMATPkcVMuFNY=;\n b=C6RWu+HFl9qh+KJvRAjve3cb7FcYjXB/mFnvuqsfw53yi/MmXwxG+fhN\n Tld8AqWrWXkxv4TquyVDHFpcZqvn+WWd5Rwmnf7hwG7u6vwTjPtP0CYS0\n r6q2K3ZYrIvQ/1eoEwQ46Cvo87Y97LmLuEDp02ZwDz/ADcLoI73fHfqfm\n o2rcSmS3nkwbWoCttK2u5t5dRF0EvlVXbGvTbcN43yplZqC9v6ewDDyEB\n I/1wUmVfgLCgcc64OO+7sms/IRbGGLq3DLkMb+G9/AnFYuXKU/4XpjzR/\n Wlbk7pas6p8hiM+g3KAQHAJZ9mS5BXGkeVy/AvisQYJt25OunaHLfIVhd A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10315\"; a=\"287630101\"",
            "E=Sophos;i=\"5.90,256,1643702400\"; d=\"scan'208\";a=\"287630101\"",
            "E=Sophos;i=\"5.90,256,1643702400\"; d=\"scan'208\";a=\"526847862\""
        ],
        "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 Kevin Liu <kevinx.liu@intel.com>",
        "Subject": "[PATCH v2 25/33] net/ice: handle virtchnl event message without\n interrupt",
        "Date": "Wed, 13 Apr 2022 16:09:24 +0000",
        "Message-Id": "<20220413160932.2074781-26-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: Steve Yang <stevex.yang@intel.com>\n\nCurrently, VF can only handle virtchnl event message by calling interrupt.\nIt is not available in two cases:\n1. If the event message comes during VF initialization before interrupt\nis enabled, this message will not be handled correctly.\n2. Some virtchnl commands need to receive the event message and handle\nit with interrupt disabled.\nTo solve this issue, we add the virtchnl event message handling in the\nprocess of reading vitchnl messages in adminq from PF.\n\nSigned-off-by: Steve Yang <stevex.yang@intel.com>\nSigned-off-by: Kevin Liu <kevinx.liu@intel.com>\n---\n drivers/net/ice/ice_dcf.c | 25 +++++++++++++++++++++++--\n 1 file changed, 23 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/ice/ice_dcf.c b/drivers/net/ice/ice_dcf.c\nindex 9c2f13cf72..1415f26ac3 100644\n--- a/drivers/net/ice/ice_dcf.c\n+++ b/drivers/net/ice/ice_dcf.c\n@@ -63,11 +63,32 @@ ice_dcf_recv_cmd_rsp_no_irq(struct ice_dcf_hw *hw, enum virtchnl_ops op,\n \t\t\tgoto again;\n \n \t\tv_op = rte_le_to_cpu_32(event.desc.cookie_high);\n-\t\tif (v_op != op)\n-\t\t\tgoto again;\n+\n+\t\tif (v_op == VIRTCHNL_OP_EVENT) {\n+\t\t\tstruct virtchnl_pf_event *vpe =\n+\t\t\t\t(struct virtchnl_pf_event *)event.msg_buf;\n+\t\t\tswitch (vpe->event) {\n+\t\t\tcase VIRTCHNL_EVENT_RESET_IMPENDING:\n+\t\t\t\thw->resetting = true;\n+\t\t\t\tif (rsp_msglen)\n+\t\t\t\t\t*rsp_msglen = 0;\n+\t\t\t\treturn IAVF_SUCCESS;\n+\t\t\tdefault:\n+\t\t\t\tgoto again;\n+\t\t\t}\n+\t\t} else {\n+\t\t\t/* async reply msg on command issued by vf previously */\n+\t\t\tif (v_op != op) {\n+\t\t\t\tPMD_DRV_LOG(WARNING,\n+\t\t\t\t\t\"command mismatch, expect %u, get %u\",\n+\t\t\t\t\top, v_op);\n+\t\t\t\tgoto again;\n+\t\t\t}\n+\t\t}\n \n \t\tif (rsp_msglen != NULL)\n \t\t\t*rsp_msglen = event.msg_len;\n+\n \t\treturn rte_le_to_cpu_32(event.desc.cookie_low);\n \n again:\n",
    "prefixes": [
        "v2",
        "25/33"
    ]
}