get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 124767,
    "url": "http://patchwork.dpdk.org/api/patches/124767/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230303081013.589868-10-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": "<20230303081013.589868-10-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230303081013.589868-10-ndabilpuram@marvell.com",
    "date": "2023-03-03T08:10:08",
    "name": "[10/15] net/cnxk: aura handle for fastpath Rx queues",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "070f287fe3ea2b915096da2553f7fa11f512b3ba",
    "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/20230303081013.589868-10-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 27237,
            "url": "http://patchwork.dpdk.org/api/series/27237/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=27237",
            "date": "2023-03-03T08:09:59",
            "name": "[01/15] net/cnxk: resolve sefgault caused during transmit completion",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/27237/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/124767/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/124767/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 71AE741DC3;\n\tFri,  3 Mar 2023 09:11:55 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0929A42D40;\n\tFri,  3 Mar 2023 09:11:19 +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 768AC42BB1\n for <dev@dpdk.org>; Fri,  3 Mar 2023 09:11:17 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 3234WuWX024918 for <dev@dpdk.org>; Fri, 3 Mar 2023 00:11:16 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3p1wr9xbk1-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Fri, 03 Mar 2023 00:11:16 -0800",
            "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.42;\n Fri, 3 Mar 2023 00:11:14 -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.42 via Frontend\n Transport; Fri, 3 Mar 2023 00:11:14 -0800",
            "from hyd1588t430.caveonetworks.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 2F00C5B6934;\n Fri,  3 Mar 2023 00:11:11 -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-transfer-encoding : content-type; s=pfpt0220;\n bh=kbGebtpozeb7C4SGxPchnnemACMAZkaanBGfD3fXDwE=;\n b=EPhihH6/RXcvcfMhC6iSjDKuYgUmEF7FaZTwj7FayDoRgFysdkk9FHRMyhEr+kOF7Maw\n nMWmHpifRAGfxCwSRkimyWfEfu822nF3hVMMCBYrgo1eQDvLyC+TTzRR9/RqA4tFsTPt\n bMXHBjYn3EnuSgZrWKTi/ys/K45dUTTUsXd72PR8CPPDv2hk4QsHjJ28/UVcNYfe/fCA\n bjVKmiQL1fFHVnPFNKQCmsIDVGt21P0J9KLfyPfVLKpTJV2lNKlu+jgOXoRVhBHejc43\n ea6TYjwQ+cWuQRJmYoLbdboVWseMVfC4pttZNDor22ezEabEAr2pLQmzUUYV16UK2eRr Kw==",
        "From": "Nithin Dabilpuram <ndabilpuram@marvell.com>",
        "To": "Nithin Dabilpuram <ndabilpuram@marvell.com>, Kiran Kumar K\n <kirankumark@marvell.com>, Sunil Kumar Kori <skori@marvell.com>, Satha Rao\n <skoteshwar@marvell.com>",
        "CC": "<jerinj@marvell.com>, <dev@dpdk.org>, Rahul Bhansali\n <rbhansali@marvell.com>",
        "Subject": "[PATCH 10/15] net/cnxk: aura handle for fastpath Rx queues",
        "Date": "Fri, 3 Mar 2023 13:40:08 +0530",
        "Message-ID": "<20230303081013.589868-10-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230303081013.589868-1-ndabilpuram@marvell.com>",
        "References": "<20230303081013.589868-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "lif2tJ33s7Fwi7vMJickOnJzgYR0ujf1",
        "X-Proofpoint-GUID": "lif2tJ33s7Fwi7vMJickOnJzgYR0ujf1",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.219,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22\n definitions=2023-03-03_01,2023-03-02_02,2023-02-09_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": "From: Rahul Bhansali <rbhansali@marvell.com>\n\nMeta aura for RQs is created during queue enable process, so\naura handle for fastpath Rx queues should be updated after\nthis.\n\nSigned-off-by: Rahul Bhansali <rbhansali@marvell.com>\n---\n drivers/net/cnxk/cn10k_ethdev.c | 33 ++++++++++++++++++++++++++-------\n 1 file changed, 26 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/drivers/net/cnxk/cn10k_ethdev.c b/drivers/net/cnxk/cn10k_ethdev.c\nindex cb88bd2dc1..2dbca698af 100644\n--- a/drivers/net/cnxk/cn10k_ethdev.c\n+++ b/drivers/net/cnxk/cn10k_ethdev.c\n@@ -283,7 +283,6 @@ cn10k_nix_rx_queue_setup(struct rte_eth_dev *eth_dev, uint16_t qid,\n \t\t\t struct rte_mempool *mp)\n {\n \tstruct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev);\n-\tstruct cnxk_eth_rxq_sp *rxq_sp;\n \tstruct cn10k_eth_rxq *rxq;\n \tstruct roc_nix_rq *rq;\n \tstruct roc_nix_cq *cq;\n@@ -335,17 +334,34 @@ cn10k_nix_rx_queue_setup(struct rte_eth_dev *eth_dev, uint16_t qid,\n \t\trxq->lmt_base = dev->nix.lmt_base;\n \t\trxq->sa_base = roc_nix_inl_inb_sa_base_get(&dev->nix,\n \t\t\t\t\t\t\t   dev->inb.inl_dev);\n+\t}\n+\n+\t/* Lookup mem */\n+\trxq->lookup_mem = cnxk_nix_fastpath_lookup_mem_get();\n+\treturn 0;\n+}\n+\n+static void\n+cn10k_nix_rx_queue_meta_aura_update(struct rte_eth_dev *eth_dev)\n+{\n+\tstruct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev);\n+\tstruct cnxk_eth_rxq_sp *rxq_sp;\n+\tstruct cn10k_eth_rxq *rxq;\n+\tstruct roc_nix_rq *rq;\n+\tint i;\n+\n+\t/* Update Aura handle for fastpath rx queues */\n+\tfor (i = 0; i < eth_dev->data->nb_rx_queues; i++) {\n+\t\trq = &dev->rqs[i];\n+\t\trxq = eth_dev->data->rx_queues[i];\n \t\trxq->meta_aura = rq->meta_aura_handle;\n-\t\trxq_sp = cnxk_eth_rxq_to_sp(rxq);\n \t\t/* Assume meta packet from normal aura if meta aura is not setup\n \t\t */\n-\t\tif (!rxq->meta_aura)\n+\t\tif (!rxq->meta_aura) {\n+\t\t\trxq_sp = cnxk_eth_rxq_to_sp(rxq);\n \t\t\trxq->meta_aura = rxq_sp->qconf.mp->pool_id;\n+\t\t}\n \t}\n-\n-\t/* Lookup mem */\n-\trxq->lookup_mem = cnxk_nix_fastpath_lookup_mem_get();\n-\treturn 0;\n }\n \n static int\n@@ -557,6 +573,9 @@ cn10k_nix_dev_start(struct rte_eth_dev *eth_dev)\n \tdev->rx_offload_flags |= nix_rx_offload_flags(eth_dev);\n \tdev->tx_offload_flags |= nix_tx_offload_flags(eth_dev);\n \n+\tif (dev->rx_offload_flags & NIX_RX_OFFLOAD_SECURITY_F)\n+\t\tcn10k_nix_rx_queue_meta_aura_update(eth_dev);\n+\n \tcn10k_eth_set_tx_function(eth_dev);\n \tcn10k_eth_set_rx_function(eth_dev);\n \treturn 0;\n",
    "prefixes": [
        "10/15"
    ]
}