get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 52685,
    "url": "http://patches.dpdk.org/api/patches/52685/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190412105105.24351-2-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": "<20190412105105.24351-2-g.singh@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190412105105.24351-2-g.singh@nxp.com",
    "date": "2019-04-12T11:01:14",
    "name": "[v3,01/13] net/enetc: support physical addressing mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "916566433544d94f581f377415ffbb8f8adba6b5",
    "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@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190412105105.24351-2-g.singh@nxp.com/mbox/",
    "series": [
        {
            "id": 4280,
            "url": "http://patches.dpdk.org/api/series/4280/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4280",
            "date": "2019-04-12T11:01:11",
            "name": "ENETC PMD basic features and bug fixes",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/4280/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/52685/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/52685/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "X-BeenThere": "dev@dpdk.org",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "MIME-Version": "1.0",
        "X-MS-TNEF-Correlator": "",
        "Subject": "[dpdk-dev] [PATCH v3 01/13] net/enetc: support physical addressing\n\tmode",
        "Message-ID": "<20190412105105.24351-2-g.singh@nxp.com>",
        "Accept-Language": "en-US",
        "received-spf": "None (protection.outlook.com: nxp.com does not designate\n\tpermitted sender hosts)",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "References": "<1555075598-4988-1-git-send-email-g.singh@nxp.com>\n\t<20190412105105.24351-1-g.singh@nxp.com>",
        "In-Reply-To": "<20190412105105.24351-1-g.singh@nxp.com>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "VE1PR04MB6510",
        "X-MS-Exchange-CrossTenant-id": "686ea1d3-bc2b-4c6f-a92c-d99c5c301635",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "CC": "Gagandeep Singh <G.Singh@nxp.com>",
        "X-MS-Exchange-CrossTenant-fromentityheader": "Hosted",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "x-forefront-antispam-report": "SFV:NSPM;\n\tSFS:(10009020)(366004)(396003)(346002)(136003)(376002)(39860400002)(189003)(199004)(4326008)(14454004)(6486002)(2501003)(71200400001)(53936002)(6512007)(71190400001)(5660300002)(86362001)(6436002)(106356001)(52116002)(105586002)(2906002)(97736004)(3846002)(99286004)(6116002)(446003)(68736007)(316002)(50226002)(476003)(2616005)(11346002)(81156014)(81166006)(6506007)(478600001)(186003)(26005)(102836004)(8676002)(386003)(36756003)(110136005)(486006)(7736002)(8936002)(305945005)(76176011)(1076003)(25786009)(72206003)(256004)(66066001);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6510;\n\tH:VE1PR04MB6365.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en;\n\tPTR:InfoNoRecords; MX:1; A:1; ",
        "Content-Transfer-Encoding": "base64",
        "Thread-Index": "AQHU8R8MXs3069Jby0uwgRBpIrd3Eg==",
        "X-OriginatorOrg": "nxp.com",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "ad436cb3-5c77-408b-faeb-08d6bf362e28",
        "Date": "Fri, 12 Apr 2019 11:01:14 +0000",
        "From": "Gagandeep Singh <G.Singh@nxp.com>",
        "x-ms-exchange-messagesentrepresentingtype": "1",
        "X-MS-Exchange-CrossTenant-originalarrivaltime": "12 Apr 2019 11:01:14.9595\n\t(UTC)",
        "X-Mailman-Version": "2.1.15",
        "List-Post": "<mailto:dev@dpdk.org>",
        "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=aMeL2NkgOJztQsfiUW90o3whi1/DaKlNeFIddYr1z8A=;\n\tb=Er7kdn/A1tYfkzGLZFtp+TIGoqajHyTYV3iYfT5xYygnxr0aW+gR3J8A/9H23n6d4pI9m9GWOKrdRkKYtbxQZk00yEmcxnG9ge5c9E/GG2QR4UYS8LQKByY2VH7AsZlFGzn98BCHtIOskOyuXJ8C/6aQIACNO5g2+ncfUm1pXXs=",
        "x-ms-exchange-senderadcheck": "1",
        "To": "\"dev@dpdk.org\" <dev@dpdk.org>, \"ferruh.yigit@intel.com\"\n\t<ferruh.yigit@intel.com>",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 108AC5F2A;\n\tFri, 12 Apr 2019 13:01:19 +0200 (CEST)",
            "from EUR03-VE1-obe.outbound.protection.outlook.com\n\t(mail-eopbgr50082.outbound.protection.outlook.com [40.107.5.82])\n\tby dpdk.org (Postfix) with ESMTP id 89B815F1F\n\tfor <dev@dpdk.org>; Fri, 12 Apr 2019 13:01:16 +0200 (CEST)",
            "from VE1PR04MB6365.eurprd04.prod.outlook.com (10.255.118.78) by\n\tVE1PR04MB6510.eurprd04.prod.outlook.com (20.179.233.160) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n\t15.20.1792.17; Fri, 12 Apr 2019 11:01:15 +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 11:01:15 +0000"
        ],
        "X-MS-Has-Attach": "",
        "x-microsoft-antispam-message-info": "VLAtWqj46RczCVzd2IaTnkv1WRmrx+c4z/d3ku9b55dZBX8cGJ4EaCrSQvfMBqs4twwGUa4RWxJ8ccAXi0qf3ggjbrAvPicyUs2NdnHT6kKLrZWfXTdVz4Tu9BUcMvK1fsGwh+8HHkQX4lAx2JAOMXGLetNgOf+XrnYzVNRzQSl60ytkK3GrKpbpK6Dn8EV1aAmi2fv0PyD5vIOcxSiFeWd5zGter8KKZAkRkyx0IWD8MD+moz//Z5B0YY8j2u0lD02VDFnvvuwOy7JdV5+sZTAOmCz2G2dbIN0s48GVCrAWzTXNQMaMfL4qfyBxiQNDp83SX6RrdR71N3lu7stvAVOQO85pRU+19BNRuhiunXcljH3j2nuRNECoqu3KQ+7k89DxxXvy3mu+tbuXy4Q7KD3gvhrlSTsIHS3kYj722/s=",
        "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:VE1PR04MB6510; ",
        "Errors-To": "dev-bounces@dpdk.org",
        "x-clientproxiedby": "TYAPR01CA0204.jpnprd01.prod.outlook.com\n\t(2603:1096:404:29::24) To VE1PR04MB6365.eurprd04.prod.outlook.com\n\t(2603:10a6:803:12a::14)",
        "x-ms-traffictypediagnostic": "VE1PR04MB6510:",
        "x-originating-ip": "[92.120.1.68]",
        "Delivered-To": "patchwork@dpdk.org",
        "X-Original-To": "patchwork@dpdk.org",
        "x-forefront-prvs": "0005B05917",
        "x-ms-office365-filtering-ht": "Tenant",
        "x-ms-publictraffictype": "Email",
        "x-microsoft-antispam-prvs": "<VE1PR04MB6510BC4BFA3149F203532CCBE1280@VE1PR04MB6510.eurprd04.prod.outlook.com>",
        "X-MS-Exchange-CrossTenant-mailboxtype": "HOSTED",
        "x-mailer": "git-send-email 2.17.1",
        "authentication-results": "spf=none (sender IP is )\n\tsmtp.mailfrom=G.Singh@nxp.com; ",
        "Thread-Topic": "[PATCH v3 01/13] net/enetc: support physical addressing mode",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "Content-Language": "en-US",
        "x-ms-office365-filtering-correlation-id": "ad436cb3-5c77-408b-faeb-08d6bf362e28",
        "Precedence": "list"
    },
    "content": "Support added for physical addressing mode and\nchange driver flags to don't care.\n\nSigned-off-by: Gagandeep Singh <g.singh@nxp.com>\n---\n drivers/net/enetc/enetc_ethdev.c | 22 ++++++++++++----------\n drivers/net/enetc/enetc_rxtx.c   |  6 +++---\n 2 files changed, 15 insertions(+), 13 deletions(-)",
    "diff": "diff --git a/drivers/net/enetc/enetc_ethdev.c b/drivers/net/enetc/enetc_ethdev.c\r\nindex 023fe75..7a9a97d 100644\r\n--- a/drivers/net/enetc/enetc_ethdev.c\r\n+++ b/drivers/net/enetc/enetc_ethdev.c\r\n@@ -1,5 +1,5 @@\r\n /* SPDX-License-Identifier: BSD-3-Clause\r\n- * Copyright 2018 NXP\r\n+ * Copyright 2018-2019 NXP\r\n  */\r\n \r\n #include <stdbool.h>\r\n@@ -334,14 +334,15 @@ static int enetc_tx_queue_setup(struct rte_eth_dev *dev, uint16_t tx_queue_id,\r\n enetc_setup_txbdr(struct enetc_hw *hw, struct enetc_bdr *tx_ring)\r\n {\r\n \tint idx = tx_ring->index;\r\n-\tuintptr_t base_addr;\r\n \tuint32_t tbmr;\r\n+\tphys_addr_t bd_address;\r\n \r\n-\tbase_addr = (uintptr_t)tx_ring->bd_base;\r\n+\tbd_address = (phys_addr_t)\r\n+\t\t     rte_mem_virt2iova((const void *)tx_ring->bd_base);\r\n \tenetc_txbdr_wr(hw, idx, ENETC_TBBAR0,\r\n-\t\t       lower_32_bits((uint64_t)base_addr));\r\n+\t\t       lower_32_bits((uint64_t)bd_address));\r\n \tenetc_txbdr_wr(hw, idx, ENETC_TBBAR1,\r\n-\t\t       upper_32_bits((uint64_t)base_addr));\r\n+\t\t       upper_32_bits((uint64_t)bd_address));\r\n \tenetc_txbdr_wr(hw, idx, ENETC_TBLENR,\r\n \t\t       ENETC_RTBLENR_LEN(tx_ring->bd_count));\r\n \r\n@@ -478,14 +479,15 @@ static int enetc_tx_queue_setup(struct rte_eth_dev *dev, uint16_t tx_queue_id,\r\n \t\t  struct rte_mempool *mb_pool)\r\n {\r\n \tint idx = rx_ring->index;\r\n-\tuintptr_t base_addr;\r\n \tuint16_t buf_size;\r\n+\tphys_addr_t bd_address;\r\n \r\n-\tbase_addr = (uintptr_t)rx_ring->bd_base;\r\n+\tbd_address = (phys_addr_t)\r\n+\t\t     rte_mem_virt2iova((const void *)rx_ring->bd_base);\r\n \tenetc_rxbdr_wr(hw, idx, ENETC_RBBAR0,\r\n-\t\t       lower_32_bits((uint64_t)base_addr));\r\n+\t\t       lower_32_bits((uint64_t)bd_address));\r\n \tenetc_rxbdr_wr(hw, idx, ENETC_RBBAR1,\r\n-\t\t       upper_32_bits((uint64_t)base_addr));\r\n+\t\t       upper_32_bits((uint64_t)bd_address));\r\n \tenetc_rxbdr_wr(hw, idx, ENETC_RBLENR,\r\n \t\t       ENETC_RTBLENR_LEN(rx_ring->bd_count));\r\n \r\n@@ -612,7 +614,7 @@ static int enetc_tx_queue_setup(struct rte_eth_dev *dev, uint16_t tx_queue_id,\r\n \r\n static struct rte_pci_driver rte_enetc_pmd = {\r\n \t.id_table = pci_id_enetc_map,\r\n-\t.drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_IOVA_AS_VA,\r\n+\t.drv_flags = RTE_PCI_DRV_NEED_MAPPING,\r\n \t.probe = enetc_pci_probe,\r\n \t.remove = enetc_pci_remove,\r\n };\r\ndiff --git a/drivers/net/enetc/enetc_rxtx.c b/drivers/net/enetc/enetc_rxtx.c\r\nindex 631e243..a31a387 100644\r\n--- a/drivers/net/enetc/enetc_rxtx.c\r\n+++ b/drivers/net/enetc/enetc_rxtx.c\r\n@@ -1,5 +1,5 @@\r\n /* SPDX-License-Identifier: BSD-3-Clause\r\n- * Copyright 2018 NXP\r\n+ * Copyright 2018-2019 NXP\r\n  */\r\n \r\n #include <stdbool.h>\r\n@@ -64,7 +64,7 @@\r\n \t\ttxbd->buf_len = txbd->frm_len;\r\n \t\ttxbd->flags = rte_cpu_to_le_16(ENETC_TXBD_FLAGS_F);\r\n \t\ttxbd->addr = (uint64_t)(uintptr_t)\r\n-\t\trte_cpu_to_le_64((size_t)tx_swbd->buffer_addr->buf_addr +\r\n+\t\trte_cpu_to_le_64((size_t)tx_swbd->buffer_addr->buf_iova +\r\n \t\t\t\t tx_swbd->buffer_addr->data_off);\r\n \t\ti++;\r\n \t\tstart++;\r\n@@ -91,7 +91,7 @@\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\trxbd->w.addr = (uint64_t)(uintptr_t)\r\n-\t\t\t       rx_swbd->buffer_addr->buf_addr +\r\n+\t\t\t       rx_swbd->buffer_addr->buf_iova +\r\n \t\t\t       rx_swbd->buffer_addr->data_off;\r\n \t\t/* clear 'R\" as well */\r\n \t\trxbd->r.lstatus = 0;\r\n",
    "prefixes": [
        "v3",
        "01/13"
    ]
}