get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 67600,
    "url": "https://patches.dpdk.org/api/patches/67600/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200401142127.13715-16-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": "<20200401142127.13715-16-mk@semihalf.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200401142127.13715-16-mk@semihalf.com",
    "date": "2020-04-01T14:21:13",
    "name": "[v2,15/29] net/ena: set IO ring size to the valid value",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "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/20200401142127.13715-16-mk@semihalf.com/mbox/",
    "series": [
        {
            "id": 9153,
            "url": "https://patches.dpdk.org/api/series/9153/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=9153",
            "date": "2020-04-01T14:20:58",
            "name": "Update ENA driver to v2.1.0",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/9153/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/67600/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/67600/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 5453CA057B;\n\tWed,  1 Apr 2020 16:24:27 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 1F85D1C0C2;\n\tWed,  1 Apr 2020 16:22:01 +0200 (CEST)",
            "from mail-lj1-f193.google.com (mail-lj1-f193.google.com\n [209.85.208.193]) by dpdk.org (Postfix) with ESMTP id 688A51C08C\n for <dev@dpdk.org>; Wed,  1 Apr 2020 16:21:58 +0200 (CEST)",
            "by mail-lj1-f193.google.com with SMTP id q19so25895199ljp.9\n for <dev@dpdk.org>; Wed, 01 Apr 2020 07:21:58 -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 r21sm1435961ljp.29.2020.04.01.07.21.56\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 01 Apr 2020 07:21:57 -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=NF11IBWIaOn2+GIileSyCNBvfLqcWt+j6mIcrSCXPh8=;\n b=x7aRfjxwSUTC7KWPmQoeDzez34weBkmZkfO3fiUxjyQvsNx5T7K9PhBiAGdMsAXUR5\n N/Kgzc9egKWCdFr65FYrojcWw2VrYyvud1Wjw5YkW7m91xD1uHmzjkF09UlOcZMfhHKe\n k08vQOxQKk4wkpTPKqpxNYCF0RYvijXTzPzgQSiDCIsj117i4HsFN3XMZqWq4BnDJ3tE\n qsxjAcffwLJewHMRTm8IvCb+JdUW2mV9l6IGXuzFjF6Uz0v8owLIGPgnJrPbclgv8DS7\n JNZXNv4cAEae3YMA3aae08SRgYEoPa9zS65D4KFKUXaKQNYWf8E1ojp6h/E8oqLo6h/2\n +7SA==",
        "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=NF11IBWIaOn2+GIileSyCNBvfLqcWt+j6mIcrSCXPh8=;\n b=UonotkyAQ5C0IEoL5Eeu08jFN7wACa1miH9KmImAop+4Lg+/1Z7X/J9arZKo9d2eYo\n Agw9CbN9Ls7h3ACIBwPwHQwTHt6Lgn9tPZnl4JdN6Nh6//lO9cnPN8K5MqY6z+OS4yhD\n 1bxK00vhccdaXNp+hJM4msZVS3K0xbE6xzjKzbpMuSO24iCTkulujJQ8MbMSb5yz3wuv\n O2WNFuvkJCdiKXj8wMKvOmAuwxzuWI6rJIK7C/33mNbFbgv03lWW7ImiI9xNMXVKABmV\n NM8G9LBy8lhQ9K6dZ3kikaiLp580tjH+jxUQgagaY7ZG6ELnLPqWk/Znsy9f+Vgmr5Jt\n klng==",
        "X-Gm-Message-State": "AGi0Puahd0X/01RlgJYYRGNfkuZfJAHfukU3HrDCcg09diIxhanh0yuq\n ZQxo8ZNKkoV4jU474oqXgP4oqk+D4Wo=",
        "X-Google-Smtp-Source": "\n APiQypJQ6jCzQr7sD9cdQavCLmWQhRQulyg/b2JJh7AwxckfU7UFz9tuRlycsILEX5vyKeqj9sx4LA==",
        "X-Received": "by 2002:a2e:b80a:: with SMTP id u10mr1151233ljo.109.1585750917735;\n Wed, 01 Apr 2020 07:21:57 -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, Michal Krawczyk <mk@semihalf.com>, stable@dpdk.org",
        "Date": "Wed,  1 Apr 2020 16:21:13 +0200",
        "Message-Id": "<20200401142127.13715-16-mk@semihalf.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20200401142127.13715-1-mk@semihalf.com>",
        "References": "<20200401142127.13715-1-mk@semihalf.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 15/29] 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 21c25b21b1..13a016227c 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": [
        "v2",
        "15/29"
    ]
}