get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.0/patches/61362/
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 61362,
    "url": "http://patchwork.dpdk.org/api/1.0/patches/61362/",
    "project": {
        "id": 1,
        "url": "http://patchwork.dpdk.org/api/1.0/projects/1/",
        "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"
    },
    "msgid": "<20191017082904.17543-2-nipun.gupta@nxp.com>",
    "date": "2019-10-17T08:29:04",
    "name": "[2/2,v2] event/dpaa2: support Tx adapter",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "e5c7a1e6bf75c26d5db088ab26c6fb0f0332b162",
    "submitter": {
        "id": 471,
        "url": "http://patchwork.dpdk.org/api/1.0/people/471/",
        "name": "Nipun Gupta",
        "email": "nipun.gupta@nxp.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patchwork.dpdk.org/api/1.0/users/310/",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20191017082904.17543-2-nipun.gupta@nxp.com/mbox/",
    "series": [
        {
            "id": 6899,
            "url": "http://patchwork.dpdk.org/api/1.0/series/6899/",
            "date": "2019-10-17T08:29:03",
            "name": "[1/2,v2] event/dpaa2: set priority as per the dpcon device",
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/6899/mbox/"
        }
    ],
    "check": "fail",
    "checks": "http://patchwork.dpdk.org/api/patches/61362/checks/",
    "tags": {},
    "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 265E51E8D5;\n\tThu, 17 Oct 2019 10:44:56 +0200 (CEST)",
            "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n\tby dpdk.org (Postfix) with ESMTP id 395181E882\n\tfor <dev@dpdk.org>; Thu, 17 Oct 2019 10:44:49 +0200 (CEST)",
            "from inva020.nxp.com (localhost [127.0.0.1])\n\tby inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id CE7641A061D;\n\tThu, 17 Oct 2019 10:44:48 +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 5E7931A094E;\n\tThu, 17 Oct 2019 10:44:46 +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 28E3B402C7;\n\tThu, 17 Oct 2019 16:44:43 +0800 (SGT)"
        ],
        "From": "Nipun Gupta <nipun.gupta@nxp.com>",
        "To": "dev@dpdk.org",
        "Cc": "jerinj@marvell.com, hemant.agrawal@nxp.com,\n\tNipun Gupta <nipun.gupta@nxp.com>",
        "Date": "Thu, 17 Oct 2019 13:59:04 +0530",
        "Message-Id": "<20191017082904.17543-2-nipun.gupta@nxp.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20191017082904.17543-1-nipun.gupta@nxp.com>",
        "References": "<20191004115725.1915-1-nipun.gupta@nxp.com>\n\t<20191017082904.17543-1-nipun.gupta@nxp.com>",
        "X-Virus-Scanned": "ClamAV using ClamSMTP",
        "Subject": "[dpdk-dev] [PATCH 2/2 v2] event/dpaa2: support Tx adapter",
        "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": "This patch adds the support of Tx adapter for DPAA2 platform\n\nSigned-off-by: Nipun Gupta <nipun.gupta@nxp.com>\n---\n\nChanges in v2:\n - Fix build with RTE_LIBRTE_ETHDEV_DEBUG enabled\n\n drivers/event/dpaa2/Makefile         |  2 +-\n drivers/event/dpaa2/dpaa2_eventdev.c | 75 ++++++++++++++++++++++++++--\n drivers/event/dpaa2/dpaa2_eventdev.h |  3 +-\n 3 files changed, 73 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/drivers/event/dpaa2/Makefile b/drivers/event/dpaa2/Makefile\nindex c6ab326da..c4019d688 100644\n--- a/drivers/event/dpaa2/Makefile\n+++ b/drivers/event/dpaa2/Makefile\n@@ -20,7 +20,7 @@ CFLAGS += -I$(RTE_SDK)/drivers/event/dpaa2\n LDLIBS += -lrte_eal -lrte_eventdev\n LDLIBS += -lrte_common_dpaax\n LDLIBS += -lrte_bus_fslmc -lrte_mempool_dpaa2 -lrte_pmd_dpaa2\n-LDLIBS += -lrte_bus_vdev -lrte_mempool -lrte_mbuf\n+LDLIBS += -lrte_bus_vdev -lrte_mempool -lrte_mbuf -lrte_ethdev\n CFLAGS += -I$(RTE_SDK)/drivers/net/dpaa2\n CFLAGS += -I$(RTE_SDK)/drivers/net/dpaa2/mc\n \ndiff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c\nindex 56cea5f90..4ee2c460e 100644\n--- a/drivers/event/dpaa2/dpaa2_eventdev.c\n+++ b/drivers/event/dpaa2/dpaa2_eventdev.c\n@@ -27,6 +27,7 @@\n #include <rte_ethdev_driver.h>\n #include <rte_cryptodev.h>\n #include <rte_event_eth_rx_adapter.h>\n+#include <rte_event_eth_tx_adapter.h>\n \n #include <fslmc_vfio.h>\n #include <dpaa2_hw_pvt.h>\n@@ -947,6 +948,66 @@ dpaa2_eventdev_crypto_stop(const struct rte_eventdev *dev,\n \treturn 0;\n }\n \n+static int\n+dpaa2_eventdev_tx_adapter_create(uint8_t id,\n+\t\t\t\t const struct rte_eventdev *dev)\n+{\n+\tRTE_SET_USED(id);\n+\tRTE_SET_USED(dev);\n+\n+\t/* Nothing to do. Simply return. */\n+\treturn 0;\n+}\n+\n+static int\n+dpaa2_eventdev_tx_adapter_caps(const struct rte_eventdev *dev,\n+\t\t\t       const struct rte_eth_dev *eth_dev,\n+\t\t\t       uint32_t *caps)\n+{\n+\tRTE_SET_USED(dev);\n+\tRTE_SET_USED(eth_dev);\n+\n+\t*caps = RTE_EVENT_ETH_TX_ADAPTER_CAP_INTERNAL_PORT;\n+\treturn 0;\n+}\n+\n+static uint16_t\n+dpaa2_eventdev_txa_enqueue_same_dest(void *port,\n+\t\t\t\t     struct rte_event ev[],\n+\t\t\t\t     uint16_t nb_events)\n+{\n+\tstruct rte_mbuf *m[DPAA2_EVENT_MAX_PORT_ENQUEUE_DEPTH], *m0;\n+\tuint8_t qid, i;\n+\n+\tRTE_SET_USED(port);\n+\n+\tm0 = (struct rte_mbuf *)ev[0].mbuf;\n+\tqid = rte_event_eth_tx_adapter_txq_get(m0);\n+\n+\tfor (i = 0; i < nb_events; i++)\n+\t\tm[i] = (struct rte_mbuf *)ev[i].mbuf;\n+\n+\treturn rte_eth_tx_burst(m0->port, qid, m, nb_events);\n+}\n+\n+static uint16_t\n+dpaa2_eventdev_txa_enqueue(void *port,\n+\t\t\t   struct rte_event ev[],\n+\t\t\t   uint16_t nb_events)\n+{\n+\tstruct rte_mbuf *m = (struct rte_mbuf *)ev[0].mbuf;\n+\tuint8_t qid, i;\n+\n+\tRTE_SET_USED(port);\n+\n+\tfor (i = 0; i < nb_events; i++) {\n+\t\tqid = rte_event_eth_tx_adapter_txq_get(m);\n+\t\trte_eth_tx_burst(m->port, qid, &m, 1);\n+\t}\n+\n+\treturn nb_events;\n+}\n+\n static struct rte_eventdev_ops dpaa2_eventdev_ops = {\n \t.dev_infos_get    = dpaa2_eventdev_info_get,\n \t.dev_configure    = dpaa2_eventdev_configure,\n@@ -964,11 +1025,13 @@ static struct rte_eventdev_ops dpaa2_eventdev_ops = {\n \t.timeout_ticks    = dpaa2_eventdev_timeout_ticks,\n \t.dump             = dpaa2_eventdev_dump,\n \t.dev_selftest     = test_eventdev_dpaa2,\n-\t.eth_rx_adapter_caps_get = dpaa2_eventdev_eth_caps_get,\n-\t.eth_rx_adapter_queue_add = dpaa2_eventdev_eth_queue_add,\n-\t.eth_rx_adapter_queue_del = dpaa2_eventdev_eth_queue_del,\n-\t.eth_rx_adapter_start = dpaa2_eventdev_eth_start,\n-\t.eth_rx_adapter_stop = dpaa2_eventdev_eth_stop,\n+\t.eth_rx_adapter_caps_get\t= dpaa2_eventdev_eth_caps_get,\n+\t.eth_rx_adapter_queue_add\t= dpaa2_eventdev_eth_queue_add,\n+\t.eth_rx_adapter_queue_del\t= dpaa2_eventdev_eth_queue_del,\n+\t.eth_rx_adapter_start\t\t= dpaa2_eventdev_eth_start,\n+\t.eth_rx_adapter_stop\t\t= dpaa2_eventdev_eth_stop,\n+\t.eth_tx_adapter_caps_get\t= dpaa2_eventdev_tx_adapter_caps,\n+\t.eth_tx_adapter_create\t\t= dpaa2_eventdev_tx_adapter_create,\n \t.crypto_adapter_caps_get\t= dpaa2_eventdev_crypto_caps_get,\n \t.crypto_adapter_queue_pair_add\t= dpaa2_eventdev_crypto_queue_add,\n \t.crypto_adapter_queue_pair_del\t= dpaa2_eventdev_crypto_queue_del,\n@@ -1035,6 +1098,8 @@ dpaa2_eventdev_create(const char *name)\n \teventdev->enqueue_forward_burst = dpaa2_eventdev_enqueue_burst;\n \teventdev->dequeue       = dpaa2_eventdev_dequeue;\n \teventdev->dequeue_burst = dpaa2_eventdev_dequeue_burst;\n+\teventdev->txa_enqueue\t= dpaa2_eventdev_txa_enqueue;\n+\teventdev->txa_enqueue_same_dest\t= dpaa2_eventdev_txa_enqueue_same_dest;\n \n \t/* For secondary processes, the primary has done all the work */\n \tif (rte_eal_process_type() != RTE_PROC_PRIMARY)\ndiff --git a/drivers/event/dpaa2/dpaa2_eventdev.h b/drivers/event/dpaa2/dpaa2_eventdev.h\nindex 7c5d00550..785e52032 100644\n--- a/drivers/event/dpaa2/dpaa2_eventdev.h\n+++ b/drivers/event/dpaa2/dpaa2_eventdev.h\n@@ -38,7 +38,8 @@ enum {\n #define RTE_EVENT_ETH_RX_ADAPTER_DPAA2_CAP \\\n \t\t(RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT | \\\n \t\tRTE_EVENT_ETH_RX_ADAPTER_CAP_MULTI_EVENTQ | \\\n-\t\tRTE_EVENT_ETH_RX_ADAPTER_CAP_OVERRIDE_FLOW_ID)\n+\t\tRTE_EVENT_ETH_RX_ADAPTER_CAP_OVERRIDE_FLOW_ID | \\\n+\t\tRTE_EVENT_ETH_TX_ADAPTER_CAP_INTERNAL_PORT)\n \n /**< Crypto Rx adapter cap to return If the packet transfers from\n  * the cryptodev to eventdev with DPAA2 devices.\n",
    "prefixes": [
        "2/2",
        "v2"
    ]
}