get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 61705,
    "url": "https://patches.dpdk.org/api/patches/61705/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20191023060602.32456-5-g.singh@nxp.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20191023060602.32456-5-g.singh@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20191023060602.32456-5-g.singh@nxp.com",
    "date": "2019-10-23T06:06:02",
    "name": "[v5,4/4] net/enetc: enable dpaax library",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "13ed8dc7dc8528845e427b7e62d72246e6c673f1",
    "submitter": {
        "id": 1068,
        "url": "https://patches.dpdk.org/api/people/1068/?format=api",
        "name": "Gagandeep Singh",
        "email": "g.singh@nxp.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20191023060602.32456-5-g.singh@nxp.com/mbox/",
    "series": [
        {
            "id": 6999,
            "url": "https://patches.dpdk.org/api/series/6999/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=6999",
            "date": "2019-10-23T06:05:58",
            "name": "enetc PMD specific changes",
            "version": 5,
            "mbox": "https://patches.dpdk.org/series/6999/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/61705/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/61705/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 8D9581BFA5;\n\tWed, 23 Oct 2019 08:22:11 +0200 (CEST)",
            "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n\tby dpdk.org (Postfix) with ESMTP id 7A26A1BF87\n\tfor <dev@dpdk.org>; Wed, 23 Oct 2019 08:22:01 +0200 (CEST)",
            "from inva020.nxp.com (localhost [127.0.0.1])\n\tby inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 529A11A00B2;\n\tWed, 23 Oct 2019 08:22:01 +0200 (CEST)",
            "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n\t[165.114.16.14])\n\tby inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 845071A0362;\n\tWed, 23 Oct 2019 08:21:59 +0200 (CEST)",
            "from GDB1.ap.freescale.net (GDB1.ap.freescale.net [10.232.132.179])\n\tby invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C32D6402E5;\n\tWed, 23 Oct 2019 14:21:56 +0800 (SGT)"
        ],
        "From": "Gagandeep Singh <g.singh@nxp.com>",
        "To": "dev@dpdk.org,\n\tferruh.yigit@intel.com",
        "Cc": "Gagandeep Singh <g.singh@nxp.com>",
        "Date": "Wed, 23 Oct 2019 11:36:02 +0530",
        "Message-Id": "<20191023060602.32456-5-g.singh@nxp.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20191023060602.32456-1-g.singh@nxp.com>",
        "References": "<20191021105027.14792-1-g.singh@nxp.com>\n\t<20191023060602.32456-1-g.singh@nxp.com>",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "Subject": "[dpdk-dev] [PATCH v5 4/4] net/enetc: enable dpaax library",
        "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": "dpaaX is used to maintain a local copy of PA->VA translations.\n\nUsing the rte_mem_virt2iova or rte_mem_virt2phy is expensive. This\nlibrary is an attempt to reduce the overall cost associated with\nthis translation.\n\nThis patch enables this dpaaX library by populating a dpaaX's\ntable for PA to VA translation. This change will also help the\ncaam JR driver in PA to VA translation when used with enetc driver\nover enetc supported SoCs.\n\nSigned-off-by: Gagandeep Singh <g.singh@nxp.com>\n---\n drivers/net/enetc/Makefile       | 2 ++\n drivers/net/enetc/enetc_ethdev.c | 8 ++++++++\n drivers/net/enetc/meson.build    | 1 +\n 3 files changed, 11 insertions(+)",
    "diff": "diff --git a/drivers/net/enetc/Makefile b/drivers/net/enetc/Makefile\nindex 312b37245..4498bc51f 100644\n--- a/drivers/net/enetc/Makefile\n+++ b/drivers/net/enetc/Makefile\n@@ -10,6 +10,7 @@ LIB = librte_pmd_enetc.a\n \n CFLAGS += -O3\n CFLAGS += $(WERROR_FLAGS)\n+CFLAGS += -I$(RTE_SDK)/drivers/common/dpaax\n EXPORT_MAP := rte_pmd_enetc_version.map\n LIBABIVER := 1\n \n@@ -19,5 +20,6 @@ SRCS-$(CONFIG_RTE_LIBRTE_ENETC_PMD) += enetc_rxtx.c\n LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool\n LDLIBS += -lrte_ethdev -lrte_net\n LDLIBS += -lrte_bus_pci\n+LDLIBS += -lrte_common_dpaax\n \n include $(RTE_SDK)/mk/rte.lib.mk\ndiff --git a/drivers/net/enetc/enetc_ethdev.c b/drivers/net/enetc/enetc_ethdev.c\nindex c6099714e..20b77c006 100644\n--- a/drivers/net/enetc/enetc_ethdev.c\n+++ b/drivers/net/enetc/enetc_ethdev.c\n@@ -5,6 +5,7 @@\n #include <stdbool.h>\n #include <rte_ethdev_pci.h>\n #include <rte_random.h>\n+#include <dpaax_iova_table.h>\n \n #include \"enetc_logs.h\"\n #include \"enetc.h\"\n@@ -896,6 +897,9 @@ enetc_dev_init(struct rte_eth_dev *eth_dev)\n \teth_dev->data->mtu = RTE_ETHER_MAX_LEN - RTE_ETHER_HDR_LEN -\n \t\tRTE_ETHER_CRC_LEN;\n \n+\tif (rte_eal_iova_mode() == RTE_IOVA_PA)\n+\t\tdpaax_iova_table_populate();\n+\n \tENETC_PMD_DEBUG(\"port_id %d vendorID=0x%x deviceID=0x%x\",\n \t\t\teth_dev->data->port_id, pci_dev->id.vendor_id,\n \t\t\tpci_dev->id.device_id);\n@@ -906,6 +910,10 @@ static int\n enetc_dev_uninit(struct rte_eth_dev *eth_dev __rte_unused)\n {\n \tPMD_INIT_FUNC_TRACE();\n+\n+\tif (rte_eal_iova_mode() == RTE_IOVA_PA)\n+\t\tdpaax_iova_table_depopulate();\n+\n \treturn 0;\n }\n \ndiff --git a/drivers/net/enetc/meson.build b/drivers/net/enetc/meson.build\nindex 3bc069844..bea54bea8 100644\n--- a/drivers/net/enetc/meson.build\n+++ b/drivers/net/enetc/meson.build\n@@ -6,6 +6,7 @@ if not is_linux\n \treason = 'only supported on linux'\n endif\n \n+deps += ['common_dpaax']\n sources = files('enetc_ethdev.c',\n \t\t'enetc_rxtx.c')\n \n",
    "prefixes": [
        "v5",
        "4/4"
    ]
}