get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 111254,
    "url": "http://patches.dpdk.org/api/patches/111254/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220517173941.189330-11-hkalra@marvell.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": "<20220517173941.189330-11-hkalra@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220517173941.189330-11-hkalra@marvell.com",
    "date": "2022-05-17T17:39:40",
    "name": "[11/12] net/thunderx: device attach from secondary",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "898bc55b390b84806bc1a82b98d7bfc65ef34e45",
    "submitter": {
        "id": 1182,
        "url": "http://patches.dpdk.org/api/people/1182/?format=api",
        "name": "Harman Kalra",
        "email": "hkalra@marvell.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220517173941.189330-11-hkalra@marvell.com/mbox/",
    "series": [
        {
            "id": 22975,
            "url": "http://patches.dpdk.org/api/series/22975/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22975",
            "date": "2022-05-17T17:39:30",
            "name": "[01/12] config: add thundert83 config",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/22975/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/111254/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/111254/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 D14AEA0093;\n\tTue, 17 May 2022 19:41:03 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 20A2442B8A;\n\tTue, 17 May 2022 19:40:25 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 4B59242B82\n for <dev@dpdk.org>; Tue, 17 May 2022 19:40:23 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id\n 24H9idt1016727\n for <dev@dpdk.org>; Tue, 17 May 2022 10:40:22 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3g2bxsw90c-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Tue, 17 May 2022 10:40:22 -0700",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Tue, 17 May 2022 10:40:20 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Tue, 17 May 2022 10:40:20 -0700",
            "from localhost.localdomain (unknown [10.29.52.211])\n by maili.marvell.com (Postfix) with ESMTP id B81E63F7048;\n Tue, 17 May 2022 10:40:16 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-type; s=pfpt0220; bh=e5LIWsBfqMUZnZ2yVvDRh2G2hG6sdoWSwmH2WpRsxiA=;\n b=WJ9Gfy09Fn9Wn1qCm3+F1ccrDXWYTUltDZ/+gGbTuP31HwoH67iZDGkP8OvrZqZr9czJ\n DinK1aJ9YBaBbaWP8r9byrg6F1mQhNB+wGNWfncSkpfaZg34NaLycl67V5kKY3NZG9no\n ct+V62g7g1ixiWOaCl1HBwlvt9+qDmtpyg6vlB0IqSiCiYO1+Fqdt16zV1E9Q4Df5E02\n gk1up5NDY2PQ4cv7ioiXs00KlypSfeltBTzynU4aDX2KuRzX7x3jgDuNwPkCgQYnp2Dk\n ssP369zKzlscn4Qt8FVhhxv7oMgL9a4pF0efjLvuvHbIaFcpxOYoea15wbZWC9kl7ox4 CQ==",
        "From": "Harman Kalra <hkalra@marvell.com>",
        "To": "<dev@dpdk.org>, Jerin Jacob <jerinj@marvell.com>, Maciej Czekaj\n <mczekaj@marvell.com>",
        "CC": "Harman Kalra <hkalra@marvell.com>",
        "Subject": "[PATCH 11/12] net/thunderx: device attach from secondary",
        "Date": "Tue, 17 May 2022 23:09:40 +0530",
        "Message-ID": "<20220517173941.189330-11-hkalra@marvell.com>",
        "X-Mailer": "git-send-email 2.18.0",
        "In-Reply-To": "<20220517173941.189330-1-hkalra@marvell.com>",
        "References": "<20220517173941.189330-1-hkalra@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "3B4q_ZsOIPUZON7Z-np-F-AeYGYCESsD",
        "X-Proofpoint-GUID": "3B4q_ZsOIPUZON7Z-np-F-AeYGYCESsD",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.486,FMLib:17.11.64.514\n definitions=2022-05-17_03,2022-05-17_02,2022-02-23_01",
        "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": "Adding support for device hotplugging - attach and detach from\nsecondary\n\nSigned-off-by: Harman Kalra <hkalra@marvell.com>\n---\n drivers/net/thunderx/base/nicvf_mbox.c | 17 ++++++++++++++---\n 1 file changed, 14 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/thunderx/base/nicvf_mbox.c b/drivers/net/thunderx/base/nicvf_mbox.c\nindex 352b85d9e2..5993eec4e6 100644\n--- a/drivers/net/thunderx/base/nicvf_mbox.c\n+++ b/drivers/net/thunderx/base/nicvf_mbox.c\n@@ -85,6 +85,17 @@ nicvf_mbox_send_msg_to_pf(struct nicvf *nic, struct nic_mbx *mbx)\n \t\tnicvf_smp_wmb();\n \n \t\tnicvf_mbox_send_msg_to_pf_raw(nic, mbx);\n+\n+\t\t/* Handling case if mbox is called inside interrupt context,\n+\t\t * Eg if hotplug attach/detach request is initiated from\n+\t\t * secondary and primary handles the request in interrupt\n+\t\t * context as part of multprocess framework.\n+\t\t */\n+\t\tif (rte_thread_is_intr()) {\n+\t\t\tnicvf_delay_us(NICVF_MBOX_PF_RESPONSE_DELAY_US);\n+\t\t\tnicvf_reg_poll_interrupts(nic);\n+\t\t}\n+\n \t\t/* Give some time to get PF response */\n \t\tnicvf_delay_us(NICVF_MBOX_PF_RESPONSE_DELAY_US);\n \t\ttimeout = NIC_MBOX_MSG_TIMEOUT;\n@@ -100,10 +111,10 @@ nicvf_mbox_send_msg_to_pf(struct nicvf *nic, struct nic_mbx *mbx)\n \t\t\tnicvf_delay_us(NICVF_MBOX_PF_RESPONSE_DELAY_US);\n \t\t\ttimeout -= sleep;\n \t\t}\n-\t\tnicvf_log_error(\"PF didn't ack to msg 0x%02x %s VF%d (%d/%d)\",\n-\t\t\t\tmbx->msg.msg, nicvf_mbox_msg_str(mbx->msg.msg),\n-\t\t\t\tnic->vf_id, i, retry);\n \t}\n+\tnicvf_log_error(\"PF didn't ack to msg 0x%02x %s VF%d (%d/%d)\",\n+\t\t\tmbx->msg.msg, nicvf_mbox_msg_str(mbx->msg.msg),\n+\t\t\tnic->vf_id, i, retry);\n \treturn -EBUSY;\n }\n \n",
    "prefixes": [
        "11/12"
    ]
}