get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 55674,
    "url": "http://patches.dpdk.org/api/patches/55674/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190630175240.1126-1-pbhagavatula@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": "<20190630175240.1126-1-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190630175240.1126-1-pbhagavatula@marvell.com",
    "date": "2019-06-30T17:52:39",
    "name": "[1/2] app/eventdev: fix order test port creation",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "1e67bcef69b07b712b149b8c73005e790797e3ca",
    "submitter": {
        "id": 1183,
        "url": "http://patches.dpdk.org/api/people/1183/?format=api",
        "name": "Pavan Nikhilesh Bhagavatula",
        "email": "pbhagavatula@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/20190630175240.1126-1-pbhagavatula@marvell.com/mbox/",
    "series": [
        {
            "id": 5235,
            "url": "http://patches.dpdk.org/api/series/5235/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5235",
            "date": "2019-06-30T17:52:39",
            "name": "[1/2] app/eventdev: fix order test port creation",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/5235/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/55674/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/55674/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 B8CF41B974;\n\tSun, 30 Jun 2019 19:52:51 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n\t[67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 00A0E1B955;\n\tSun, 30 Jun 2019 19:52:49 +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\tx5UHp53I004369; Sun, 30 Jun 2019 10:52:49 -0700",
            "from sc-exch04.marvell.com ([199.233.58.184])\n\tby mx0b-0016f401.pphosted.com with ESMTP id 2te7gm3x2b-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); \n\tSun, 30 Jun 2019 10:52:48 -0700",
            "from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH04.marvell.com\n\t(10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3;\n\tSun, 30 Jun 2019 10:52:47 -0700",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com\n\t(10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend\n\tTransport; Sun, 30 Jun 2019 10:52:47 -0700",
            "from BG-LT7430.marvell.com (unknown [10.28.17.14])\n\tby maili.marvell.com (Postfix) with ESMTP id 54D413F703F;\n\tSun, 30 Jun 2019 10:52:44 -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 : mime-version :\n\tcontent-transfer-encoding : content-type; s=pfpt0818;\n\tbh=QU1wSVvIXiwQgqmGsNkwpXWlafcfxBqxU/CB5F4xLTg=; \n\tb=H+C5ZsHy3MmZ7em61XwyatkM+cplE/QNT1emfpy/JJ+/DjejXq0sXCrLWWvWhHISrQ+l\n\tMyj4V0JTwS0In+Ae2g3loXdoS/Q9HQ5nyq3yA6cBaCyp9D/oj+9twO/TTYU60V6KQdZq\n\tNB1oAEUgpG315/umMG2jfdU124BiNduALkwXUa+nxw9rZRTSJUek79iyrlSIkA62NRKH\n\t5Y+nfRy9U/ANOW+oTAwe7enbyE5O4U+bbpb359Tick107WKQH378Cf1kilMMeIc6TlgF\n\tSjvEspfkZJbu2ss7ODAIQ9NyyqalWEivWaJzFhJac16Fu6nbSL3He3yid6l4jal61YTJ\n\tGA== ",
        "From": "<pbhagavatula@marvell.com>",
        "To": "<jerinj@marvell.com>",
        "CC": "<dev@dpdk.org>, Pavan Nikhilesh <pbhagavatula@marvell.com>,\n\t<stable@dpdk.org>",
        "Date": "Sun, 30 Jun 2019 23:22:39 +0530",
        "Message-ID": "<20190630175240.1126-1-pbhagavatula@marvell.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "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-30_08:, , signatures=0",
        "Subject": "[dpdk-dev] [PATCH 1/2] app/eventdev: fix order test port creation",
        "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": "From: Pavan Nikhilesh <pbhagavatula@marvell.com>\n\nConfigure event ports based on the underlying event device info rather\nthan using hardcoded values.\n\nCc: stable@dpdk.org\nFixes: 5710e751813e (\"app/testeventdev: add order port setup\")\n\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\n---\n app/test-eventdev/test_order_common.c | 32 ++++++++++++++++++---------\n 1 file changed, 21 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/app/test-eventdev/test_order_common.c b/app/test-eventdev/test_order_common.c\nindex 8a3420130..252e4a14c 100644\n--- a/app/test-eventdev/test_order_common.c\n+++ b/app/test-eventdev/test_order_common.c\n@@ -67,6 +67,11 @@ order_producer(void *arg)\n int\n order_opt_check(struct evt_options *opt)\n {\n+\tif (opt->prod_type != EVT_PROD_TYPE_SYNT) {\n+\t\tevt_err(\"Invalid producer type\");\n+\t\treturn -EINVAL;\n+\t}\n+\n \t/* 1 producer + N workers + 1 master */\n \tif (rte_lcore_count() < 3) {\n \t\tevt_err(\"test need minimum 3 lcores\");\n@@ -298,12 +303,23 @@ order_event_dev_port_setup(struct evt_test *test, struct evt_options *opt,\n \tint ret;\n \tuint8_t port;\n \tstruct test_order *t = evt_test_priv(test);\n+\tstruct rte_event_dev_info dev_info;\n+\n+\tmemset(&dev_info, 0, sizeof(struct rte_event_dev_info));\n+\tret = rte_event_dev_info_get(opt->dev_id, &dev_info);\n+\tif (ret) {\n+\t\tevt_err(\"failed to get eventdev info %d\", opt->dev_id);\n+\t\treturn ret;\n+\t}\n+\n+\tif (opt->wkr_deq_dep > dev_info.max_event_port_dequeue_depth)\n+\t\topt->wkr_deq_dep = dev_info.max_event_port_dequeue_depth;\n \n \t/* port configuration */\n-\tconst struct rte_event_port_conf wkr_p_conf = {\n+\tconst struct rte_event_port_conf p_conf = {\n \t\t\t.dequeue_depth = opt->wkr_deq_dep,\n-\t\t\t.enqueue_depth = 64,\n-\t\t\t.new_event_threshold = 4096,\n+\t\t\t.enqueue_depth = dev_info.max_event_port_dequeue_depth,\n+\t\t\t.new_event_threshold = dev_info.max_num_events,\n \t};\n \n \t/* setup one port per worker, linking to all queues */\n@@ -314,7 +330,7 @@ order_event_dev_port_setup(struct evt_test *test, struct evt_options *opt,\n \t\tw->port_id = port;\n \t\tw->t = t;\n \n-\t\tret = rte_event_port_setup(opt->dev_id, port, &wkr_p_conf);\n+\t\tret = rte_event_port_setup(opt->dev_id, port, &p_conf);\n \t\tif (ret) {\n \t\t\tevt_err(\"failed to setup port %d\", port);\n \t\t\treturn ret;\n@@ -326,12 +342,6 @@ order_event_dev_port_setup(struct evt_test *test, struct evt_options *opt,\n \t\t\treturn -EINVAL;\n \t\t}\n \t}\n-\t/* port for producer, no links */\n-\tconst struct rte_event_port_conf prod_conf = {\n-\t\t\t.dequeue_depth = 8,\n-\t\t\t.enqueue_depth = 32,\n-\t\t\t.new_event_threshold = 1200,\n-\t};\n \tstruct prod_data *p = &t->prod;\n \n \tp->dev_id = opt->dev_id;\n@@ -339,7 +349,7 @@ order_event_dev_port_setup(struct evt_test *test, struct evt_options *opt,\n \tp->queue_id = 0;\n \tp->t = t;\n \n-\tret = rte_event_port_setup(opt->dev_id, port, &prod_conf);\n+\tret = rte_event_port_setup(opt->dev_id, port, &p_conf);\n \tif (ret) {\n \t\tevt_err(\"failed to setup producer port %d\", port);\n \t\treturn ret;\n",
    "prefixes": [
        "1/2"
    ]
}