get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 54245,
    "url": "http://patches.dpdk.org/api/patches/54245/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1559583160-13944-22-git-send-email-anoobj@marvell.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": "<1559583160-13944-22-git-send-email-anoobj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1559583160-13944-22-git-send-email-anoobj@marvell.com",
    "date": "2019-06-03T17:32:21",
    "name": "[21/39] eventdev: add eventdev port-lcore link",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "894b3892faf2af23e5e44c2b8e320a2633aaf571",
    "submitter": {
        "id": 1205,
        "url": "http://patches.dpdk.org/api/people/1205/?format=api",
        "name": "Anoob Joseph",
        "email": "anoobj@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1559583160-13944-22-git-send-email-anoobj@marvell.com/mbox/",
    "series": [
        {
            "id": 4868,
            "url": "http://patches.dpdk.org/api/series/4868/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4868",
            "date": "2019-06-03T17:32:00",
            "name": "adding eventmode helper library",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/4868/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/54245/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/54245/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 7428D1BAD7;\n\tMon,  3 Jun 2019 19:36:00 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n\t[67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 4EB961B9CB\n\tfor <dev@dpdk.org>; Mon,  3 Jun 2019 19:35:57 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n\tby mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id\n\tx53HKk5V027666; Mon, 3 Jun 2019 10:35:56 -0700",
            "from sc-exch02.marvell.com ([199.233.58.182])\n\tby mx0b-0016f401.pphosted.com with ESMTP id 2sw79pr70c-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); \n\tMon, 03 Jun 2019 10:35:56 -0700",
            "from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com\n\t(10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3;\n\tMon, 3 Jun 2019 10:35:27 -0700",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com\n\t(10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend\n\tTransport; Mon, 3 Jun 2019 10:35:26 -0700",
            "from ajoseph83.caveonetworks.com.com (unknown [10.29.45.56])\n\tby maili.marvell.com (Postfix) with ESMTP id 5A7563F703F;\n\tMon,  3 Jun 2019 10:35:21 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n\th=from : to : cc :\n\tsubject : date : message-id : in-reply-to : references : mime-version\n\t: content-transfer-encoding : content-type; s=pfpt0818;\n\tbh=1Am5+Qi78BYOKz5RjsWK6JT/VNh3BhakAh0d/utZAZ8=;\n\tb=weoObc91XRpEWthrd/iwhPd1gi+YdQ3bk++GW2M4OvDx/e+90aQFC7B7Z2YQ/DxAQ5KX\n\twEUcyJsac8Kd9z8XDK02+q5ln3g/mrotuh41Hn2fK5dnziUhjB0LzMMjwsXkDVY+OR/3\n\tM7MFUaO9GVxlPArs1soswoypmxJWWoUD1cAWQ84F6hv0ls5bKiVeDKbm+q7/0klSCtE5\n\t71s8SF9eHTSiHE0jofQW5KO049p0YMDnQL51k+TARW+c/TAiSIlZ+q8qivLAm8YminjR\n\tOZz0vlkRODKTTDjvQBX7KChItJLHc+tkKZSYmJyecgjzHu5t6fRyZk5nOHgVAjqyNCeR\n\t3A== ",
        "From": "Anoob Joseph <anoobj@marvell.com>",
        "To": "Jerin Jacob <jerinj@marvell.com>, Nikhil Rao <nikhil.rao@intel.com>,\n\t\"Erik Gabriel Carrillo\" <erik.g.carrillo@intel.com>, Abhinandan Gujjar\n\t<abhinandan.gujjar@intel.com>,\n\tBruce Richardson <bruce.richardson@intel.com>,\n\tPablo de Lara <pablo.de.lara.guarch@intel.com>",
        "CC": "Anoob Joseph <anoobj@marvell.com>, Narayana Prasad <pathreya@marvell.com>,\n\t<dev@dpdk.org>, Lukasz Bartosik <lbartosik@marvell.com>, Pavan Nikhilesh\n\t<pbhagavatula@marvell.com>, Hemant Agrawal <hemant.agrawal@nxp.com>,\n\t\"Nipun  Gupta\" <nipun.gupta@nxp.com>, Harry van Haaren\n\t<harry.van.haaren@intel.com>, =?utf-8?q?Mattias_R=C3=B6nnblom?=\n\t<mattias.ronnblom@ericsson.com>,  Liang Ma <liang.j.ma@intel.com>",
        "Date": "Mon, 3 Jun 2019 23:02:21 +0530",
        "Message-ID": "<1559583160-13944-22-git-send-email-anoobj@marvell.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1559583160-13944-1-git-send-email-anoobj@marvell.com>",
        "References": "<1559583160-13944-1-git-send-email-anoobj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:, ,\n\tdefinitions=2019-06-03_13:, , signatures=0",
        "Subject": "[dpdk-dev] [PATCH 21/39] eventdev: add eventdev port-lcore link",
        "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": "Adding eventdev port-lcore link. In addition, this will also specify\nwhich event queue need to be connected to the event port.\n\nSigned-off-by: Anoob Joseph <anoobj@marvell.com>\nSigned-off-by: Lukasz Bartosik <lbartosik@marvell.com>\n---\n lib/librte_eventdev/rte_eventmode_helper.c         | 22 ++++++++++++++++++++++\n lib/librte_eventdev/rte_eventmode_helper.h         | 12 ++++++++++++\n .../rte_eventmode_helper_internal.h                | 12 ++++++++++++\n 3 files changed, 46 insertions(+)",
    "diff": "diff --git a/lib/librte_eventdev/rte_eventmode_helper.c b/lib/librte_eventdev/rte_eventmode_helper.c\nindex bebcfb9..ec0be44 100644\n--- a/lib/librte_eventdev/rte_eventmode_helper.c\n+++ b/lib/librte_eventdev/rte_eventmode_helper.c\n@@ -165,10 +165,12 @@ rte_eventmode_helper_initialize_eventdev(struct eventmode_conf *em_conf)\n \tstruct rte_event_dev_config eventdev_conf;\n \tstruct rte_event_dev_info evdev_default_conf;\n \tstruct rte_event_queue_conf eventq_conf = {0};\n+\tstruct rte_eventmode_helper_event_link_info *link;\n \tstruct eventdev_params *eventdev_config;\n \tint nb_eventdev = em_conf->nb_eventdev;\n \tint nb_eventqueue;\n \tuint8_t eventdev_id;\n+\tuint8_t *queue = NULL;\n \n \tfor (i = 0; i < nb_eventdev; i++) {\n \n@@ -259,6 +261,26 @@ rte_eventmode_helper_initialize_eventdev(struct eventmode_conf *em_conf)\n \t\t}\n \t}\n \n+\t/* Make event queue - event port link */\n+\tfor (j = 0; j <  em_conf->nb_link; j++) {\n+\n+\t\t/* Get link info */\n+\t\tlink = &(em_conf->link[j]);\n+\n+\t\t/* Get event dev ID */\n+\t\teventdev_id = link->eventdev_id;\n+\n+\t\tqueue = &(link->eventq_id);\n+\n+\t\t/* Link queue to port */\n+\t\tret = rte_event_port_link(eventdev_id, link->event_portid,\n+\t\t\t\tqueue, NULL, 1);\n+\t\tif (ret < 0) {\n+\t\t\tRTE_EM_HLPR_LOG_ERR(\"Error in event port linking\");\n+\t\t\treturn ret;\n+\t\t}\n+\t}\n+\n \t/* Start event devices */\n \tfor (i = 0; i < nb_eventdev; i++) {\n \ndiff --git a/lib/librte_eventdev/rte_eventmode_helper.h b/lib/librte_eventdev/rte_eventmode_helper.h\nindex 0eafed3..1ae6a15 100644\n--- a/lib/librte_eventdev/rte_eventmode_helper.h\n+++ b/lib/librte_eventdev/rte_eventmode_helper.h\n@@ -29,6 +29,18 @@ struct rte_eventmode_helper_conf {\n \t\t/**< Mode specific parameters */\n };\n \n+/* Event-lcore link conf */\n+struct rte_eventmode_helper_event_link_info {\n+\tuint8_t eventdev_id;\n+\t\t/**< Event device ID */\n+\tuint8_t event_portid;\n+\t\t/**< Event port ID */\n+\tuint8_t eventq_id;\n+\t\t/**< Event queue to be linked to the port */\n+\tuint8_t lcore_id;\n+\t\t/**< Lcore to be polling on this port */\n+};\n+\n /* Common helper functions for command line parsing */\n \n /**\ndiff --git a/lib/librte_eventdev/rte_eventmode_helper_internal.h b/lib/librte_eventdev/rte_eventmode_helper_internal.h\nindex 0b4ec59..ee41833 100644\n--- a/lib/librte_eventdev/rte_eventmode_helper_internal.h\n+++ b/lib/librte_eventdev/rte_eventmode_helper_internal.h\n@@ -35,6 +35,13 @@\n /* Max event devices supported */\n #define EVENT_MODE_MAX_EVENT_DEVS RTE_EVENT_MAX_DEVS\n \n+/* Max event queues supported per event device */\n+#define EVENT_MODE_MAX_EVENT_QUEUES_PER_DEV RTE_EVENT_MAX_QUEUES_PER_DEV\n+\n+/* Max event-lcore links */\n+#define EVENT_MODE_MAX_LCORE_LINKS \\\n+\t(EVENT_MODE_MAX_EVENT_DEVS * EVENT_MODE_MAX_EVENT_QUEUES_PER_DEV)\n+\n /* Event dev params */\n struct eventdev_params {\n \tuint8_t eventdev_id;\n@@ -49,6 +56,11 @@ struct eventmode_conf {\n \t\t/**< No of event devs */\n \tstruct eventdev_params eventdev_config[EVENT_MODE_MAX_EVENT_DEVS];\n \t\t/**< Per event dev conf */\n+\tuint8_t nb_link;\n+\t\t/**< No of links */\n+\tstruct rte_eventmode_helper_event_link_info\n+\t\t\tlink[EVENT_MODE_MAX_LCORE_LINKS];\n+\t\t/**< Per link conf */\n };\n \n #endif /* _RTE_EVENTMODE_HELPER_INTERNAL_H_ */\n",
    "prefixes": [
        "21/39"
    ]
}