get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 53681,
    "url": "http://patches.dpdk.org/api/patches/53681/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190524144935.18765-2-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": "<20190524144935.18765-2-lance.richardson@broadcom.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190524144935.18765-2-lance.richardson@broadcom.com",
    "date": "2019-05-24T14:49:26",
    "name": "[v2,01/10] net/bnxt: move tx bd checking to header file",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "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/20190524144935.18765-2-lance.richardson@broadcom.com/mbox/",
    "series": [
        {
            "id": 4767,
            "url": "http://patches.dpdk.org/api/series/4767/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4767",
            "date": "2019-05-24T14:49:25",
            "name": "bnxt patchset",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/4767/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/53681/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/53681/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 A41011B947;\n\tFri, 24 May 2019 16:50:07 +0200 (CEST)",
            "from mail-pf1-f193.google.com (mail-pf1-f193.google.com\n\t[209.85.210.193]) by dpdk.org (Postfix) with ESMTP id D3C9C2C16\n\tfor <dev@dpdk.org>; Fri, 24 May 2019 16:50:04 +0200 (CEST)",
            "by mail-pf1-f193.google.com with SMTP id a23so5481760pff.4\n\tfor <dev@dpdk.org>; Fri, 24 May 2019 07:50:04 -0700 (PDT)",
            "from localhost.localdomain ([192.19.231.250])\n\tby smtp.gmail.com with ESMTPSA id\n\tx23sm2723705pfn.160.2019.05.24.07.50.02\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 24 May 2019 07:50:02 -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=FG6kDDwRUI0ucbngRUfqy2MeRtEvFDmFOS/knWhF0fa80FHpR8cArPR+vAmukOWaSY\n\tkJL7UHWPpXk1aKQ2+MT47DfWjLH4iUoQTkGmsGtfRoRqUF+mrT7EtHA5mn29EJr/JEva\n\tO9BKCy95DNatcHDpQx0U3Lk6wrWC4dSmwayxw=",
        "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=XrJPmb8nEuIDMFwuByrfIHC+Fu3vGZtxXwH8p0PzzkHkHQhDA73io9HrYNK4E3Lqf6\n\tYvXI1ns8WsVTiXhLPgSV/SYLOIl/EF5giu5ERds6HFckBTfpNRkxX1Rs89LvTuvYcndz\n\tWPhR4XMOLk9DXqaZdcTLUERIhtd6B1B8fYc2jSH42BDQPi87MXO95+FaJexiBbVH1LfU\n\tkW9V1DdB/qZ6zQxq0QZTV6pIxCOxn2G+jByA0vYVFCbhugnAn8mCwn7Mkpzm4q1nZuEm\n\t/WmX0gEpMfu2B/irnRNyFmhy2AD7JeS89LYxyyF7Ax+Ov0KqOuzo0/Uhf7Yws0u/qhoD\n\t2Skg==",
        "X-Gm-Message-State": "APjAAAXPT3f4tQ0JlNkpm+Ydp/l5ETR6nivcboQ7IpvkQGCSwrOrIHTN\n\tgVtjAfXhsOECOMTFUZYK/nkcuwDiJXENcm7PCz+MbV4iq/U7Qm8WJ32xURcdGTvQrtcTnTKZ9V3\n\thf0yK8lFAgo6kiFoouvTweO7RMQQav8y9YsnMd6OpvKf1uHfhmOUz5EbbA9mwQN79",
        "X-Google-Smtp-Source": "APXvYqwUpUrfCKw3P+DRYUxuPq3BoFilEuILp4oCN0saH6Zx3BE6eefrlvNae+VLnzVTNPLqkYKmcw==",
        "X-Received": "by 2002:a63:e408:: with SMTP id\n\ta8mr18783864pgi.146.1558709403631; \n\tFri, 24 May 2019 07:50:03 -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,\n\tLance Richardson <lance.richardson@broadcom.com>",
        "Date": "Fri, 24 May 2019 10:49:26 -0400",
        "Message-Id": "<20190524144935.18765-2-lance.richardson@broadcom.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190524144935.18765-1-lance.richardson@broadcom.com>",
        "References": "<20190521213953.25425-1-ajit.khaparde@broadcom.com>\n\t<20190524144935.18765-1-lance.richardson@broadcom.com>",
        "Subject": "[dpdk-dev] [PATCH v2 01/10] 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": [
        "v2",
        "01/10"
    ]
}