get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 53778,
    "url": "http://patches.dpdk.org/api/patches/53778/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190528192339.10903-4-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": "<20190528192339.10903-4-lance.richardson@broadcom.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190528192339.10903-4-lance.richardson@broadcom.com",
    "date": "2019-05-28T19:23:34",
    "name": "[v3,3/8] net/bnxt: compute and store scattered Rx status",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d6edae6d051095c3d019a839f3b962ae22ac3e66",
    "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/20190528192339.10903-4-lance.richardson@broadcom.com/mbox/",
    "series": [
        {
            "id": 4800,
            "url": "http://patches.dpdk.org/api/series/4800/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4800",
            "date": "2019-05-28T19:23:31",
            "name": "bnxt patchset",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/4800/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/53778/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/53778/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 F27091B951;\n\tTue, 28 May 2019 21:24:01 +0200 (CEST)",
            "from mail-pf1-f195.google.com (mail-pf1-f195.google.com\n\t[209.85.210.195]) by dpdk.org (Postfix) with ESMTP id 1E7D71B945\n\tfor <dev@dpdk.org>; Tue, 28 May 2019 21:23:56 +0200 (CEST)",
            "by mail-pf1-f195.google.com with SMTP id g9so12069145pfo.11\n\tfor <dev@dpdk.org>; Tue, 28 May 2019 12:23:56 -0700 (PDT)",
            "from lrichardson-VirtualBox.dhcp.broadcom.net ([192.19.231.250])\n\tby smtp.gmail.com with ESMTPSA id\n\tq66sm3733070pjb.13.2019.05.28.12.23.54\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 28 May 2019 12:23:54 -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=xiGGQeAKBtWZK1zC5Lf/chKRf+BSNzdQCK6nftIjxJo=;\n\tb=M60/r9m4RCaR0jOX/DzYGU0nBMzRCQCFZFUDJIoliYAfp8ohm34Bmc4ENd7xivDhlT\n\tJP9IeIIK3yPJn8ydFeAUn3ASCzAsHArGOejqEsIso4q6Bg+Kl5FIVNJumCGN3WslojXG\n\tT0HsSrNwkRdMw6T2QXP9Mhalb2sLe7+b4mbTE=",
        "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=xiGGQeAKBtWZK1zC5Lf/chKRf+BSNzdQCK6nftIjxJo=;\n\tb=Aj8JDM3WKQLMqtOy1pwuiIuVLyfYivRcs6zDPvAR/lhHr66lCrcNS6X5pcXcGGNdwi\n\tf2y+qWfmhbSAl0JLDHflmxd5n5S/whNYCby9vyaPzsKrF9jLAmrE6FpV6TNXMgYe8RzW\n\tjZXInb+Q7M0LqsRNRpM2PXchy1TubTihM9tABBnhcDFQeFXDd0hLJ+cpAK1aBQjj5w7i\n\t9ahtLyWZ1YSrtfNRo4laf3ljR1uYf+fRiZl3nn042J6qx/pJJH2qMxSD0O97ELf7uTKl\n\t1y87Pb7vPzMslmmaA0kA9aYZ73ErmqAnYCmCYyEHFMkcVYVkedgyiD16LlOJAgRX5dA+\n\tzWHQ==",
        "X-Gm-Message-State": "APjAAAWFXEjjmEFyEPEorax+xJyEMIAXxQIhKdMB8wiuL2HZg/LFwaI7\n\tN9shU6XZvAq9WAS0HM0artcj3qrCyDdAAG11bEHbrCe3nOU35USNSd599l/DqF4bj/Uq5VzE0I6\n\t75cBC9mAO6bvY1/Ns2nnFcU4DvV6htHnYAoFURof1IlLuBzI+6C0NYj1M7faJLVAp",
        "X-Google-Smtp-Source": "APXvYqzpyER/QCy281cqFV730VKj4TfhPwwTle80gzUTMMEOVnfMRnCYlJHszwRkCYu5C1kLY3z8Lw==",
        "X-Received": "by 2002:a63:af44:: with SMTP id\n\ts4mr133219365pgo.411.1559071435254; \n\tTue, 28 May 2019 12:23:55 -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": "Tue, 28 May 2019 15:23:34 -0400",
        "Message-Id": "<20190528192339.10903-4-lance.richardson@broadcom.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190528192339.10903-1-lance.richardson@broadcom.com>",
        "References": "<20190521213953.25425-1-ajit.khaparde@broadcom.com>\n\t<20190528192339.10903-1-lance.richardson@broadcom.com>",
        "Subject": "[dpdk-dev] [PATCH v3 3/8] net/bnxt: compute and store scattered Rx\n\tstatus",
        "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": "In preparation for a bnxt vector-mode driver, compute and store\nscattered_rx status for the device when started.\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_ethdev.c | 23 +++++++++++++++++++++++\n 1 file changed, 23 insertions(+)",
    "diff": "diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c\nindex b0244d6d1..5b3932b7b 100644\n--- a/drivers/net/bnxt/bnxt_ethdev.c\n+++ b/drivers/net/bnxt/bnxt_ethdev.c\n@@ -624,6 +624,27 @@ static int bnxt_dev_lsc_intr_setup(struct rte_eth_dev *eth_dev)\n \treturn 0;\n }\n \n+/*\n+ * Determine whether the current configuration requires support for scattered\n+ * receive; return 1 if scattered receive is required and 0 if not.\n+ */\n+static int bnxt_scattered_rx(struct rte_eth_dev *eth_dev)\n+{\n+\tuint16_t buf_size;\n+\tint i;\n+\n+\tfor (i = 0; i < eth_dev->data->nb_rx_queues; i++) {\n+\t\tstruct bnxt_rx_queue *rxq = eth_dev->data->rx_queues[i];\n+\n+\t\tbuf_size = (uint16_t)(rte_pktmbuf_data_room_size(rxq->mb_pool) -\n+\t\t\t\t      RTE_PKTMBUF_HEADROOM);\n+\t\tif (eth_dev->data->dev_conf.rxmode.max_rx_pkt_len +\n+\t\t    VLAN_TAG_SIZE * BNXT_NUM_VLANS > buf_size)\n+\t\t\treturn 1;\n+\t}\n+\treturn 0;\n+}\n+\n static int bnxt_dev_start_op(struct rte_eth_dev *eth_dev)\n {\n \tstruct bnxt *bp = (struct bnxt *)eth_dev->data->dev_private;\n@@ -642,6 +663,8 @@ static int bnxt_dev_start_op(struct rte_eth_dev *eth_dev)\n \tif (rc)\n \t\tgoto error;\n \n+\teth_dev->data->scattered_rx = bnxt_scattered_rx(eth_dev);\n+\n \tbnxt_link_update_op(eth_dev, 1);\n \n \tif (rx_offloads & DEV_RX_OFFLOAD_VLAN_FILTER)\n",
    "prefixes": [
        "v3",
        "3/8"
    ]
}