get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 94737,
    "url": "https://patches.dpdk.org/api/patches/94737/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210623044702.4240-42-ndabilpuram@marvell.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20210623044702.4240-42-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210623044702.4240-42-ndabilpuram@marvell.com",
    "date": "2021-06-23T04:46:41",
    "name": "[v4,41/62] net/cnxk: add Rx queue interrupt enable/disable ops",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "c43b5dbe69ff50441d54e53e16b013cef992b16c",
    "submitter": {
        "id": 1202,
        "url": "https://patches.dpdk.org/api/people/1202/?format=api",
        "name": "Nithin Dabilpuram",
        "email": "ndabilpuram@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "https://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210623044702.4240-42-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 17449,
            "url": "https://patches.dpdk.org/api/series/17449/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17449",
            "date": "2021-06-23T04:46:00",
            "name": "Marvell CNXK Ethdev Driver",
            "version": 4,
            "mbox": "https://patches.dpdk.org/series/17449/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/94737/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/94737/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 92373A0C41;\n\tWed, 23 Jun 2021 06:51:59 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9E1AD411B0;\n\tWed, 23 Jun 2021 06:49:35 +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 5BE67411AE\n for <dev@dpdk.org>; Wed, 23 Jun 2021 06:49:34 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id\n 15N4k7Xf025541 for <dev@dpdk.org>; Tue, 22 Jun 2021 21:49:33 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com with ESMTP id 39bptj1gsf-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Tue, 22 Jun 2021 21:49:33 -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, 22 Jun 2021 21:49:31 -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, 22 Jun 2021 21:49:31 -0700",
            "from hyd1588t430.marvell.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 1F3715B6937;\n Tue, 22 Jun 2021 21:49:28 -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=b7JWdFYTsnzFULipJTETjsWIBzEY7DmUuRSDFqjVo3k=;\n b=F2plxGZrHxP2vNJ8DXUJ2Fv9ueGnMCY14HOkjJsphqOaRh0NDI6/o7sPr1VbZ7ZQC0qJ\n 1bIHNLD94mQLChC3/9eNWqqGXYAm1VaQLINNddgleaYih5vgpf+MxyDimZs6RwhQjcCm\n 4TRVhIDu5JsC4xoKjscjrPYYxDmLRaYprlpEOcBOgzwn3162e2TJI6Gmoc2ynHDRIW44\n /iLfOBcZagiSKg7wypVzoiJELnGjpx7SYS8xVITk7WulU92oraLJd72NcUWT6ZRthsPq\n y+KHdnKJpZQknJAdYszk5c9Zl4h46Q4CdjrZjaCdBICOim75nLfygDrqElWK+tP5eWUA zA==",
        "From": "Nithin Dabilpuram <ndabilpuram@marvell.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<jerinj@marvell.com>, <skori@marvell.com>, <skoteshwar@marvell.com>,\n <pbhagavatula@marvell.com>, <kirankumark@marvell.com>,\n <psatheesh@marvell.com>, <asekhar@marvell.com>, <hkalra@marvell.com>",
        "Date": "Wed, 23 Jun 2021 10:16:41 +0530",
        "Message-ID": "<20210623044702.4240-42-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.8.4",
        "In-Reply-To": "<20210623044702.4240-1-ndabilpuram@marvell.com>",
        "References": "<20210306153404.10781-1-ndabilpuram@marvell.com>\n <20210623044702.4240-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "c71BHmp5pmH0QNfZXXcvBoOelulF9Dhu",
        "X-Proofpoint-GUID": "c71BHmp5pmH0QNfZXXcvBoOelulF9Dhu",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790\n definitions=2021-06-23_01:2021-06-22,\n 2021-06-23 signatures=0",
        "Subject": "[dpdk-dev] [PATCH v4 41/62] net/cnxk: add Rx queue interrupt\n enable/disable ops",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Sunil Kumar Kori <skori@marvell.com>\n\nApplication may choose to enable/disable interrupts on Rx queues\nso that application can select its processing if no packets are\navailable on queues for a longer period.\n\nSigned-off-by: Sunil Kumar Kori <skori@marvell.com>\n---\n doc/guides/nics/cnxk.rst              |  1 +\n doc/guides/nics/features/cnxk.ini     |  1 +\n doc/guides/nics/features/cnxk_vec.ini |  1 +\n doc/guides/nics/features/cnxk_vf.ini  |  1 +\n drivers/net/cnxk/cnxk_ethdev.c        |  2 ++\n drivers/net/cnxk/cnxk_ethdev.h        |  4 ++++\n drivers/net/cnxk/cnxk_ethdev_ops.c    | 19 +++++++++++++++++++\n 7 files changed, 29 insertions(+)",
    "diff": "diff --git a/doc/guides/nics/cnxk.rst b/doc/guides/nics/cnxk.rst\nindex 88ca313..6678486 100644\n--- a/doc/guides/nics/cnxk.rst\n+++ b/doc/guides/nics/cnxk.rst\n@@ -30,6 +30,7 @@ Features of the CNXK Ethdev PMD are:\n - MTU update\n - Scatter-Gather IO support\n - Vector Poll mode driver\n+- Support Rx interrupt\n \n Prerequisites\n -------------\ndiff --git a/doc/guides/nics/features/cnxk.ini b/doc/guides/nics/features/cnxk.ini\nindex b1e8641..e5669f5 100644\n--- a/doc/guides/nics/features/cnxk.ini\n+++ b/doc/guides/nics/features/cnxk.ini\n@@ -5,6 +5,7 @@\n ;\n [Features]\n Speed capabilities   = Y\n+Rx interrupt         = Y\n Lock-free Tx queue   = Y\n SR-IOV               = Y\n Multiprocess aware   = Y\ndiff --git a/doc/guides/nics/features/cnxk_vec.ini b/doc/guides/nics/features/cnxk_vec.ini\nindex 0f99634..dff0c9b 100644\n--- a/doc/guides/nics/features/cnxk_vec.ini\n+++ b/doc/guides/nics/features/cnxk_vec.ini\n@@ -5,6 +5,7 @@\n ;\n [Features]\n Speed capabilities   = Y\n+Rx interrupt         = Y\n Lock-free Tx queue   = Y\n SR-IOV               = Y\n Multiprocess aware   = Y\ndiff --git a/doc/guides/nics/features/cnxk_vf.ini b/doc/guides/nics/features/cnxk_vf.ini\nindex cecced9..b950d2f 100644\n--- a/doc/guides/nics/features/cnxk_vf.ini\n+++ b/doc/guides/nics/features/cnxk_vf.ini\n@@ -5,6 +5,7 @@\n ;\n [Features]\n Speed capabilities   = Y\n+Rx interrupt         = Y\n Lock-free Tx queue   = Y\n Multiprocess aware   = Y\n Link status          = Y\ndiff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c\nindex 165c354..1ff3afa 100644\n--- a/drivers/net/cnxk/cnxk_ethdev.c\n+++ b/drivers/net/cnxk/cnxk_ethdev.c\n@@ -1193,6 +1193,8 @@ struct eth_dev_ops cnxk_eth_dev_ops = {\n \t.dev_set_link_down = cnxk_nix_set_link_down,\n \t.get_module_info = cnxk_nix_get_module_info,\n \t.get_module_eeprom = cnxk_nix_get_module_eeprom,\n+\t.rx_queue_intr_enable = cnxk_nix_rx_queue_intr_enable,\n+\t.rx_queue_intr_disable = cnxk_nix_rx_queue_intr_disable,\n };\n \n static int\ndiff --git a/drivers/net/cnxk/cnxk_ethdev.h b/drivers/net/cnxk/cnxk_ethdev.h\nindex 083af29..a01b72a 100644\n--- a/drivers/net/cnxk/cnxk_ethdev.h\n+++ b/drivers/net/cnxk/cnxk_ethdev.h\n@@ -257,6 +257,10 @@ int cnxk_nix_get_module_info(struct rte_eth_dev *eth_dev,\n \t\t\t     struct rte_eth_dev_module_info *modinfo);\n int cnxk_nix_get_module_eeprom(struct rte_eth_dev *eth_dev,\n \t\t\t       struct rte_dev_eeprom_info *info);\n+int cnxk_nix_rx_queue_intr_enable(struct rte_eth_dev *eth_dev,\n+\t\t\t\t  uint16_t rx_queue_id);\n+int cnxk_nix_rx_queue_intr_disable(struct rte_eth_dev *eth_dev,\n+\t\t\t\t   uint16_t rx_queue_id);\n \n int cnxk_nix_configure(struct rte_eth_dev *eth_dev);\n int cnxk_nix_tx_queue_setup(struct rte_eth_dev *eth_dev, uint16_t qid,\ndiff --git a/drivers/net/cnxk/cnxk_ethdev_ops.c b/drivers/net/cnxk/cnxk_ethdev_ops.c\nindex 55b0411..45683dd 100644\n--- a/drivers/net/cnxk/cnxk_ethdev_ops.c\n+++ b/drivers/net/cnxk/cnxk_ethdev_ops.c\n@@ -598,3 +598,22 @@ cnxk_nix_get_module_eeprom(struct rte_eth_dev *eth_dev,\n \trte_memcpy(info->data, eeprom_info.buf + info->offset, info->length);\n \treturn 0;\n }\n+\n+int\n+cnxk_nix_rx_queue_intr_enable(struct rte_eth_dev *eth_dev, uint16_t rx_queue_id)\n+{\n+\tstruct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev);\n+\n+\troc_nix_rx_queue_intr_enable(&dev->nix, rx_queue_id);\n+\treturn 0;\n+}\n+\n+int\n+cnxk_nix_rx_queue_intr_disable(struct rte_eth_dev *eth_dev,\n+\t\t\t       uint16_t rx_queue_id)\n+{\n+\tstruct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev);\n+\n+\troc_nix_rx_queue_intr_disable(&dev->nix, rx_queue_id);\n+\treturn 0;\n+}\n",
    "prefixes": [
        "v4",
        "41/62"
    ]
}