get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 42225,
    "url": "http://patches.dpdk.org/api/patches/42225/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1530708838-2682-3-git-send-email-alejandro.lucero@netronome.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": "<1530708838-2682-3-git-send-email-alejandro.lucero@netronome.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1530708838-2682-3-git-send-email-alejandro.lucero@netronome.com",
    "date": "2018-07-04T12:53:54",
    "name": "[v3,2/6] ethdev: add function for checking IOVAs by a device",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d6ff2877666dee9a9c0ebfcd943484c58a3b086c",
    "submitter": {
        "id": 270,
        "url": "http://patches.dpdk.org/api/people/270/?format=api",
        "name": "Alejandro Lucero",
        "email": "alejandro.lucero@netronome.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1530708838-2682-3-git-send-email-alejandro.lucero@netronome.com/mbox/",
    "series": [
        {
            "id": 397,
            "url": "http://patches.dpdk.org/api/series/397/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=397",
            "date": "2018-07-04T12:53:54",
            "name": "use IOVAs check based on DMA mask",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/397/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/42225/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/42225/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 C3FD31BF27;\n\tWed,  4 Jul 2018 14:54:10 +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 1E3871BF1F;\n\tWed,  4 Jul 2018 14:54:09 +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\tw64Cs49o002734; Wed, 4 Jul 2018 13:54:04 +0100",
            "(from alucero@localhost)\n\tby netronome.com (8.14.4/8.14.4/Submit) id w64Cs431002733;\n\tWed, 4 Jul 2018 13:54:04 +0100"
        ],
        "From": "Alejandro Lucero <alejandro.lucero@netronome.com>",
        "To": "dev@dpdk.org",
        "Cc": "stable@dpdk.org, anatoly.burakov@intel.com, maxime.coquelin@redhat.com, \n\tferruh.yigit@intel.com",
        "Date": "Wed,  4 Jul 2018 13:53:54 +0100",
        "Message-Id": "<1530708838-2682-3-git-send-email-alejandro.lucero@netronome.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<1530708838-2682-1-git-send-email-alejandro.lucero@netronome.com>",
        "References": "<1530708838-2682-1-git-send-email-alejandro.lucero@netronome.com>",
        "Subject": "[dpdk-dev] [PATCH v3 2/6] ethdev: add function for checking IOVAs\n\tby a device",
        "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": "A PMD should invoke this function for checking memsegs iovas are within\nthe supported range by the device.\n\nSigned-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>\n---\n lib/librte_ether/rte_ethdev.h           | 13 +++++++++++++\n lib/librte_ether/rte_ethdev_version.map |  1 +\n 2 files changed, 14 insertions(+)",
    "diff": "diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h\nindex eba11ca..e51a432 100644\n--- a/lib/librte_ether/rte_ethdev.h\n+++ b/lib/librte_ether/rte_ethdev.h\n@@ -2799,6 +2799,19 @@ int rte_eth_dev_set_vlan_ether_type(uint16_t port_id,\n int rte_eth_dev_set_vlan_pvid(uint16_t port_id, uint16_t pvid, int on);\n \n /**\n+ * check device dma mask within expected range based on dma mask.\n+ *\n+ * @param maskbits\n+ *  mask length in bits\n+ *\n+ */\n+static inline int\n+rte_eth_dev_check_dma_mask(uint8_t maskbits)\n+{\n+\treturn rte_eal_check_dma_mask(maskbits);\n+}\n+\n+/**\n  *\n  * Retrieve a burst of input packets from a receive queue of an Ethernet\n  * device. The retrieved packets are stored in *rte_mbuf* structures whose\ndiff --git a/lib/librte_ether/rte_ethdev_version.map b/lib/librte_ether/rte_ethdev_version.map\nindex e9681ac..0b11b8a 100644\n--- a/lib/librte_ether/rte_ethdev_version.map\n+++ b/lib/librte_ether/rte_ethdev_version.map\n@@ -191,6 +191,7 @@ DPDK_17.08 {\n DPDK_17.11 {\n \tglobal:\n \n+\trte_eth_dev_check_dma_mask;\n \trte_eth_dev_get_sec_ctx;\n \trte_eth_dev_pool_ops_supported;\n \trte_eth_dev_reset;\n",
    "prefixes": [
        "v3",
        "2/6"
    ]
}