get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 116099,
    "url": "https://patches.dpdk.org/api/patches/116099/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220908171242.3804375-2-s.v.naga.harish.k@intel.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": "<20220908171242.3804375-2-s.v.naga.harish.k@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220908171242.3804375-2-s.v.naga.harish.k@intel.com",
    "date": "2022-09-08T17:12:41",
    "name": "[2/3] test/eth_tx: add testcase for queue start stop APIs",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "531bb31276ee2b336effa0a189d3967e4caeff7f",
    "submitter": {
        "id": 2280,
        "url": "https://patches.dpdk.org/api/people/2280/?format=api",
        "name": "Naga Harish K, S V",
        "email": "s.v.naga.harish.k@intel.com"
    },
    "delegate": {
        "id": 310,
        "url": "https://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220908171242.3804375-2-s.v.naga.harish.k@intel.com/mbox/",
    "series": [
        {
            "id": 24610,
            "url": "https://patches.dpdk.org/api/series/24610/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=24610",
            "date": "2022-09-08T17:12:40",
            "name": "[1/3] eventdev/eth_tx: add queue start stop API",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/24610/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/116099/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/116099/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 10E4FA0548;\n\tThu,  8 Sep 2022 19:12:54 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C230C427EA;\n\tThu,  8 Sep 2022 19:12:50 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id AF19B4021F\n for <dev@dpdk.org>; Thu,  8 Sep 2022 19:12:48 +0200 (CEST)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 08 Sep 2022 10:12:48 -0700",
            "from txandevlnx322.an.intel.com ([10.123.117.44])\n by fmsmga005.fm.intel.com with ESMTP; 08 Sep 2022 10:12:47 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1662657168; x=1694193168;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=jpPGAJxyJnSEEBcCnmnfuwqxF+dMaaTg6g8Chg213vs=;\n b=IGHhP046QD/nokVjv12/WOOrgf6OgokASknvDzN7ZzwDxsk5Nmzce//f\n /qXns0uoPuWbENC5XTnrliI4+7NSuza6TMjWq2WbYeI996wvA47rkIgp1\n vAQxwr69T5wR2G0geO3F94XzFT4LQ/BEy8B+YCP89o4sdxEx7ItiU+xea\n 9jA43TrSUB1yFMu/lK44GZAGbsLIkXSXzmh06M7L0T3OxEbYqAEseAL6e\n AN2EPhp7mx6iJQJ8z66LTQqpi/SZgNGHbcbl1GkAYqBzFpwTLviUdXyh9\n eocU1/+fhTHL7C1AK20mgmWLdLGpc4XEvkjy+JsXTNsholTHnSV3lQi9t Q==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10464\"; a=\"295999011\"",
            "E=Sophos;i=\"5.93,300,1654585200\"; d=\"scan'208\";a=\"295999011\"",
            "E=Sophos;i=\"5.93,300,1654585200\"; d=\"scan'208\";a=\"943433091\""
        ],
        "X-ExtLoop1": "1",
        "From": "Naga Harish K S V <s.v.naga.harish.k@intel.com>",
        "To": "jay.jayatheerthan@intel.com,\n\tjerinj@marvell.com",
        "Cc": "dev@dpdk.org",
        "Subject": "[PATCH 2/3] test/eth_tx: add testcase for queue start stop APIs",
        "Date": "Thu,  8 Sep 2022 12:12:41 -0500",
        "Message-Id": "<20220908171242.3804375-2-s.v.naga.harish.k@intel.com>",
        "X-Mailer": "git-send-email 2.23.0",
        "In-Reply-To": "<20220908171242.3804375-1-s.v.naga.harish.k@intel.com>",
        "References": "<20220908171242.3804375-1-s.v.naga.harish.k@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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": "Added testcase for rte_event_eth_tx_adapter_queue_start()\nand rte_event_eth_tx_adapter_queue_stop() APIs.\n\nSigned-off-by: Naga Harish K S V <s.v.naga.harish.k@intel.com>\n---\n app/test/test_event_eth_tx_adapter.c | 86 ++++++++++++++++++++++++++++\n 1 file changed, 86 insertions(+)",
    "diff": "diff --git a/app/test/test_event_eth_tx_adapter.c b/app/test/test_event_eth_tx_adapter.c\nindex 98debfdd2c..c19a87a86a 100644\n--- a/app/test/test_event_eth_tx_adapter.c\n+++ b/app/test/test_event_eth_tx_adapter.c\n@@ -711,6 +711,90 @@ tx_adapter_instance_get(void)\n \treturn TEST_SUCCESS;\n }\n \n+static int\n+tx_adapter_queue_start_stop(void)\n+{\n+\tint err;\n+\tuint16_t eth_dev_id;\n+\tstruct rte_eth_dev_info dev_info;\n+\n+\t/* Case 1: Test without adding eth Tx queue */\n+\terr = rte_event_eth_tx_adapter_queue_start(TEST_ETHDEV_ID,\n+\t\t\t\t\t\t    TEST_ETH_QUEUE_ID);\n+\tTEST_ASSERT(err == -EINVAL, \"Expected -EINVAL got %d\", err);\n+\n+\terr = rte_event_eth_tx_adapter_queue_stop(TEST_ETHDEV_ID,\n+\t\t\t\t\t\t    TEST_ETH_QUEUE_ID);\n+\tTEST_ASSERT(err == -EINVAL, \"Expected -EINVAL got %d\", err);\n+\n+\t/* Case 2: Test with wrong eth port */\n+\teth_dev_id = rte_eth_dev_count_total() + 1;\n+\terr = rte_event_eth_tx_adapter_queue_start(eth_dev_id,\n+\t\t\t\t\t\t    TEST_ETH_QUEUE_ID);\n+\tTEST_ASSERT(err == -EINVAL, \"Expected -EINVAL got %d\", err);\n+\n+\terr = rte_event_eth_tx_adapter_queue_stop(eth_dev_id,\n+\t\t\t\t\t\t    TEST_ETH_QUEUE_ID);\n+\tTEST_ASSERT(err == -EINVAL, \"Expected -EINVAL got %d\", err);\n+\n+\t/* Case 3: Test with wrong tx queue */\n+\terr = rte_eth_dev_info_get(TEST_ETHDEV_ID, &dev_info);\n+\tTEST_ASSERT(err == 0, \"Expected 0 got %d\", err);\n+\n+\terr = rte_event_eth_tx_adapter_queue_start(TEST_ETHDEV_ID,\n+\t\t\t\t\t\t    dev_info.max_tx_queues + 1);\n+\tTEST_ASSERT(err == -EINVAL, \"Expected -EINVAL got %d\", err);\n+\n+\terr = rte_event_eth_tx_adapter_queue_stop(TEST_ETHDEV_ID,\n+\t\t\t\t\t\t    dev_info.max_tx_queues + 1);\n+\tTEST_ASSERT(err == -EINVAL, \"Expected -EINVAL got %d\", err);\n+\n+\t/* Case 4: Test with right instance, port & rxq */\n+\t/* Add queue to tx adapter */\n+\terr = rte_event_eth_tx_adapter_queue_add(TEST_INST_ID,\n+\t\t\t\t\t\t TEST_ETHDEV_ID,\n+\t\t\t\t\t\t TEST_ETH_QUEUE_ID);\n+\tTEST_ASSERT(err == 0, \"Expected 0 got %d\", err);\n+\n+\terr = rte_event_eth_tx_adapter_queue_stop(TEST_ETHDEV_ID,\n+\t\t\t\t\t\t    TEST_ETH_QUEUE_ID);\n+\tTEST_ASSERT(err == 0, \"Expected 0 got %d\", err);\n+\n+\terr = rte_event_eth_tx_adapter_queue_start(TEST_ETHDEV_ID,\n+\t\t\t\t\t\t    TEST_ETH_QUEUE_ID);\n+\tTEST_ASSERT(err == 0, \"Expected 0 got %d\", err);\n+\n+\t/* Add another queue to tx adapter */\n+\terr = rte_event_eth_tx_adapter_queue_add(TEST_INST_ID,\n+\t\t\t\t\t\t TEST_ETHDEV_ID,\n+\t\t\t\t\t\t TEST_ETH_QUEUE_ID + 1);\n+\tTEST_ASSERT(err == 0, \"Expected 0 got %d\", err);\n+\n+\terr = rte_event_eth_tx_adapter_queue_stop(TEST_ETHDEV_ID,\n+\t\t\t\t\t\t    TEST_ETH_QUEUE_ID + 1);\n+\tTEST_ASSERT(err == 0, \"Expected 0 got %d\", err);\n+\terr = rte_event_eth_tx_adapter_queue_start(TEST_ETHDEV_ID,\n+\t\t\t\t\t\t    TEST_ETH_QUEUE_ID + 1);\n+\tTEST_ASSERT(err == 0, \"Expected 0 got %d\", err);\n+\n+\t/* Case 5: Test with right instance, port & wrong rxq */\n+\terr = rte_event_eth_tx_adapter_queue_stop(TEST_ETHDEV_ID,\n+\t\t\t\t\t\t    TEST_ETH_QUEUE_ID + 2);\n+\tTEST_ASSERT(err == -EINVAL, \"Expected -EINVAL got %d\", err);\n+\n+\terr = rte_event_eth_tx_adapter_queue_start(TEST_ETHDEV_ID,\n+\t\t\t\t\t\t    TEST_ETH_QUEUE_ID + 2);\n+\tTEST_ASSERT(err == -EINVAL, \"Expected -EINVAL got %d\", err);\n+\n+\t/* Delete all queues from the Tx adapter */\n+\terr = rte_event_eth_tx_adapter_queue_del(TEST_INST_ID,\n+\t\t\t\t\t\t TEST_ETHDEV_ID,\n+\t\t\t\t\t\t -1);\n+\tTEST_ASSERT(err == 0, \"Expected 0 got %d\", err);\n+\n+\treturn TEST_SUCCESS;\n+}\n+\n static int\n tx_adapter_dynamic_device(void)\n {\n@@ -770,6 +854,8 @@ static struct unit_test_suite event_eth_tx_tests = {\n \t\t\t\t\ttx_adapter_service),\n \t\tTEST_CASE_ST(tx_adapter_create, tx_adapter_free,\n \t\t\t\t\ttx_adapter_instance_get),\n+\t\tTEST_CASE_ST(tx_adapter_create, tx_adapter_free,\n+\t\t\t\t\ttx_adapter_queue_start_stop),\n \t\tTEST_CASE_ST(NULL, NULL, tx_adapter_dynamic_device),\n \t\tTEST_CASES_END() /**< NULL terminate unit test array */\n \t}\n",
    "prefixes": [
        "2/3"
    ]
}