get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 67983,
    "url": "https://patches.dpdk.org/api/patches/67983/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200408082921.31000-18-mk@semihalf.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": "<20200408082921.31000-18-mk@semihalf.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200408082921.31000-18-mk@semihalf.com",
    "date": "2020-04-08T08:29:08",
    "name": "[v3,17/30] net/ena: set IO ring size to the valid value",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "57ac8c2d446c123d429ce5730d14bd29226842f1",
    "submitter": {
        "id": 786,
        "url": "https://patches.dpdk.org/api/people/786/?format=api",
        "name": "Michal Krawczyk",
        "email": "mk@semihalf.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200408082921.31000-18-mk@semihalf.com/mbox/",
    "series": [
        {
            "id": 9246,
            "url": "https://patches.dpdk.org/api/series/9246/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=9246",
            "date": "2020-04-08T08:28:51",
            "name": "Update ENA driver to v2.1.0",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/9246/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/67983/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/67983/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A2AFFA0597;\n\tWed,  8 Apr 2020 10:32:24 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id D262E1C1A7;\n\tWed,  8 Apr 2020 10:29:52 +0200 (CEST)",
            "from mail-lf1-f66.google.com (mail-lf1-f66.google.com\n [209.85.167.66]) by dpdk.org (Postfix) with ESMTP id 1DAF81C120\n for <dev@dpdk.org>; Wed,  8 Apr 2020 10:29:47 +0200 (CEST)",
            "by mail-lf1-f66.google.com with SMTP id l11so4485023lfc.5\n for <dev@dpdk.org>; Wed, 08 Apr 2020 01:29:47 -0700 (PDT)",
            "from mkPC.semihalf.local (193-106-246-138.noc.fibertech.net.pl.\n [193.106.246.138])\n by smtp.gmail.com with ESMTPSA id e8sm765685lja.3.2020.04.08.01.29.45\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 08 Apr 2020 01:29:45 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=semihalf-com.20150623.gappssmtp.com; s=20150623;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=4/Y0SPHlpCA+KoWL4/VqqD9gixLYsmGGWaciVtTqh8Q=;\n b=Yuu6QlboM5DixhZZv9rfl1IQOp9ZfjiPnji2Mbuj1QbWCDgYm0yjrlh9VY8NUUyu/p\n KV3jKEXdz3fQrrelHcQC5rrLmzQU4FieN/pn4k/e0DerkBBI/VnASNImvnmF9ZGpH2Uv\n xcb/lGtc/4HfYWtpv1DxDWNLSt5d2WNnBbri90V3x54u+LStfqAW8Xqqg8LOSjx9Xr+R\n Y0bIPThVY+TPpwVM8JXUQ7EfSDIj32WKqVODWrtuYSJJbxrlkya5p6NxEJsUrwVdpGZu\n K57Z2okJVQ0t5ua/taMWo11TkIesx5swiwiANebYisvUNHsbHEAAcrGjOWyfyByyKsug\n 7uOw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=4/Y0SPHlpCA+KoWL4/VqqD9gixLYsmGGWaciVtTqh8Q=;\n b=YpbXjd5cIGolyyUxFQzog6VsYpPtHDXskUflK2SVtp0QnRjSrzwSfA7Jmuuvy4ozZc\n AmP/Rcs91QdLUEY05XfkmHLt0uXrxnhbqFe+iywrMo2UrXDpq4LdyXiSwsAvrAWaNp1I\n QmdtQ4v9EyYQx8pF0+rmTebwzgF8SRuEGfL/OZrc7aMCGrSjGpI2UJpTcPsmN0Trquts\n DiXicKrQI5howz83YLdDGaGXpU0BkjaKmosfMV8yJru7rcl2UHbMwj7KtVo7oUGhG+p2\n 4aiext/elBnbonOgIRMx8vwrmqds6iiZqa++V/57iRDofOaL5LB06n/wPDbj4nK8oDAl\n SEQA==",
        "X-Gm-Message-State": "AGi0PuZhm8L2vml5SoMChvuWDNYflTwk5Zb2tWguvjWfGHgs16EciXDS\n vdLtJNUxF9Sqok3Cgs6vP9P5nfSmQHg=",
        "X-Google-Smtp-Source": "\n APiQypLSuNncz0/XRj573WvNKrwT/+9r8KwBg87cCuhFjB66Ov46/a/nlniILom33mZIcBQ8nBp2/Q==",
        "X-Received": "by 2002:a19:c7d8:: with SMTP id\n x207mr3792293lff.190.1586334586464;\n Wed, 08 Apr 2020 01:29:46 -0700 (PDT)",
        "From": "Michal Krawczyk <mk@semihalf.com>",
        "To": "dev@dpdk.org",
        "Cc": "mw@semihalf.com, mba@semihalf.com, gtzalik@amazon.com, evgenys@amazon.com,\n igorch@amazon.com, ferruh.yigit@intel.com, arybchenko@solarflare.com,\n Michal Krawczyk <mk@semihalf.com>, stable@dpdk.org",
        "Date": "Wed,  8 Apr 2020 10:29:08 +0200",
        "Message-Id": "<20200408082921.31000-18-mk@semihalf.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20200408082921.31000-1-mk@semihalf.com>",
        "References": "<20200408082921.31000-1-mk@semihalf.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v3 17/30] net/ena: set IO ring size to the valid\n\tvalue",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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": "IO rings were configured with the maximum allowed size for the Tx/Rx\nrings. However, the application could decide to create smaller rings.\n\nThis patch is using value stored in the ring instead of the value from\nthe adapter which is indicating the maximum allowed value.\n\nFixes: df238f84c0a2 (\"net/ena: recreate HW IO rings on start and stop\")\nCc: stable@dpdk.org\n\nSigned-off-by: Michal Krawczyk <mk@semihalf.com>\nReviewed-by: Igor Chauskin <igorch@amazon.com>\nReviewed-by: Guy Tzalik <gtzalik@amazon.com>\n---\n drivers/net/ena/ena_ethdev.c | 3 +--\n 1 file changed, 1 insertion(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c\nindex f1202d99f2..62e26a2a16 100644\n--- a/drivers/net/ena/ena_ethdev.c\n+++ b/drivers/net/ena/ena_ethdev.c\n@@ -1099,16 +1099,15 @@ static int ena_create_io_queue(struct ena_ring *ring)\n \t\tena_qid = ENA_IO_TXQ_IDX(ring->id);\n \t\tctx.direction = ENA_COM_IO_QUEUE_DIRECTION_TX;\n \t\tctx.mem_queue_type = ena_dev->tx_mem_queue_type;\n-\t\tctx.queue_size = adapter->tx_ring_size;\n \t\tfor (i = 0; i < ring->ring_size; i++)\n \t\t\tring->empty_tx_reqs[i] = i;\n \t} else {\n \t\tena_qid = ENA_IO_RXQ_IDX(ring->id);\n \t\tctx.direction = ENA_COM_IO_QUEUE_DIRECTION_RX;\n-\t\tctx.queue_size = adapter->rx_ring_size;\n \t\tfor (i = 0; i < ring->ring_size; i++)\n \t\t\tring->empty_rx_reqs[i] = i;\n \t}\n+\tctx.queue_size = ring->ring_size;\n \tctx.qid = ena_qid;\n \tctx.msix_vector = -1; /* interrupts not used */\n \tctx.numa_node = ring->numa_socket_id;\n",
    "prefixes": [
        "v3",
        "17/30"
    ]
}