get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 121941,
    "url": "http://patches.dpdk.org/api/patches/121941/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230112163035.1970151-1-s.v.naga.harish.k@intel.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": "<20230112163035.1970151-1-s.v.naga.harish.k@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230112163035.1970151-1-s.v.naga.harish.k@intel.com",
    "date": "2023-01-12T16:30:32",
    "name": "[v7,1/4] eventdev/eth_rx: change eventdev reconfig logic",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "9ebb309e3542fa12496d62b2ad1466c675eb69ad",
    "submitter": {
        "id": 2280,
        "url": "http://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": "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/20230112163035.1970151-1-s.v.naga.harish.k@intel.com/mbox/",
    "series": [
        {
            "id": 26511,
            "url": "http://patches.dpdk.org/api/series/26511/?format=api",
            "web_url": "http://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": "http://patches.dpdk.org/series/26511/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/121941/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/121941/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 A1720423B8;\n\tThu, 12 Jan 2023 17:30:41 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9934642D73;\n\tThu, 12 Jan 2023 17:30:41 +0100 (CET)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n by mails.dpdk.org (Postfix) with ESMTP id 5D8C840FAE\n for <dev@dpdk.org>; Thu, 12 Jan 2023 17:30:40 +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:39 -0800",
            "from txandevlnx322.an.intel.com ([10.123.117.44])\n by fmsmga008.fm.intel.com with ESMTP; 12 Jan 2023 08:30:38 -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=1673541040; x=1705077040;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=QAwTUmNMaBJpC8GCp1X6ALVAXomh75fa6MbXmCv5E0k=;\n b=lNAgq4LnwK1jxSTOMbh3rY2SGz1dz5+30gcHfdnCrH7BBitR/YfGHhex\n ElHntBWTAQ8B814barI2xqT8DEjxXfe2o3JBHapKe3MMIcrk4Pigqf8Ev\n yx+QrNisU3s6w2IQ0h7Bh7B90ynTv8l7h5TqWABXWGYLLLbLRThMDu9CY\n oahRsmYNfbtaAaUeCiDm+K3C3679Obm35HSBUEgeWhgKu+23EkJq4xyN1\n ygUxJjKkawhpZi2A/MFwRYm6YPrjq32grx4U6qUu/FqVtQhjlDA2uyEAh\n UjYK+yrQEVGko+PKBSD5G1Z4B1oasQ7bscg1yiPWtXM8dtylx2c4+ogtE A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6500,9779,10588\"; a=\"307298246\"",
            "E=Sophos;i=\"5.97,211,1669104000\"; d=\"scan'208\";a=\"307298246\"",
            "E=McAfee;i=\"6500,9779,10588\"; a=\"721151280\"",
            "E=Sophos;i=\"5.97,211,1669104000\"; d=\"scan'208\";a=\"721151280\""
        ],
        "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 1/4] eventdev/eth_rx: change eventdev reconfig logic",
        "Date": "Thu, 12 Jan 2023 10:30:32 -0600",
        "Message-Id": "<20230112163035.1970151-1-s.v.naga.harish.k@intel.com>",
        "X-Mailer": "git-send-email 2.23.0",
        "In-Reply-To": "<20230104064145.2600261-1-s.v.naga.harish.k@intel.com>",
        "References": "<20230104064145.2600261-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_rx_adapter_create() or\nrte_event_eth_rx_adapter_create_with_params() is used for creating\nadapter instance, 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 no longer need to configure the\neventdev with ``rte_event_dev_config::nb_single_link_event_port_queues``\nparameter required for eth_rx adapter when the adapter is created\nusing above mentioned apis.\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\nv3:\n* update doxygen\nv5:\n* update doxygen as per review comments\nv6:\n* no update in rxa\n---\n---\n .../prog_guide/event_ethernet_rx_adapter.rst  | 19 +++++++++++++++++++\n lib/eventdev/rte_event_eth_rx_adapter.c       |  3 +++\n lib/eventdev/rte_event_eth_rx_adapter.h       | 14 ++++++++++++++\n 3 files changed, 36 insertions(+)",
    "diff": "diff --git a/doc/guides/prog_guide/event_ethernet_rx_adapter.rst b/doc/guides/prog_guide/event_ethernet_rx_adapter.rst\nindex 116c0a27c6..bbe278f7db 100644\n--- a/doc/guides/prog_guide/event_ethernet_rx_adapter.rst\n+++ b/doc/guides/prog_guide/event_ethernet_rx_adapter.rst\n@@ -71,6 +71,25 @@ set to true. The function is passed the event device to be associated with\n the adapter and port configuration for the adapter to setup an event port\n if the adapter needs to use a service function.\n \n+Event device configuration for service based adapter\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+When rte_event_eth_rx_adapter_create() or\n+rte_event_eth_rx_adapter_create_with_params() 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\n+the additional event port during service initialization. This event\n+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 Rx adapter in the event device configuration,\n+when the adapter is created using the above-mentioned APIs.\n+\n Adding Rx Queues to the Adapter Instance\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n \ndiff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/lib/eventdev/rte_event_eth_rx_adapter.c\nindex cf7bbd4d69..34aa87379e 100644\n--- a/lib/eventdev/rte_event_eth_rx_adapter.c\n+++ b/lib/eventdev/rte_event_eth_rx_adapter.c\n@@ -1532,6 +1532,9 @@ rxa_default_conf_cb(uint8_t id, uint8_t dev_id,\n \t\trte_event_dev_stop(dev_id);\n \tport_id = dev_conf.nb_event_ports;\n \tdev_conf.nb_event_ports += 1;\n+\tif (port_conf->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) {\n \t\tRTE_EDEV_LOG_ERR(\"failed to configure event dev %u\\n\",\ndiff --git a/lib/eventdev/rte_event_eth_rx_adapter.h b/lib/eventdev/rte_event_eth_rx_adapter.h\nindex d0e7d0092c..f4652f40e8 100644\n--- a/lib/eventdev/rte_event_eth_rx_adapter.h\n+++ b/lib/eventdev/rte_event_eth_rx_adapter.h\n@@ -382,6 +382,20 @@ int rte_event_eth_rx_adapter_create_ext(uint8_t id, uint8_t dev_id,\n  * control in configuration of the service, it should use the\n  * rte_event_eth_rx_adapter_create_ext() version.\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\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 Rx adapter in the event device configuration\n+ * when the adapter is created with this API.\n+ *\n  * @param id\n  *  The identifier of the ethernet Rx event adapter.\n  *\n",
    "prefixes": [
        "v7",
        "1/4"
    ]
}