get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 40776,
    "url": "http://patchwork.dpdk.org/api/patches/40776/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1528386731-23007-1-git-send-email-alejandro.lucero@netronome.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<1528386731-23007-1-git-send-email-alejandro.lucero@netronome.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1528386731-23007-1-git-send-email-alejandro.lucero@netronome.com",
    "date": "2018-06-07T15:52:11",
    "name": "[dpdk-dev] net/nfp: fix data offset initialization in TX descriptors",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "9d63e0aedd10965a7b2d6c6754846913e5b257fc",
    "submitter": {
        "id": 270,
        "url": "http://patchwork.dpdk.org/api/people/270/?format=api",
        "name": "Alejandro Lucero",
        "email": "alejandro.lucero@netronome.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patchwork.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1528386731-23007-1-git-send-email-alejandro.lucero@netronome.com/mbox/",
    "series": [
        {
            "id": 34,
            "url": "http://patchwork.dpdk.org/api/series/34/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=34",
            "date": "2018-06-07T15:52:11",
            "name": "[dpdk-dev] net/nfp: fix data offset initialization in TX descriptors",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/34/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/40776/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/40776/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 F24041B1CA;\n\tThu,  7 Jun 2018 17:52:24 +0200 (CEST)",
            "from netronome.com (host-79-78-33-110.static.as9105.net\n\t[79.78.33.110]) by dpdk.org (Postfix) with ESMTP id 85E001B1BD;\n\tThu,  7 Jun 2018 17:52:23 +0200 (CEST)",
            "from netronome.com (localhost [127.0.0.1])\n\tby netronome.com (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id\n\tw57FqBQ0023045; Thu, 7 Jun 2018 16:52:11 +0100",
            "(from alucero@localhost)\n\tby netronome.com (8.14.4/8.14.4/Submit) id w57FqBQk023044;\n\tThu, 7 Jun 2018 16:52:11 +0100"
        ],
        "From": "Alejandro Lucero <alejandro.lucero@netronome.com>",
        "To": "dev@dpdk.org",
        "Cc": "stable@dpdk.org",
        "Date": "Thu,  7 Jun 2018 16:52:11 +0100",
        "Message-Id": "<1528386731-23007-1-git-send-email-alejandro.lucero@netronome.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "Subject": "[dpdk-dev] [PATCH] net/nfp: fix data offset initialization in TX\n\tdescriptors",
        "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://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "The mbuf struct allows to prepend metadata and the NFP TX\ndescriptors needs to give the data offset to the NIC.\n\nThere is no application using this metadata but it is possible\nthe PMD itself using it in the future for supporting hardware\noffloads like OVS offload.\n\nAlso, this patch fixes a potential issue with the offset bits inside\nthe TX descriptor not being used nor initialized, but the firmware\nchecking it and doing the wrong thing if the offset bits contain\ngarbage.\n\nFixes: b812daadad0d (\"nfp: add Rx and Tx\")\n\nSigned-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>\n---\n drivers/net/nfp/nfp_net.c | 8 ++++++++\n 1 file changed, 8 insertions(+)",
    "diff": "diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c\nindex faad1ee..14f7fc0 100644\n--- a/drivers/net/nfp/nfp_net.c\n+++ b/drivers/net/nfp/nfp_net.c\n@@ -2245,6 +2245,14 @@ uint32_t nfp_net_txq_full(struct nfp_net_txq *txq)\n \t\t\ttxds->data_len = txd.data_len;\n \t\t\ttxds->dma_addr_hi = (dma_addr >> 32) & 0xff;\n \t\t\ttxds->dma_addr_lo = (dma_addr & 0xffffffff);\n+\n+\t\t\t/*\n+\t\t\t * Prepend metadata?\n+\t\t\t * NFP has just support for a 7 bits offset\n+\t\t\t */\n+\t\t\ttxds->offset_eop = (uint8_t)pkt->data_off &\n+\t\t\t\t\t   PCIE_DESC_TX_OFFSET_MASK;\n+\n \t\t\tASSERT(free_descs > 0);\n \t\t\tfree_descs--;\n \n",
    "prefixes": [
        "dpdk-dev"
    ]
}