get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 53873,
    "url": "http://patches.dpdk.org/api/patches/53873/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190529210227.17092-3-lance.richardson@broadcom.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<20190529210227.17092-3-lance.richardson@broadcom.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190529210227.17092-3-lance.richardson@broadcom.com",
    "date": "2019-05-29T21:02:21",
    "name": "[v5,2/8] net/bnxt: move Tx bd checking to header file",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "28cd768943495bc5605e946ac427f8f213faf522",
    "submitter": {
        "id": 1323,
        "url": "http://patches.dpdk.org/api/people/1323/?format=api",
        "name": "Lance Richardson",
        "email": "lance.richardson@broadcom.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190529210227.17092-3-lance.richardson@broadcom.com/mbox/",
    "series": [
        {
            "id": 4818,
            "url": "http://patches.dpdk.org/api/series/4818/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4818",
            "date": "2019-05-29T21:02:20",
            "name": "bnxt patchset",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/4818/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/53873/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/53873/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 386011B950;\n\tWed, 29 May 2019 23:02:38 +0200 (CEST)",
            "from mail-pg1-f196.google.com (mail-pg1-f196.google.com\n\t[209.85.215.196]) by dpdk.org (Postfix) with ESMTP id A663537A2\n\tfor <dev@dpdk.org>; Wed, 29 May 2019 23:02:35 +0200 (CEST)",
            "by mail-pg1-f196.google.com with SMTP id 196so603352pgc.6\n\tfor <dev@dpdk.org>; Wed, 29 May 2019 14:02:35 -0700 (PDT)",
            "from localhost.localdomain ([192.19.231.250])\n\tby smtp.gmail.com with ESMTPSA id\n\tr4sm403889pjd.25.2019.05.29.14.02.33\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 29 May 2019 14:02:34 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com;\n\ts=google; \n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=xqntc0zx8qv6Px9K8cRLEJlZz5wdigPelpcCLb5s6XE=;\n\tb=ar0RwgJzTJU9O1qToSzJCgZAZXlvz43uBX7uTcZs9FcZ74mVEpAwAoruOl0j7Kyvym\n\tAU2oP3CmzLNcULSQvYBSh3opDsPQgIUosrsQXC/Flki3SKHPz6ZLIxgZ4XN4G0Qv0ynw\n\twKQ77uEtToud3xjjlCmgpKXjoFeP25vD+zua4=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=xqntc0zx8qv6Px9K8cRLEJlZz5wdigPelpcCLb5s6XE=;\n\tb=Y8OnemHmjxyu0T+hjVRvQRW1HLouidTkg1fM7uKuQkC3hF3qqnPvTPIfH5kapV5L7a\n\t9bF3xpKMNHi4OolZS8n7o+avK9pf4fGt6GALwAV8rl8ijbnClcXAaKha46UyBqIhRfQV\n\te2ybbFsLPWg3ZeUxx4rDzlBCPtm6+GdVqR3iTJn0e+Qkr/vicbeoCJw0CsoOXVH/kFdk\n\tuGVnkHCeXCNrBsMamRZaFdbh63YVE4vbAN8hdJ4qs4V7sBtrFOR5VQwxcpdAXEmnK+DT\n\tUojMGAmKKFgA4f2qVSxjAS9oe+1mMBXHEehSYqN9LyxaQSszAgOCnBdp7tCDUJh8e0bo\n\thTAg==",
        "X-Gm-Message-State": "APjAAAUvM6n7Zl1mBI6sQiwgMZ1lRl2940lIMKqQhm3OPNikfWZhkEIZ\n\tzLVGbcrDuIJPD1efvOp+9A0O1JC5AroHaEjnpxzvSGSgAb7FyI3sIGznGyDl2vyRDCYYXA3M1DS\n\t2/3iOliDXUDnLoPtccCJOZLxtBQQzGsNP/n2oGGtD/LBIY7SQjjrkbsXKdk9jF7Yg",
        "X-Google-Smtp-Source": "APXvYqwxXiHwyRTW+i0W6/2AUyWHCDq3X3PQmHuobwKwy16jfuF8MNlZnJYxA2s+K4I2jB/u8PveYw==",
        "X-Received": "by 2002:a62:5587:: with SMTP id\n\tj129mr131173106pfb.45.1559163754762; \n\tWed, 29 May 2019 14:02:34 -0700 (PDT)",
        "From": "Lance Richardson <lance.richardson@broadcom.com>",
        "To": "dev@dpdk.org",
        "Cc": "ajit.khaparde@broadcom.com, ferruh.yigit@intel.com,\n\tmaxime.coquelin@redhat.com, ktraynor@redhat.com,\n\tLance Richardson <lance.richardson@broadcom.com>",
        "Date": "Wed, 29 May 2019 17:02:21 -0400",
        "Message-Id": "<20190529210227.17092-3-lance.richardson@broadcom.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190529210227.17092-1-lance.richardson@broadcom.com>",
        "References": "<20190521213953.25425-1-ajit.khaparde@broadcom.com>\n\t<20190529210227.17092-1-lance.richardson@broadcom.com>",
        "Subject": "[dpdk-dev] [PATCH v5 2/8] net/bnxt: move Tx bd checking to header\n\tfile",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "To allow sharing of tx_bds_in_hw() and bnxt_tx_avail() between\nvector-mode and non-vector transmit functions, move these functions\ninto bnxt_txr.h.\n\nSigned-off-by: Lance Richardson <lance.richardson@broadcom.com>\nReviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>\nReviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n drivers/net/bnxt/bnxt_txr.c | 15 ---------------\n drivers/net/bnxt/bnxt_txr.h | 15 +++++++++++++++\n 2 files changed, 15 insertions(+), 15 deletions(-)",
    "diff": "diff --git a/drivers/net/bnxt/bnxt_txr.c b/drivers/net/bnxt/bnxt_txr.c\nindex 9de12e0d0..16598ba63 100644\n--- a/drivers/net/bnxt/bnxt_txr.c\n+++ b/drivers/net/bnxt/bnxt_txr.c\n@@ -103,21 +103,6 @@ int bnxt_init_tx_ring_struct(struct bnxt_tx_queue *txq, unsigned int socket_id)\n \treturn 0;\n }\n \n-static inline uint32_t bnxt_tx_bds_in_hw(struct bnxt_tx_queue *txq)\n-{\n-\treturn ((txq->tx_ring->tx_prod - txq->tx_ring->tx_cons) &\n-\t\ttxq->tx_ring->tx_ring_struct->ring_mask);\n-}\n-\n-static inline uint32_t bnxt_tx_avail(struct bnxt_tx_queue *txq)\n-{\n-\t/* Tell compiler to fetch tx indices from memory. */\n-\trte_compiler_barrier();\n-\n-\treturn ((txq->tx_ring->tx_ring_struct->ring_size -\n-\t\t bnxt_tx_bds_in_hw(txq)) - 1);\n-}\n-\n static uint16_t bnxt_start_xmit(struct rte_mbuf *tx_pkt,\n \t\t\t\tstruct bnxt_tx_queue *txq,\n \t\t\t\tuint16_t *coal_pkts,\ndiff --git a/drivers/net/bnxt/bnxt_txr.h b/drivers/net/bnxt/bnxt_txr.h\nindex f802d5080..13ca04676 100644\n--- a/drivers/net/bnxt/bnxt_txr.h\n+++ b/drivers/net/bnxt/bnxt_txr.h\n@@ -37,6 +37,21 @@ struct bnxt_sw_tx_bd {\n \tunsigned short\t\tnr_bds;\n };\n \n+static inline uint32_t bnxt_tx_bds_in_hw(struct bnxt_tx_queue *txq)\n+{\n+\treturn ((txq->tx_ring->tx_prod - txq->tx_ring->tx_cons) &\n+\t\ttxq->tx_ring->tx_ring_struct->ring_mask);\n+}\n+\n+static inline uint32_t bnxt_tx_avail(struct bnxt_tx_queue *txq)\n+{\n+\t/* Tell compiler to fetch tx indices from memory. */\n+\trte_compiler_barrier();\n+\n+\treturn ((txq->tx_ring->tx_ring_struct->ring_size -\n+\t\t bnxt_tx_bds_in_hw(txq)) - 1);\n+}\n+\n void bnxt_free_tx_rings(struct bnxt *bp);\n int bnxt_init_one_tx_ring(struct bnxt_tx_queue *txq);\n int bnxt_init_tx_ring_struct(struct bnxt_tx_queue *txq, unsigned int socket_id);\n",
    "prefixes": [
        "v5",
        "2/8"
    ]
}