get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 120198,
    "url": "http://patchwork.dpdk.org/api/patches/120198/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20221128095442.3185112-2-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": "<20221128095442.3185112-2-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20221128095442.3185112-2-ndabilpuram@marvell.com",
    "date": "2022-11-28T09:54:33",
    "name": "[02/11] net/cnxk: register callback to get queue errors",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "c98adbbae1fb0f010e9a745f99fdac68fea7a213",
    "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/20221128095442.3185112-2-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 25906,
            "url": "http://patchwork.dpdk.org/api/series/25906/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=25906",
            "date": "2022-11-28T09:54:32",
            "name": "[01/11] common/cnxk: free pending sqe buffers",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/25906/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/120198/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/120198/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 B0780A00C3;\n\tMon, 28 Nov 2022 10:55:00 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3A87A40A7F;\n\tMon, 28 Nov 2022 10:54:58 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id B480D40A7F\n for <dev@dpdk.org>; Mon, 28 Nov 2022 10:54:56 +0100 (CET)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 2AS5iflJ025003 for <dev@dpdk.org>; Mon, 28 Nov 2022 01:54:55 -0800",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3m4q3srse2-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Mon, 28 Nov 2022 01:54:55 -0800",
            "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 Mon, 28 Nov 2022 01:54:53 -0800",
            "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; Mon, 28 Nov 2022 01:54:53 -0800",
            "from hyd1588t430.caveonetworks.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id D495E3F704D;\n Mon, 28 Nov 2022 01:54:51 -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=8JFNSfYCNeJN6Fh37uppe8PqLPoB1RhyIfWlwYYRr0I=;\n b=d/ZZXiC9fmUXZCsWxJlzpx6QlWzzXPE52oLkTRwj7lfq8PC4CbNCbkQZJsHnuWW8Gshn\n Nr2SFNUQuYomYt2pFV72KuEyttjmf6LrWmNRkZdKnoRYkTImd3vtXo4XToh+vTFoJHd1\n 2GEFIkLe3buh/dyrwX942/oMNfO51JEarCeqMWxh16D10JOpfTjXzdJwxKsqV2GMhsZ4\n lTVlCS+lv29bw2AVqboR3ku3nAkqwgUqpphUEuVo9FNmVmoKM0wLNyALK4X9EyZvEBC5\n QY5KXuypWrY1z2mgwlzoho5SSE5aPkHM7vo6otJDMLX7OSlkFUEpoLasFO7nPE6kHuXx 7A==",
        "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>",
        "Subject": "[PATCH 02/11] net/cnxk: register callback to get queue errors",
        "Date": "Mon, 28 Nov 2022 15:24:33 +0530",
        "Message-ID": "<20221128095442.3185112-2-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20221128095442.3185112-1-ndabilpuram@marvell.com>",
        "References": "<20221128095442.3185112-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "7ZvKEnmni6MCuFJCGD2h9XnCs7Vi1vYG",
        "X-Proofpoint-GUID": "7ZvKEnmni6MCuFJCGD2h9XnCs7Vi1vYG",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1\n definitions=2022-11-28_07,2022-11-25_01,2022-06-22_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: Satha Rao <skoteshwar@marvell.com>\n\nRegister a callback mechanism to get SQ error interrupts, add\ncall ethdev event RTE_ETH_EVENT_INTR_RESET.\n\nSigned-off-by: Satha Rao <skoteshwar@marvell.com>\n---\n drivers/net/cnxk/cnxk_ethdev.c | 13 +++++++++++++\n drivers/net/cnxk/cnxk_ethdev.h |  1 +\n 2 files changed, 14 insertions(+)",
    "diff": "diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c\nindex bf1585fe67..104aad7b51 100644\n--- a/drivers/net/cnxk/cnxk_ethdev.c\n+++ b/drivers/net/cnxk/cnxk_ethdev.c\n@@ -1750,6 +1750,16 @@ struct eth_dev_ops cnxk_eth_dev_ops = {\n \t.cman_config_get = cnxk_nix_cman_config_get,\n };\n \n+void\n+cnxk_eth_dev_q_err_cb(struct roc_nix *nix, void *data)\n+{\n+\tstruct cnxk_eth_dev *dev = (struct cnxk_eth_dev *)nix;\n+\tstruct rte_eth_dev *eth_dev = dev->eth_dev;\n+\n+\t/* Set the flag and execute application callbacks */\n+\trte_eth_dev_callback_process(eth_dev, RTE_ETH_EVENT_INTR_RESET, data);\n+}\n+\n static int\n cnxk_eth_dev_init(struct rte_eth_dev *eth_dev)\n {\n@@ -1804,6 +1814,9 @@ cnxk_eth_dev_init(struct rte_eth_dev *eth_dev)\n \troc_nix_mac_link_info_get_cb_register(nix,\n \t\t\t\t\t      cnxk_eth_dev_link_status_get_cb);\n \n+\t/* Register up msg callbacks */\n+\troc_nix_q_err_cb_register(nix, cnxk_eth_dev_q_err_cb);\n+\n \t/* Register callback for inline meta pool create */\n \troc_nix_inl_meta_pool_cb_register(cnxk_nix_inl_meta_pool_cb);\n \ndiff --git a/drivers/net/cnxk/cnxk_ethdev.h b/drivers/net/cnxk/cnxk_ethdev.h\nindex 651ef45ea8..a86e9dba80 100644\n--- a/drivers/net/cnxk/cnxk_ethdev.h\n+++ b/drivers/net/cnxk/cnxk_ethdev.h\n@@ -599,6 +599,7 @@ void cnxk_eth_dev_link_status_cb(struct roc_nix *nix,\n \t\t\t\t struct roc_nix_link_info *link);\n void cnxk_eth_dev_link_status_get_cb(struct roc_nix *nix,\n \t\t\t\t     struct roc_nix_link_info *link);\n+void cnxk_eth_dev_q_err_cb(struct roc_nix *nix, void *data);\n int cnxk_nix_link_update(struct rte_eth_dev *eth_dev, int wait_to_complete);\n int cnxk_nix_queue_stats_mapping(struct rte_eth_dev *dev, uint16_t queue_id,\n \t\t\t\t uint8_t stat_idx, uint8_t is_rx);\n",
    "prefixes": [
        "02/11"
    ]
}