Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/88644/?format=api
https://patches.dpdk.org/api/patches/88644/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210306162942.6845-3-pbhagavatula@marvell.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": "<20210306162942.6845-3-pbhagavatula@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210306162942.6845-3-pbhagavatula@marvell.com", "date": "2021-03-06T16:29:07", "name": "[02/36] event/cnxk: add device capabilities function", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "15d7653b0f62cafeb283d116c2c2dcd5f04d4767", "submitter": { "id": 1183, "url": "https://patches.dpdk.org/api/people/1183/?format=api", "name": "Pavan Nikhilesh Bhagavatula", "email": "pbhagavatula@marvell.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/20210306162942.6845-3-pbhagavatula@marvell.com/mbox/", "series": [ { "id": 15516, "url": "https://patches.dpdk.org/api/series/15516/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=15516", "date": "2021-03-06T16:29:05", "name": "Marvell CNXK Event device Driver", "version": 1, "mbox": "https://patches.dpdk.org/series/15516/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/88644/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/88644/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 CCED5A0548;\n\tSat, 6 Mar 2021 17:30:30 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 10A6122A3E6;\n\tSat, 6 Mar 2021 17:30:23 +0100 (CET)", "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id CF0D822A3BC\n for <dev@dpdk.org>; Sat, 6 Mar 2021 17:30:21 +0100 (CET)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id\n 126GQl5T009191 for <dev@dpdk.org>; Sat, 6 Mar 2021 08:30:20 -0800", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com with ESMTP id 374a4w08n6-5\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Sat, 06 Mar 2021 08:30:20 -0800", "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Sat, 6 Mar 2021 08:30:18 -0800", "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Sat, 6 Mar 2021 08:30:18 -0800", "from BG-LT7430.marvell.com (unknown [10.193.68.121])\n by maili.marvell.com (Postfix) with ESMTP id 43EB13F7040;\n Sat, 6 Mar 2021 08:30:16 -0800 (PST)" ], "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=NbxxOpTETFCLKXnW6jOAfDlAZVoIkYIXyc6b6RDkpTs=;\n b=CaSmOfOa2fa9YlnM5x+N5XFurgSWXpLj+2B3BGQPgSq6gHpmJ+B3R5re6kuRCL4kxaOw\n vQuYUwtEhxbkXbjiKpdNRbr1/NR39ucMGNimvC0OLsRYgB3X4/DMiVLYsQQx2s0dkjfK\n nfjGuMGmdklj51hjlY3A8kVLXEHM4qnCBSF4D0vnAZDwnkcQ2sJDcxMKdZXPUPodO5Ii\n GdFIZv/VB39ZmmXCysaf4durHJe0JXqVqrxX0EjQnE7cu/i6xDQHY4jHymQjxbnuV9JO\n 4LHmzTAqJCc4kwlH+rc9rj5hg5EE5IaWpuRhZvKNYMNeMOXToCroSQ7wGgOyJ8/qLVCI Hg==", "From": "<pbhagavatula@marvell.com>", "To": "<jerinj@marvell.com>, Pavan Nikhilesh <pbhagavatula@marvell.com>, \"Shijith\n Thotton\" <sthotton@marvell.com>", "CC": "<ndabilpuram@marvell.com>, <dev@dpdk.org>", "Date": "Sat, 6 Mar 2021 21:59:07 +0530", "Message-ID": "<20210306162942.6845-3-pbhagavatula@marvell.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20210306162942.6845-1-pbhagavatula@marvell.com>", "References": "<20210306162942.6845-1-pbhagavatula@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.369, 18.0.761\n definitions=2021-03-06_08:2021-03-03,\n 2021-03-06 signatures=0", "Subject": "[dpdk-dev] [PATCH 02/36] event/cnxk: add device capabilities\n function", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "From: Shijith Thotton <sthotton@marvell.com>\n\nAdd the info_get function to return details on the queues, flow,\nprioritization capabilities, etc. which this device has.\n\nSigned-off-by: Shijith Thotton <sthotton@marvell.com>\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\n---\n drivers/event/cnxk/cnxk_eventdev.c | 24 ++++++++++++++++++++++++\n drivers/event/cnxk/cnxk_eventdev.h | 4 ++++\n 2 files changed, 28 insertions(+)", "diff": "diff --git a/drivers/event/cnxk/cnxk_eventdev.c b/drivers/event/cnxk/cnxk_eventdev.c\nindex b7f9c81bd..ae553fd23 100644\n--- a/drivers/event/cnxk/cnxk_eventdev.c\n+++ b/drivers/event/cnxk/cnxk_eventdev.c\n@@ -4,6 +4,30 @@\n \n #include \"cnxk_eventdev.h\"\n \n+void\n+cnxk_sso_info_get(struct cnxk_sso_evdev *dev,\n+\t\t struct rte_event_dev_info *dev_info)\n+{\n+\n+\tdev_info->min_dequeue_timeout_ns = dev->min_dequeue_timeout_ns;\n+\tdev_info->max_dequeue_timeout_ns = dev->max_dequeue_timeout_ns;\n+\tdev_info->max_event_queues = dev->max_event_queues;\n+\tdev_info->max_event_queue_flows = (1ULL << 20);\n+\tdev_info->max_event_queue_priority_levels = 8;\n+\tdev_info->max_event_priority_levels = 1;\n+\tdev_info->max_event_ports = dev->max_event_ports;\n+\tdev_info->max_event_port_dequeue_depth = 1;\n+\tdev_info->max_event_port_enqueue_depth = 1;\n+\tdev_info->max_num_events = dev->max_num_events;\n+\tdev_info->event_dev_cap = RTE_EVENT_DEV_CAP_QUEUE_QOS |\n+\t\t\t\t RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED |\n+\t\t\t\t RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES |\n+\t\t\t\t RTE_EVENT_DEV_CAP_RUNTIME_PORT_LINK |\n+\t\t\t\t RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT |\n+\t\t\t\t RTE_EVENT_DEV_CAP_NONSEQ_MODE |\n+\t\t\t\t RTE_EVENT_DEV_CAP_CARRY_FLOW_ID;\n+}\n+\n int\n cnxk_sso_init(struct rte_eventdev *event_dev)\n {\ndiff --git a/drivers/event/cnxk/cnxk_eventdev.h b/drivers/event/cnxk/cnxk_eventdev.h\nindex 148b327a1..583492948 100644\n--- a/drivers/event/cnxk/cnxk_eventdev.h\n+++ b/drivers/event/cnxk/cnxk_eventdev.h\n@@ -17,6 +17,8 @@\n \n struct cnxk_sso_evdev {\n \tstruct roc_sso sso;\n+\tuint8_t max_event_queues;\n+\tuint8_t max_event_ports;\n \tuint8_t is_timeout_deq;\n \tuint8_t nb_event_queues;\n \tuint8_t nb_event_ports;\n@@ -35,5 +37,7 @@ cnxk_sso_pmd_priv(const struct rte_eventdev *event_dev)\n int cnxk_sso_init(struct rte_eventdev *event_dev);\n int cnxk_sso_fini(struct rte_eventdev *event_dev);\n int cnxk_sso_remove(struct rte_pci_device *pci_dev);\n+void cnxk_sso_info_get(struct cnxk_sso_evdev *dev,\n+\t\t struct rte_event_dev_info *dev_info);\n \n #endif /* __CNXK_EVENTDEV_H__ */\n", "prefixes": [ "02/36" ] }{ "id": 88644, "url": "