get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 54205,
    "url": "https://patches.dpdk.org/api/patches/54205/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1559580584-5728-22-git-send-email-anoobj@marvell.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": "<1559580584-5728-22-git-send-email-anoobj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1559580584-5728-22-git-send-email-anoobj@marvell.com",
    "date": "2019-06-03T16:49:26",
    "name": "[21/39] eventdev: add eventdev port-lcore link",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "894b3892faf2af23e5e44c2b8e320a2633aaf571",
    "submitter": {
        "id": 1205,
        "url": "https://patches.dpdk.org/api/people/1205/?format=api",
        "name": "Anoob Joseph",
        "email": "anoobj@marvell.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1559580584-5728-22-git-send-email-anoobj@marvell.com/mbox/",
    "series": [
        {
            "id": 4867,
            "url": "https://patches.dpdk.org/api/series/4867/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=4867",
            "date": "2019-06-03T16:49:08",
            "name": null,
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/4867/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/54205/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/54205/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 60E1E1B9B1;\n\tMon,  3 Jun 2019 18:51:50 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n\t[67.231.148.174]) by dpdk.org (Postfix) with ESMTP id A1DFC1B9A0\n\tfor <dev@dpdk.org>; Mon,  3 Jun 2019 18:51:42 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n\tby mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id\n\tx53GdwFL031513; Mon, 3 Jun 2019 09:51:41 -0700",
            "from sc-exch01.marvell.com ([199.233.58.181])\n\tby mx0a-0016f401.pphosted.com with ESMTP id 2sw2wmh75y-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); \n\tMon, 03 Jun 2019 09:51:41 -0700",
            "from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH01.marvell.com\n\t(10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3;\n\tMon, 3 Jun 2019 09:51:41 -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 09:51:41 -0700",
            "from ajoseph83.caveonetworks.com.com (unknown [10.29.45.56])\n\tby maili.marvell.com (Postfix) with ESMTP id 629F53F7043;\n\tMon,  3 Jun 2019 09:51:36 -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=ymk6FkicNdpGTOpP2XqjgIi8HgCKQSeNiAXFfS5DeW7N/3MQHLafUek+M+ORWU7coqVn\n\tPx3cj2xR1A86dCsbvjfyZR/GdoXicANJ8NpaTgqoSZxfbNsA6L3jK9DeqU9X4wLwaQAA\n\t+11RDTgzOzNzJSPvfdpeyr+UalkZSJNohPJ4I5VcM75I3GaB41rgZFyQOyB7HiUep0wo\n\t7n35nttOXZaI4kMBVzX1dCCOC431Y1wHchidsdIA+7Q5fftNH+1ZPwe1ZNAunFbg6ogb\n\tP+2E3CeOzh6RvO4dz/hmrLAiHGx64B0BAaMUpoaOtlr2CunPkRDQ4AqfpwaoGRc7d9T0\n\ttA== ",
        "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": "Narayana Prasad <pathreya@marvell.com>, <dev@dpdk.org>, Lukasz Bartosik\n\t<lbartosik@marvell.com>, Pavan Nikhilesh <pbhagavatula@marvell.com>, \n\t\"Hemant Agrawal\" <hemant.agrawal@nxp.com>, \n\tNipun 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>,\n\t\"Anoob Joseph\" <anoobj@marvell.com>",
        "Date": "Mon, 3 Jun 2019 22:19:26 +0530",
        "Message-ID": "<1559580584-5728-22-git-send-email-anoobj@marvell.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1559580584-5728-1-git-send-email-anoobj@marvell.com>",
        "References": "<1559580584-5728-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"
    ]
}