get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 132272,
    "url": "http://patches.dpdk.org/api/patches/132272/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231003075109.4309-4-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": "<20231003075109.4309-4-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231003075109.4309-4-pbhagavatula@marvell.com",
    "date": "2023-10-03T07:51:09",
    "name": "[v5,3/3] test/event: add event link profile test",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e8d273834b856690eddb65f96293f28067faf8d5",
    "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/20231003075109.4309-4-pbhagavatula@marvell.com/mbox/",
    "series": [
        {
            "id": 29718,
            "url": "http://patches.dpdk.org/api/series/29718/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29718",
            "date": "2023-10-03T07:51:06",
            "name": "Introduce event link profiles",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/29718/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/132272/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/132272/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id B4233426AC;\n\tTue,  3 Oct 2023 09:51:48 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9CE78402F0;\n\tTue,  3 Oct 2023 09:51:38 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 0BCBF402E6\n for <dev@dpdk.org>; Tue,  3 Oct 2023 09:51:36 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 3932411B028261; Tue, 3 Oct 2023 00:51:36 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3tek6myatk-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Tue, 03 Oct 2023 00:51:36 -0700",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Tue, 3 Oct 2023 00:51:34 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend\n Transport; Tue, 3 Oct 2023 00:51:33 -0700",
            "from MININT-80QBFE8.corp.innovium.com (MININT-80QBFE8.marvell.com\n [10.28.164.106])\n by maili.marvell.com (Postfix) with ESMTP id A83C53F7055;\n Tue,  3 Oct 2023 00:51:27 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=ZJomz5zTA8m69IZNHb808fZ1P2VqJ190A/q3QZbPVlA=;\n b=YvRlNNPmaFAYV4/lVAGmH4yoyxcgyXsVvw2H/i02uVdkAXKbSDqYeEmzEtPSb8w8gZPj\n 51kKx6q/joMibR42nHxbtTdplT0q7dBLJL7vCa8T1OQlK+wRbtNX0VvTkl5xtkUlPImh\n hXRet9qMqI3AwmKWjekPDT9l52wDdkSlpKkE9EV79RUOWzgOveudiP2iCHwSl+GvgQcD\n 7EonHXZjqfmuSLiiqtsVyvWejMXi0Yqp/uo54+UAoxBcF1Nbw/ShtNsF6iRyci0ywd1y\n 4bMHORNNr0IgsFNDpdl0UTB8E4bkw7FHDLX9jYpmGXgZwCf30QsGCHTKJYLPzLsbt79H mA==",
        "From": "<pbhagavatula@marvell.com>",
        "To": "<jerinj@marvell.com>, <pbhagavatula@marvell.com>, <sthotton@marvell.com>,\n <timothy.mcdaniel@intel.com>, <hemant.agrawal@nxp.com>,\n <sachin.saxena@nxp.com>, <mattias.ronnblom@ericsson.com>,\n <liangma@liangbit.com>, <peter.mccarthy@intel.com>,\n <harry.van.haaren@intel.com>, <erik.g.carrillo@intel.com>,\n <abhinandan.gujjar@intel.com>, <s.v.naga.harish.k@intel.com>,\n <anatoly.burakov@intel.com>",
        "CC": "<dev@dpdk.org>",
        "Subject": "[PATCH v5 3/3] test/event: add event link profile test",
        "Date": "Tue, 3 Oct 2023 13:21:09 +0530",
        "Message-ID": "<20231003075109.4309-4-pbhagavatula@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20231003075109.4309-1-pbhagavatula@marvell.com>",
        "References": "<20230928101205.4352-1-pbhagavatula@marvell.com>\n <20231003075109.4309-1-pbhagavatula@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "zgy1H4GbrtE_wt54Fb9zr7wq5xYelvPz",
        "X-Proofpoint-GUID": "zgy1H4GbrtE_wt54Fb9zr7wq5xYelvPz",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2023-10-03_04,2023-10-02_01,2023-05-22_02",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "From: Pavan Nikhilesh <pbhagavatula@marvell.com>\n\nAdd test case to verify event link profiles.\n\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\n---\n app/test/test_eventdev.c | 117 +++++++++++++++++++++++++++++++++++++++\n 1 file changed, 117 insertions(+)",
    "diff": "diff --git a/app/test/test_eventdev.c b/app/test/test_eventdev.c\nindex c51c93bdbd..0ecfa7db02 100644\n--- a/app/test/test_eventdev.c\n+++ b/app/test/test_eventdev.c\n@@ -1129,6 +1129,121 @@ test_eventdev_link_get(void)\n \treturn TEST_SUCCESS;\n }\n \n+static int\n+test_eventdev_profile_switch(void)\n+{\n+#define MAX_RETRIES   4\n+\tuint8_t priorities[RTE_EVENT_MAX_QUEUES_PER_DEV];\n+\tuint8_t queues[RTE_EVENT_MAX_QUEUES_PER_DEV];\n+\tstruct rte_event_queue_conf qcfg;\n+\tstruct rte_event_port_conf pcfg;\n+\tstruct rte_event_dev_info info;\n+\tstruct rte_event ev;\n+\tuint8_t q, re;\n+\tint rc;\n+\n+\trte_event_dev_info_get(TEST_DEV_ID, &info);\n+\n+\tif (info.max_profiles_per_port <= 1)\n+\t\treturn TEST_SKIPPED;\n+\n+\tif (info.max_event_queues <= 1)\n+\t\treturn TEST_SKIPPED;\n+\n+\trc = rte_event_port_default_conf_get(TEST_DEV_ID, 0, &pcfg);\n+\tTEST_ASSERT_SUCCESS(rc, \"Failed to get port0 default config\");\n+\trc = rte_event_port_setup(TEST_DEV_ID, 0, &pcfg);\n+\tTEST_ASSERT_SUCCESS(rc, \"Failed to setup port0\");\n+\n+\trc = rte_event_queue_default_conf_get(TEST_DEV_ID, 0, &qcfg);\n+\tTEST_ASSERT_SUCCESS(rc, \"Failed to get queue0 default config\");\n+\trc = rte_event_queue_setup(TEST_DEV_ID, 0, &qcfg);\n+\tTEST_ASSERT_SUCCESS(rc, \"Failed to setup queue0\");\n+\n+\tq = 0;\n+\trc = rte_event_port_profile_links_set(TEST_DEV_ID, 0, &q, NULL, 1, 0);\n+\tTEST_ASSERT(rc == 1, \"Failed to link queue 0 to port 0 with profile 0\");\n+\tq = 1;\n+\trc = rte_event_port_profile_links_set(TEST_DEV_ID, 0, &q, NULL, 1, 1);\n+\tTEST_ASSERT(rc == 1, \"Failed to link queue 1 to port 0 with profile 1\");\n+\n+\trc = rte_event_port_profile_links_get(TEST_DEV_ID, 0, queues, priorities, 0);\n+\tTEST_ASSERT(rc == 1, \"Failed to links\");\n+\tTEST_ASSERT(queues[0] == 0, \"Invalid queue found in link\");\n+\n+\trc = rte_event_port_profile_links_get(TEST_DEV_ID, 0, queues, priorities, 1);\n+\tTEST_ASSERT(rc == 1, \"Failed to links\");\n+\tTEST_ASSERT(queues[0] == 1, \"Invalid queue found in link\");\n+\n+\trc = rte_event_dev_start(TEST_DEV_ID);\n+\tTEST_ASSERT_SUCCESS(rc, \"Failed to start event device\");\n+\n+\tev.event_type = RTE_EVENT_TYPE_CPU;\n+\tev.queue_id = 0;\n+\tev.op = RTE_EVENT_OP_NEW;\n+\tev.flow_id = 0;\n+\tev.u64 = 0xBADF00D0;\n+\trc = rte_event_enqueue_burst(TEST_DEV_ID, 0, &ev, 1);\n+\tTEST_ASSERT(rc == 1, \"Failed to enqueue event\");\n+\tev.queue_id = 1;\n+\tev.flow_id = 1;\n+\trc = rte_event_enqueue_burst(TEST_DEV_ID, 0, &ev, 1);\n+\tTEST_ASSERT(rc == 1, \"Failed to enqueue event\");\n+\n+\tev.event = 0;\n+\tev.u64 = 0;\n+\n+\trc = rte_event_port_profile_switch(TEST_DEV_ID, 0, 1);\n+\tTEST_ASSERT_SUCCESS(rc, \"Failed to change profile\");\n+\n+\tre = MAX_RETRIES;\n+\twhile (re--) {\n+\t\trc = rte_event_dequeue_burst(TEST_DEV_ID, 0, &ev, 1, 0);\n+\t\tprintf(\"rc %d\\n\", rc);\n+\t\tif (rc)\n+\t\t\tbreak;\n+\t}\n+\n+\tTEST_ASSERT(rc == 1, \"Failed to dequeue event from profile 1\");\n+\tTEST_ASSERT(ev.flow_id == 1, \"Incorrect flow identifier from profile 1\");\n+\tTEST_ASSERT(ev.queue_id == 1, \"Incorrect queue identifier from profile 1\");\n+\n+\tre = MAX_RETRIES;\n+\twhile (re--) {\n+\t\trc = rte_event_dequeue_burst(TEST_DEV_ID, 0, &ev, 1, 0);\n+\t\tTEST_ASSERT(rc == 0, \"Unexpected event dequeued from active profile\");\n+\t}\n+\n+\trc = rte_event_port_profile_switch(TEST_DEV_ID, 0, 0);\n+\tTEST_ASSERT_SUCCESS(rc, \"Failed to change profile\");\n+\n+\tre = MAX_RETRIES;\n+\twhile (re--) {\n+\t\trc = rte_event_dequeue_burst(TEST_DEV_ID, 0, &ev, 1, 0);\n+\t\tif (rc)\n+\t\t\tbreak;\n+\t}\n+\n+\tTEST_ASSERT(rc == 1, \"Failed to dequeue event from profile 1\");\n+\tTEST_ASSERT(ev.flow_id == 0, \"Incorrect flow identifier from profile 0\");\n+\tTEST_ASSERT(ev.queue_id == 0, \"Incorrect queue identifier from profile 0\");\n+\n+\tre = MAX_RETRIES;\n+\twhile (re--) {\n+\t\trc = rte_event_dequeue_burst(TEST_DEV_ID, 0, &ev, 1, 0);\n+\t\tTEST_ASSERT(rc == 0, \"Unexpected event dequeued from active profile\");\n+\t}\n+\n+\tq = 0;\n+\trc = rte_event_port_profile_unlink(TEST_DEV_ID, 0, &q, 1, 0);\n+\tTEST_ASSERT(rc == 1, \"Failed to unlink queue 0 to port 0 with profile 0\");\n+\tq = 1;\n+\trc = rte_event_port_profile_unlink(TEST_DEV_ID, 0, &q, 1, 1);\n+\tTEST_ASSERT(rc == 1, \"Failed to unlink queue 1 to port 0 with profile 1\");\n+\n+\treturn TEST_SUCCESS;\n+}\n+\n static int\n test_eventdev_close(void)\n {\n@@ -1187,6 +1302,8 @@ static struct unit_test_suite eventdev_common_testsuite  = {\n \t\t\ttest_eventdev_timeout_ticks),\n \t\tTEST_CASE_ST(NULL, NULL,\n \t\t\ttest_eventdev_start_stop),\n+\t\tTEST_CASE_ST(eventdev_configure_setup, eventdev_stop_device,\n+\t\t\ttest_eventdev_profile_switch),\n \t\tTEST_CASE_ST(eventdev_setup_device, eventdev_stop_device,\n \t\t\ttest_eventdev_link),\n \t\tTEST_CASE_ST(eventdev_setup_device, eventdev_stop_device,\n",
    "prefixes": [
        "v5",
        "3/3"
    ]
}