get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 111245,
    "url": "http://patches.dpdk.org/api/patches/111245/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220517173941.189330-2-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-2-hkalra@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220517173941.189330-2-hkalra@marvell.com",
    "date": "2022-05-17T17:39:31",
    "name": "[02/12] event/octeontx: fix SSO fastpath",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "77d44883c42a6f1c1923589a692bd93624497812",
    "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-2-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/111245/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/111245/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 A7272A0503;\n\tTue, 17 May 2022 19:40:02 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 46076415D7;\n\tTue, 17 May 2022 19:39:59 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 053C940A7A\n for <dev@dpdk.org>; Tue, 17 May 2022 19:39:57 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id\n 24HAikp4011455\n for <dev@dpdk.org>; Tue, 17 May 2022 10:39:55 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3g4a7a1r2d-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Tue, 17 May 2022 10:39:55 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) 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:39:53 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Tue, 17 May 2022 10:39:53 -0700",
            "from localhost.localdomain (unknown [10.29.52.211])\n by maili.marvell.com (Postfix) with ESMTP id 71B593F70AE;\n Tue, 17 May 2022 10:39:52 -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=2Wv5c6H13siitY8epqx7fmkhSxe8Yv2WLCGG8rJfB84=;\n b=foN9M4lHUmU3W9hBlDKAfQbCHuVtqQn9RYXdendZmP3VQO9Pf1tkM6Wwyr+GcX1BabNu\n rBtHRWkhMxywOq3fBjihX35tKybmmGpqz0D3CETtINxuDyNpIepwcaYn2Aw6IgHDhHXg\n iPdm3qI+Y9UMbHcuvNjcy4DdKyigRh08Km/V2d5vuT+R8QPHWau98gf1eJ66mUNd3s/Z\n 6vbmiPX6JnS4D3DbgC/7zN1vpZOwFVJeinPJXj/7or8Ocbh3Gupq0xZsHv4mJTCCV61L\n iG80Ie8aexKuoY+FfKk3OSzrPhbfbaKl8+2fZQvzZpQJK92UmAs82jpmavc7wUT1Sr4f vQ==",
        "From": "Harman Kalra <hkalra@marvell.com>",
        "To": "<dev@dpdk.org>, Jerin Jacob <jerinj@marvell.com>",
        "CC": "Harman Kalra <hkalra@marvell.com>",
        "Subject": "[PATCH 02/12] event/octeontx: fix SSO fastpath",
        "Date": "Tue, 17 May 2022 23:09:31 +0530",
        "Message-ID": "<20220517173941.189330-2-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-GUID": "yMbswnwjDGOy2pEhU6GwOQtKkzV7l0ZI",
        "X-Proofpoint-ORIG-GUID": "yMbswnwjDGOy2pEhU6GwOQtKkzV7l0ZI",
        "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": "Segmentation fault is observed as soon as any dpdk application\nwith ethdev event is launched. Handling the event types\nappropriately.\n\nFixes: 8dc6c2f12ecf (\"crypto/octeontx: add crypto adapter data path\")\n\nSigned-off-by: Harman Kalra <hkalra@marvell.com>\n---\n drivers/event/octeontx/ssovf_worker.h | 22 +++++++++++++---------\n 1 file changed, 13 insertions(+), 9 deletions(-)",
    "diff": "diff --git a/drivers/event/octeontx/ssovf_worker.h b/drivers/event/octeontx/ssovf_worker.h\nindex e6ee292688..1e906bf694 100644\n--- a/drivers/event/octeontx/ssovf_worker.h\n+++ b/drivers/event/octeontx/ssovf_worker.h\n@@ -179,16 +179,20 @@ ssows_get_work(struct ssows *ws, struct rte_event *ev, const uint16_t flag)\n \tev->event = sched_type_queue | (get_work0 & 0xffffffff);\n \n \tif (get_work1) {\n-\t\tif (ev->event_type == RTE_EVENT_TYPE_ETHDEV)\n-\t\t\tget_work1 = (uintptr_t)ssovf_octeontx_wqe_to_pkt(\n-\t\t\t\tget_work1, (ev->event >> 20) & 0x7F, flag,\n-\t\t\t\tws->lookup_mem);\n-\t\telse if (ev->event_type == RTE_EVENT_TYPE_CRYPTODEV)\n+\t\tif (ev->event_type == RTE_EVENT_TYPE_ETHDEV) {\n+\t\t\tev->mbuf = ssovf_octeontx_wqe_to_pkt(\n+\t\t\t     get_work1, (ev->event >> 20) & 0x7F, flag,\n+\t\t\t     ws->lookup_mem);\n+\t\t} else if (ev->event_type == RTE_EVENT_TYPE_CRYPTODEV) {\n \t\t\tget_work1 = otx_crypto_adapter_dequeue(get_work1);\n-\t\tev->u64 = get_work1;\n-\t} else if (unlikely((get_work0 & 0xFFFFFFFF) == 0xFFFFFFFF)) {\n-\t\tssovf_octeontx_wqe_free(get_work1);\n-\t\treturn 0;\n+\t\t\tev->u64 = get_work1;\n+\t\t} else {\n+\t\t\tif (unlikely((get_work0 & 0xFFFFFFFF) == 0xFFFFFFFF)) {\n+\t\t\t\tssovf_octeontx_wqe_free(get_work1);\n+\t\t\t\treturn 0;\n+\t\t\t}\n+\t\t\tev->u64 = get_work1;\n+\t\t}\n \t}\n \n \treturn !!get_work1;\n",
    "prefixes": [
        "02/12"
    ]
}