get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 94486,
    "url": "https://patches.dpdk.org/api/patches/94486/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210618134032.1922012-6-andrew.rybchenko@oktetlabs.ru/",
    "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": "<20210618134032.1922012-6-andrew.rybchenko@oktetlabs.ru>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210618134032.1922012-6-andrew.rybchenko@oktetlabs.ru",
    "date": "2021-06-18T13:40:17",
    "name": "[v3,05/20] net/sfc: explicitly control IRQ used for Rx queues",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "a9b0c2152eab933bbcd14b2e29ac7a80dde54a14",
    "submitter": {
        "id": 2013,
        "url": "https://patches.dpdk.org/api/people/2013/?format=api",
        "name": "Andrew Rybchenko",
        "email": "Andrew.Rybchenko@oktetlabs.ru"
    },
    "delegate": {
        "id": 24651,
        "url": "https://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210618134032.1922012-6-andrew.rybchenko@oktetlabs.ru/mbox/",
    "series": [
        {
            "id": 17397,
            "url": "https://patches.dpdk.org/api/series/17397/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17397",
            "date": "2021-06-18T13:40:12",
            "name": "net/sfc: support flow API COUNT action",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/17397/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/94486/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/94486/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 3BE18A0C46;\n\tFri, 18 Jun 2021 15:41:25 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5382A41124;\n\tFri, 18 Jun 2021 15:40:57 +0200 (CEST)",
            "from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113])\n by mails.dpdk.org (Postfix) with ESMTP id 1DE48410E9\n for <dev@dpdk.org>; Fri, 18 Jun 2021 15:40:56 +0200 (CEST)",
            "by shelob.oktetlabs.ru (Postfix, from userid 122)\n id D00DC7F691; Fri, 18 Jun 2021 16:40:55 +0300 (MSK)",
            "from aros.oktetlabs.ru (aros.oktetlabs.ru [192.168.38.17])\n by shelob.oktetlabs.ru (Postfix) with ESMTP id 93C5F7F693;\n Fri, 18 Jun 2021 16:40:34 +0300 (MSK)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on shelob.oktetlabs.ru",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=0.8 required=5.0 tests=ALL_TRUSTED,\n DKIM_ADSP_DISCARD,\n URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2",
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 93C5F7F693",
        "Authentication-Results": "shelob.oktetlabs.ru/93C5F7F693; dkim=none;\n dkim-atps=neutral",
        "From": "Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>",
        "To": "dev@dpdk.org",
        "Cc": "David Marchand <david.marchand@redhat.com>,\n Andy Moreton <amoreton@xilinx.com>",
        "Date": "Fri, 18 Jun 2021 16:40:17 +0300",
        "Message-Id": "<20210618134032.1922012-6-andrew.rybchenko@oktetlabs.ru>",
        "X-Mailer": "git-send-email 2.30.2",
        "In-Reply-To": "<20210618134032.1922012-1-andrew.rybchenko@oktetlabs.ru>",
        "References": "<20210527152510.1551026-1-andrew.rybchenko@oktetlabs.ru>\n <20210618134032.1922012-1-andrew.rybchenko@oktetlabs.ru>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v3 05/20] net/sfc: explicitly control IRQ used\n for Rx queues",
        "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": "Interrupts support has assumptions on interrupt numbers used\nfor LSC and Rx queues. The first interrupt is used for LSC,\nsubsequent interrupts are used for Rx queues.\n\nSigned-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>\nReviewed-by: Andy Moreton <amoreton@xilinx.com>\n---\n drivers/net/sfc/sfc_ev.c | 32 ++++++++++++++++++++++++--------\n 1 file changed, 24 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/drivers/net/sfc/sfc_ev.c b/drivers/net/sfc/sfc_ev.c\nindex 9a8149f052..71f706e403 100644\n--- a/drivers/net/sfc/sfc_ev.c\n+++ b/drivers/net/sfc/sfc_ev.c\n@@ -648,6 +648,7 @@ sfc_ev_qstart(struct sfc_evq *evq, unsigned int hw_index)\n \tstruct sfc_adapter *sa = evq->sa;\n \tefsys_mem_t *esmp;\n \tuint32_t evq_flags = sa->evq_flags;\n+\tuint32_t irq = 0;\n \tunsigned int total_delay_us;\n \tunsigned int delay_us;\n \tint rc;\n@@ -662,20 +663,35 @@ sfc_ev_qstart(struct sfc_evq *evq, unsigned int hw_index)\n \t(void)memset((void *)esmp->esm_base, 0xff,\n \t\t     efx_evq_size(sa->nic, evq->entries, evq_flags));\n \n-\tif ((sa->intr.lsc_intr && hw_index == sa->mgmt_evq_index) ||\n-\t    (sa->intr.rxq_intr && evq->dp_rxq != NULL &&\n-\t     sfc_ethdev_rx_qid_by_rxq_sw_index(sfc_sa2shared(sa),\n-\t\tevq->dp_rxq->dpq.queue_id) != SFC_ETHDEV_QID_INVALID))\n+\tif (sa->intr.lsc_intr && hw_index == sa->mgmt_evq_index) {\n \t\tevq_flags |= EFX_EVQ_FLAGS_NOTIFY_INTERRUPT;\n-\telse\n+\t\tirq = 0;\n+\t} else if (sa->intr.rxq_intr && evq->dp_rxq != NULL) {\n+\t\tsfc_ethdev_qid_t ethdev_qid;\n+\n+\t\tethdev_qid =\n+\t\t\tsfc_ethdev_rx_qid_by_rxq_sw_index(sfc_sa2shared(sa),\n+\t\t\t\tevq->dp_rxq->dpq.queue_id);\n+\t\tif (ethdev_qid != SFC_ETHDEV_QID_INVALID) {\n+\t\t\tevq_flags |= EFX_EVQ_FLAGS_NOTIFY_INTERRUPT;\n+\t\t\t/*\n+\t\t\t * The first interrupt is used for management EvQ\n+\t\t\t * (LSC etc). RxQ interrupts follow it.\n+\t\t\t */\n+\t\t\tirq = 1 + ethdev_qid;\n+\t\t} else {\n+\t\t\tevq_flags |= EFX_EVQ_FLAGS_NOTIFY_DISABLED;\n+\t\t}\n+\t} else {\n \t\tevq_flags |= EFX_EVQ_FLAGS_NOTIFY_DISABLED;\n+\t}\n \n \tevq->init_state = SFC_EVQ_STARTING;\n \n \t/* Create the common code event queue */\n-\trc = efx_ev_qcreate(sa->nic, hw_index, esmp, evq->entries,\n-\t\t\t    0 /* unused on EF10 */, 0, evq_flags,\n-\t\t\t    &evq->common);\n+\trc = efx_ev_qcreate_irq(sa->nic, hw_index, esmp, evq->entries,\n+\t\t\t\t0 /* unused on EF10 */, 0, evq_flags,\n+\t\t\t\tirq, &evq->common);\n \tif (rc != 0)\n \t\tgoto fail_ev_qcreate;\n \n",
    "prefixes": [
        "v3",
        "05/20"
    ]
}