get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 106944,
    "url": "http://patchwork.dpdk.org/api/patches/106944/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220207072932.22409-13-ndabilpuram@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20220207072932.22409-13-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220207072932.22409-13-ndabilpuram@marvell.com",
    "date": "2022-02-07T07:29:25",
    "name": "[13/20] net/cnxk: register callback early to handle initial packets",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "b00a0a024debbf204b90908ae958b99733b03683",
    "submitter": {
        "id": 1202,
        "url": "http://patchwork.dpdk.org/api/people/1202/?format=api",
        "name": "Nithin Dabilpuram",
        "email": "ndabilpuram@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patchwork.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220207072932.22409-13-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 21483,
            "url": "http://patchwork.dpdk.org/api/series/21483/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=21483",
            "date": "2022-02-07T07:29:13",
            "name": "[01/20] common/cnxk: increase resource count for bitmap alloc",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/21483/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/106944/comments/",
    "check": "pending",
    "checks": "http://patchwork.dpdk.org/api/patches/106944/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 8D14DA034F;\n\tMon,  7 Feb 2022 08:31:35 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 259C54117E;\n\tMon,  7 Feb 2022 08:30:28 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id F0BB84117A;\n Mon,  7 Feb 2022 08:30:26 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id\n 2170RaUO011053;\n Sun, 6 Feb 2022 23:30:26 -0800",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3e1smr4p4x-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Sun, 06 Feb 2022 23:30:26 -0800",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Sun, 6 Feb 2022 23:30:23 -0800",
            "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; Sun, 6 Feb 2022 23:30:23 -0800",
            "from hyd1588t430.marvell.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id DF09F3F7068;\n Sun,  6 Feb 2022 23:30:20 -0800 (PST)"
        ],
        "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=4e2d2SaONEOEK5gKUjAMturvTe+NID3QKOkQ2wf322k=;\n b=XzccTHS+LdO32eNQTT4S74lnfzC8Q4FwXL6LKAzAYvuk+4oQTOL2j/JBnmcxLAZ5+CUX\n K2tMPDqHEENAlXVREf5bd/ArY0J2ltLBXBSe85CR2vpp5uXGshBXhZyPfoFC3JCihcGA\n aMGFg/uDPXJOqMJZyM5U2Jfm+9g0awPjZOZjiuDkDiqUvsmelZ+bYFF4FYueVWACxzKT\n d/xdWTRcGb96hwcKDIf/A39ahllksGopLKx3MMKdDB8THLi9obOBfc4LVOO2uoKsg7fa\n 3l1DHOm4A8ttLEWo2dq6L5ZNlNYTYSD+XQEM6ifbjiQ9sWYKTU5y00GrObX4SkzdLdXY 5w==",
        "From": "Nithin Dabilpuram <ndabilpuram@marvell.com>",
        "To": "<jerinj@marvell.com>, Nithin Dabilpuram <ndabilpuram@marvell.com>, \"Kiran\n Kumar K\" <kirankumark@marvell.com>, Sunil Kumar Kori <skori@marvell.com>,\n Satha Rao <skoteshwar@marvell.com>, Anatoly Burakov\n <anatoly.burakov@intel.com>",
        "CC": "<dev@dpdk.org>, <stable@dpdk.org>",
        "Subject": "[PATCH 13/20] net/cnxk: register callback early to handle initial\n packets",
        "Date": "Mon, 7 Feb 2022 12:59:25 +0530",
        "Message-ID": "<20220207072932.22409-13-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.8.4",
        "In-Reply-To": "<20220207072932.22409-1-ndabilpuram@marvell.com>",
        "References": "<20220207072932.22409-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "5cP4WPVNcHY5GcHcSJi30Gvj1CQB1HOT",
        "X-Proofpoint-ORIG-GUID": "5cP4WPVNcHY5GcHcSJi30Gvj1CQB1HOT",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513\n definitions=2022-02-07_02,2022-02-03_01,2021-12-02_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": "Register callback early to handle initial error packets from\ninline device.\n\nFixes: 69daa9e5022b (\"net/cnxk: support inline security setup for cn10k\")\nCc: stable@dpdk.org\n\nSigned-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>\n---\n drivers/net/cnxk/cn10k_ethdev.c     | 6 ++++++\n drivers/net/cnxk/cn10k_ethdev.h     | 3 +++\n drivers/net/cnxk/cn10k_ethdev_sec.c | 5 +----\n 3 files changed, 10 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/cnxk/cn10k_ethdev.c b/drivers/net/cnxk/cn10k_ethdev.c\nindex 169e70e..af4fa75 100644\n--- a/drivers/net/cnxk/cn10k_ethdev.c\n+++ b/drivers/net/cnxk/cn10k_ethdev.c\n@@ -316,6 +316,12 @@ cn10k_nix_configure(struct rte_eth_dev *eth_dev)\n \tif (rc)\n \t\treturn rc;\n \n+\tif (dev->tx_offloads & RTE_ETH_TX_OFFLOAD_SECURITY ||\n+\t    dev->rx_offloads & RTE_ETH_RX_OFFLOAD_SECURITY) {\n+\t\t/* Register callback to handle security error work */\n+\t\troc_nix_inl_cb_register(cn10k_eth_sec_sso_work_cb, NULL);\n+\t}\n+\n \t/* Update offload flags */\n \tdev->rx_offload_flags = nix_rx_offload_flags(eth_dev);\n \tdev->tx_offload_flags = nix_tx_offload_flags(eth_dev);\ndiff --git a/drivers/net/cnxk/cn10k_ethdev.h b/drivers/net/cnxk/cn10k_ethdev.h\nindex 0982158..13403e1 100644\n--- a/drivers/net/cnxk/cn10k_ethdev.h\n+++ b/drivers/net/cnxk/cn10k_ethdev.h\n@@ -82,6 +82,9 @@ void cn10k_eth_set_tx_function(struct rte_eth_dev *eth_dev);\n /* Security context setup */\n void cn10k_eth_sec_ops_override(void);\n \n+/* SSO Work callback */\n+void cn10k_eth_sec_sso_work_cb(uint64_t *gw, void *args);\n+\n #define LMT_OFF(lmt_addr, lmt_num, offset)                                     \\\n \t(void *)((uintptr_t)(lmt_addr) +                                       \\\n \t\t ((uint64_t)(lmt_num) << ROC_LMT_LINE_SIZE_LOG2) + (offset))\ndiff --git a/drivers/net/cnxk/cn10k_ethdev_sec.c b/drivers/net/cnxk/cn10k_ethdev_sec.c\nindex 6fbf444..ac45056 100644\n--- a/drivers/net/cnxk/cn10k_ethdev_sec.c\n+++ b/drivers/net/cnxk/cn10k_ethdev_sec.c\n@@ -138,7 +138,7 @@ static const struct rte_security_capability cn10k_eth_sec_capabilities[] = {\n \t}\n };\n \n-static void\n+void\n cn10k_eth_sec_sso_work_cb(uint64_t *gw, void *args)\n {\n \tstruct rte_eth_event_ipsec_desc desc;\n@@ -251,9 +251,6 @@ cn10k_eth_sec_session_create(void *device,\n \tif (rte_security_dynfield_register() < 0)\n \t\treturn -ENOTSUP;\n \n-\tif (rte_eal_process_type() == RTE_PROC_PRIMARY)\n-\t\troc_nix_inl_cb_register(cn10k_eth_sec_sso_work_cb, NULL);\n-\n \tipsec = &conf->ipsec;\n \tcrypto = conf->crypto_xform;\n \tinbound = !!(ipsec->direction == RTE_SECURITY_IPSEC_SA_DIR_INGRESS);\n",
    "prefixes": [
        "13/20"
    ]
}