get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 52701,
    "url": "http://patches.dpdk.org/api/patches/52701/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190412122840.1908-4-g.singh@nxp.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": "<20190412122840.1908-4-g.singh@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190412122840.1908-4-g.singh@nxp.com",
    "date": "2019-04-12T12:28:56",
    "name": "[v4,03/13] net/enetc: fix big endian build and correct buffer allocation",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "29e37855fd5157bf820934f367868f2d8cbc73eb",
    "submitter": {
        "id": 1068,
        "url": "http://patches.dpdk.org/api/people/1068/?format=api",
        "name": "Gagandeep Singh",
        "email": "g.singh@nxp.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/20190412122840.1908-4-g.singh@nxp.com/mbox/",
    "series": [
        {
            "id": 4281,
            "url": "http://patches.dpdk.org/api/series/4281/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4281",
            "date": "2019-04-12T12:28:51",
            "name": "ENETC PMD basic features and bug fixes",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/4281/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/52701/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/52701/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 E48641B144;\n\tFri, 12 Apr 2019 14:29:12 +0200 (CEST)",
            "from EUR03-VE1-obe.outbound.protection.outlook.com\n\t(mail-eopbgr50047.outbound.protection.outlook.com [40.107.5.47])\n\tby dpdk.org (Postfix) with ESMTP id CD95E7D4A;\n\tFri, 12 Apr 2019 14:28:57 +0200 (CEST)",
            "from VE1PR04MB6365.eurprd04.prod.outlook.com (10.255.118.78) by\n\tVE1PR04MB6367.eurprd04.prod.outlook.com (10.255.118.80) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n\t15.20.1792.15; Fri, 12 Apr 2019 12:28:56 +0000",
            "from VE1PR04MB6365.eurprd04.prod.outlook.com\n\t([fe80::f5ad:f178:4c55:13e0]) by\n\tVE1PR04MB6365.eurprd04.prod.outlook.com\n\t([fe80::f5ad:f178:4c55:13e0%3]) with mapi id 15.20.1792.016;\n\tFri, 12 Apr 2019 12:28:56 +0000"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n\tbh=WG7degB6ozVO9RMO+s4cqdnYWSp6hd57N45bUqz2EVo=;\n\tb=eFuLpkZbz4yKwklczKyxoOIVhJMKgmYNJGnC2E8fTa6LjR9G4ZSced5lyS+pcYSu89VCTAQfbqAHkzvEmjpVbrW+gpQIuwmvCEGEAHSe32MJcjOcDZZ/Ykj2CuqOJsi3/lPThHmdAOAy/JfH7wHp4Mz20lD1QuABl2xegXdbQ0k=",
        "From": "Gagandeep Singh <G.Singh@nxp.com>",
        "To": "\"dev@dpdk.org\" <dev@dpdk.org>, \"ferruh.yigit@intel.com\"\n\t<ferruh.yigit@intel.com>",
        "CC": "Gagandeep Singh <G.Singh@nxp.com>, \"stable@dpdk.org\" <stable@dpdk.org>",
        "Thread-Topic": "[PATCH v4 03/13] net/enetc: fix big endian build and correct\n\tbuffer allocation",
        "Thread-Index": "AQHU8StMmSIXkm1U3UONrid7tt+Tvg==",
        "Date": "Fri, 12 Apr 2019 12:28:56 +0000",
        "Message-ID": "<20190412122840.1908-4-g.singh@nxp.com>",
        "References": "<20190412105105.24351-1-g.singh@nxp.com>\n\t<20190412122840.1908-1-g.singh@nxp.com>",
        "In-Reply-To": "<20190412122840.1908-1-g.singh@nxp.com>",
        "Accept-Language": "en-US",
        "Content-Language": "en-US",
        "X-MS-Has-Attach": "",
        "X-MS-TNEF-Correlator": "",
        "x-clientproxiedby": "BMXPR01CA0029.INDPRD01.PROD.OUTLOOK.COM\n\t(2603:1096:b00:c::15) To VE1PR04MB6365.eurprd04.prod.outlook.com\n\t(2603:10a6:803:12a::14)",
        "x-mailer": "git-send-email 2.19.1",
        "authentication-results": "spf=none (sender IP is )\n\tsmtp.mailfrom=G.Singh@nxp.com; ",
        "x-ms-exchange-messagesentrepresentingtype": "1",
        "x-originating-ip": "[92.120.0.8]",
        "x-ms-publictraffictype": "Email",
        "x-ms-office365-filtering-correlation-id": "235a8828-24c3-42d4-95f9-08d6bf426e78",
        "x-ms-office365-filtering-ht": "Tenant",
        "x-microsoft-antispam": "BCL:0; PCL:0;\n\tRULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020);\n\tSRVR:VE1PR04MB6367; ",
        "x-ms-traffictypediagnostic": "VE1PR04MB6367:",
        "x-microsoft-antispam-prvs": "<VE1PR04MB63673F8B396B2433ED702A3CE1280@VE1PR04MB6367.eurprd04.prod.outlook.com>",
        "x-forefront-prvs": "0005B05917",
        "x-forefront-antispam-report": "SFV:NSPM;\n\tSFS:(10009020)(376002)(346002)(396003)(39860400002)(366004)(136003)(189003)(199004)(476003)(99286004)(1076003)(8936002)(2501003)(5660300002)(186003)(6486002)(97736004)(3846002)(6436002)(106356001)(6116002)(7736002)(6506007)(102836004)(386003)(305945005)(256004)(446003)(76176011)(2616005)(105586002)(26005)(71190400001)(53936002)(36756003)(66066001)(25786009)(8676002)(486006)(11346002)(14454004)(50226002)(71200400001)(81156014)(6512007)(86362001)(2906002)(316002)(478600001)(110136005)(54906003)(72206003)(4326008)(52116002)(68736007)(81166006);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6367;\n\tH:VE1PR04MB6365.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en;\n\tPTR:InfoNoRecords; MX:1; A:1; ",
        "received-spf": "None (protection.outlook.com: nxp.com does not designate\n\tpermitted sender hosts)",
        "x-ms-exchange-senderadcheck": "1",
        "x-microsoft-antispam-message-info": "Rn4w/8u7y52//RWRAqO0TqhBlwwxChIF+MsptuHovtWL1Mi2vcnu/yO/A7xnHy1xAPNJtoV4YKUmh9SxcOW6v5KKsRxg4twyXPYUf9blJ6XQzfhkrE/oBFlMnPS4rrm4MaiCIecNFdb7Xf/a9/h5Y13eydnt1EmQMt4kvAq2mV+giHdlTsFd2Fr1eDa4f/SBOjIZk7ZFtaSPc/mZcekyGR7xHTrHhLfrCJPxc+LCKhB1SBkkF2/pgONWrtxXa3nITsL/EAX6CHkSJ1c7n0CUw6szN3LIvPFyEcxBELqlgvckCm8kBNMxryjMFyul74bQ+oy3lltCMPSrHeMxAELVNDeMoi/nadVb9DWcVz4SCyPic1UwiiKg7vYlJrzKjRFv1oxfTnYBPOB1AV2TgBK9IIe52+D/8RxSaL9Zoy2jm6w=",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "MIME-Version": "1.0",
        "X-OriginatorOrg": "nxp.com",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "235a8828-24c3-42d4-95f9-08d6bf426e78",
        "X-MS-Exchange-CrossTenant-originalarrivaltime": "12 Apr 2019 12:28:56.6380\n\t(UTC)",
        "X-MS-Exchange-CrossTenant-fromentityheader": "Hosted",
        "X-MS-Exchange-CrossTenant-id": "686ea1d3-bc2b-4c6f-a92c-d99c5c301635",
        "X-MS-Exchange-CrossTenant-mailboxtype": "HOSTED",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "VE1PR04MB6367",
        "Subject": "[dpdk-dev] [PATCH v4 03/13] net/enetc: fix big endian build and\n\tcorrect buffer allocation",
        "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": "There was an error at rte_constant_bswap64 while compiling\nwith big endian toolchain. so fixing it by adding type cast.\n\nAlso, rte_pktmbuf_alloc API should be used to allocate mbuf\ninstead of rte_pktmbuf_raw_alloc to avoid use of stale mbuf\ninformation.\n\nFixes: 469c6111a799 (\"net/enetc: enable Rx and Tx\")\nCc: stable@dpdk.org\n\nSuggested-by: Thomas Monjalon <thomas@monjalon.net>\nSigned-off-by: Gagandeep Singh <g.singh@nxp.com>\n---\n drivers/net/enetc/enetc_rxtx.c | 5 +++--\n 1 file changed, 3 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/enetc/enetc_rxtx.c b/drivers/net/enetc/enetc_rxtx.c\r\nindex a31a38725..42f16cab1 100644\r\n--- a/drivers/net/enetc/enetc_rxtx.c\r\n+++ b/drivers/net/enetc/enetc_rxtx.c\r\n@@ -88,8 +88,9 @@ enetc_refill_rx_ring(struct enetc_bdr *rx_ring, const int buff_cnt)\r\n \trx_swbd = &rx_ring->q_swbd[i];\r\n \trxbd = ENETC_RXBD(*rx_ring, i);\r\n \tfor (j = 0; j < buff_cnt; j++) {\r\n-\t\trx_swbd->buffer_addr =\r\n-\t\t\trte_cpu_to_le_64(rte_mbuf_raw_alloc(rx_ring->mb_pool));\r\n+\t\trx_swbd->buffer_addr = (void *)(uintptr_t)\r\n+\t\t\trte_cpu_to_le_64((uint64_t)(uintptr_t)\r\n+\t\t\t\t\trte_pktmbuf_alloc(rx_ring->mb_pool));\r\n \t\trxbd->w.addr = (uint64_t)(uintptr_t)\r\n \t\t\t       rx_swbd->buffer_addr->buf_iova +\r\n \t\t\t       rx_swbd->buffer_addr->data_off;\r\n",
    "prefixes": [
        "v4",
        "03/13"
    ]
}