get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 121942,
    "url": "https://patches.dpdk.org/api/patches/121942/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230112163035.1970151-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": "<20230112163035.1970151-2-s.v.naga.harish.k@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230112163035.1970151-2-s.v.naga.harish.k@intel.com",
    "date": "2023-01-12T16:30:33",
    "name": "[v7,2/4] eventdev/eth_tx: change eventdev reconfig logic",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "9f7a822f194085b5445c6a17ee6e6a95d717a7f5",
    "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/20230112163035.1970151-2-s.v.naga.harish.k@intel.com/mbox/",
    "series": [
        {
            "id": 26511,
            "url": "https://patches.dpdk.org/api/series/26511/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=26511",
            "date": "2023-01-12T16:30:32",
            "name": "[v7,1/4] eventdev/eth_rx: change eventdev reconfig logic",
            "version": 7,
            "mbox": "https://patches.dpdk.org/series/26511/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/121942/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/121942/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 369DD423B8;\n\tThu, 12 Jan 2023 17:30:48 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id DD67E42D91;\n\tThu, 12 Jan 2023 17:30:44 +0100 (CET)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by mails.dpdk.org (Postfix) with ESMTP id 7A5E742D81\n for <dev@dpdk.org>; Thu, 12 Jan 2023 17:30:42 +0100 (CET)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 12 Jan 2023 08:30:42 -0800",
            "from txandevlnx322.an.intel.com ([10.123.117.44])\n by fmsmga008.fm.intel.com with ESMTP; 12 Jan 2023 08:30:41 -0800"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1673541042; x=1705077042;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=6YWu9MvaPoeXZulDs2X1wNm2iM5Uih+YEVaau8Ej+rE=;\n b=TLW2Wd5kZqyM6iHAarLCHzprz+7vCD0PQP/hLklPznozIMtAdL5zi0G8\n PGz8qYDCBZxfbFL6S0IG2GL8YKTQ6fOYZBJ8vZFk2OltwbETjhg5TisXA\n A3Al0Pth+zT2JL9tBNUNk2YN7LVK+K30N+/mVRHcNpR4lQQ/RbNNavitD\n xbmRk3aclOAKUxtlveyOkcRGFfqyJYlwKXyHGCgu5YrAobatsEHkx0vHN\n ebUtpJz7wkTYexInw30H++aKIM0PpbBOeDg+vHMwlE59CkCAUa//lh5d/\n DiJbL+Re68sAHYVKk8smHsvaH+wkti6OTOXtrVCKgUhg1QKjCQSnYKbhw g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10588\"; a=\"307298262\"",
            "E=Sophos;i=\"5.97,211,1669104000\"; d=\"scan'208\";a=\"307298262\"",
            "E=McAfee;i=\"6500,9779,10588\"; a=\"721151289\"",
            "E=Sophos;i=\"5.97,211,1669104000\"; d=\"scan'208\";a=\"721151289\""
        ],
        "X-ExtLoop1": "1",
        "From": "Naga Harish K S V <s.v.naga.harish.k@intel.com>",
        "To": "jerinj@marvell.com, erik.g.carrillo@intel.com, abhinandan.gujjar@intel.com",
        "Cc": "dev@dpdk.org,\n\tjay.jayatheerthan@intel.com",
        "Subject": "[PATCH v7 2/4] eventdev/eth_tx: change eventdev reconfig logic",
        "Date": "Thu, 12 Jan 2023 10:30:33 -0600",
        "Message-Id": "<20230112163035.1970151-2-s.v.naga.harish.k@intel.com>",
        "X-Mailer": "git-send-email 2.23.0",
        "In-Reply-To": "<20230112163035.1970151-1-s.v.naga.harish.k@intel.com>",
        "References": "<20230104064145.2600261-1-s.v.naga.harish.k@intel.com>\n <20230112163035.1970151-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": "When rte_event_eth_tx_adapter_create() is used for creating adapter\ninstance, eventdev is reconfigured with additional\n``rte_event_dev_config::nb_event_ports`` parameter.\n\nThis eventdev reconfig logic is enhanced to increment the\n``rte_event_dev_config::nb_single_link_event_port_queues``\nparameter if the adapter event port config is of type\n``RTE_EVENT_PORT_CFG_SINGLE_LINK``.\n\nWith this change the application is no longer need to configure the\neventdev with ``rte_event_dev_config::nb_single_link_event_port_queues``\nparameter required for eth_tx adapter when the adapter is created\nusing above mentioned api.\n\nSigned-off-by: Naga Harish K S V <s.v.naga.harish.k@intel.com>\nAcked-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>\n---\nv2:\n* fix build error in doc/prog_guide\nv3:\n* update doxygen\nv5:\n* update doxygen as per review comments\nv6:\n* no update in txa\n---\n---\n .../prog_guide/event_ethernet_tx_adapter.rst    | 17 +++++++++++++++++\n lib/eventdev/rte_event_eth_tx_adapter.c         |  2 ++\n lib/eventdev/rte_event_eth_tx_adapter.h         | 14 ++++++++++++++\n 3 files changed, 33 insertions(+)",
    "diff": "diff --git a/doc/guides/prog_guide/event_ethernet_tx_adapter.rst b/doc/guides/prog_guide/event_ethernet_tx_adapter.rst\nindex 905cb445e0..711ecb7441 100644\n--- a/doc/guides/prog_guide/event_ethernet_tx_adapter.rst\n+++ b/doc/guides/prog_guide/event_ethernet_tx_adapter.rst\n@@ -56,6 +56,23 @@ and needs to create an event port for it. The callback is expected to fill the\n \n         err = rte_event_eth_tx_adapter_create(id, dev_id, &tx_p_conf);\n \n+Event device configuration for service based adapter\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+When rte_event_eth_tx_adapter_create() is used for creating\n+adapter instance, ``rte_event_dev_config::nb_event_ports`` is\n+automatically incremented, and the event device is reconfigured with additional\n+event port during service initialization. This event device reconfigure logic\n+also increments the ``rte_event_dev_config::nb_single_link_event_port_queues``\n+parameter if the adapter event port config is of type\n+``RTE_EVENT_PORT_CFG_SINGLE_LINK``.\n+\n+Application no longer needs to configure the event device with\n+``rte_event_dev_config::nb_event_ports`` and\n+``rte_event_dev_config::nb_single_link_event_port_queues``\n+parameters required for eth Tx adapter when the adapter is created\n+using the above-mentioned API.\n+\n Adding Tx Queues to the Adapter Instance\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n \ndiff --git a/lib/eventdev/rte_event_eth_tx_adapter.c b/lib/eventdev/rte_event_eth_tx_adapter.c\nindex 88309d2aaa..c780ee1264 100644\n--- a/lib/eventdev/rte_event_eth_tx_adapter.c\n+++ b/lib/eventdev/rte_event_eth_tx_adapter.c\n@@ -316,6 +316,8 @@ txa_service_conf_cb(uint8_t __rte_unused id, uint8_t dev_id,\n \n \tport_id = dev_conf.nb_event_ports;\n \tdev_conf.nb_event_ports += 1;\n+\tif (pc->event_port_cfg & RTE_EVENT_PORT_CFG_SINGLE_LINK)\n+\t\tdev_conf.nb_single_link_event_port_queues += 1;\n \n \tret = rte_event_dev_configure(dev_id, &dev_conf);\n \tif (ret) {\ndiff --git a/lib/eventdev/rte_event_eth_tx_adapter.h b/lib/eventdev/rte_event_eth_tx_adapter.h\nindex 645b87b78a..cd539af7ef 100644\n--- a/lib/eventdev/rte_event_eth_tx_adapter.h\n+++ b/lib/eventdev/rte_event_eth_tx_adapter.h\n@@ -142,6 +142,20 @@ struct rte_event_eth_tx_adapter_stats {\n /**\n  * Create a new ethernet Tx adapter with the specified identifier.\n  *\n+ * When this API is used for creating adapter instance,\n+ * ``rte_event_dev_config::nb_event_ports`` is automatically incremented,\n+ * and event device is reconfigured with additional event port during service\n+ * initialization. This event device reconfigure logic also increments the\n+ * ``rte_event_dev_config::nb_single_link_event_port_queues``\n+ * parameter if the adapter event port config is of type\n+ * ``RTE_EVENT_PORT_CFG_SINGLE_LINK``.\n+ *\n+ * Application no longer needs to account for the\n+ * ``rte_event_dev_config::nb_event_ports`` and\n+ * ``rte_event_dev_config::nb_single_link_event_port_queues``\n+ * parameters required for eth Tx adapter in event device configure when\n+ * the adapter is created with this API.\n+ *\n  * @param id\n  *  The identifier of the ethernet Tx adapter.\n  * @param dev_id\n",
    "prefixes": [
        "v7",
        "2/4"
    ]
}