Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/100680/?format=api
http://patches.dpdk.org/api/patches/100680/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211007093315.17384-2-nipun.gupta@nxp.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": "<20211007093315.17384-2-nipun.gupta@nxp.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20211007093315.17384-2-nipun.gupta@nxp.com", "date": "2021-10-07T09:33:08", "name": "[v9,1/8] bbdev: add device info related to data endianness assumption", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "1f99d61b47a9a03d6cdf5d28794df2b159978523", "submitter": { "id": 471, "url": "http://patches.dpdk.org/api/people/471/?format=api", "name": "Nipun Gupta", "email": "nipun.gupta@nxp.com" }, "delegate": { "id": 6690, "url": "http://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20211007093315.17384-2-nipun.gupta@nxp.com/mbox/", "series": [ { "id": 19424, "url": "http://patches.dpdk.org/api/series/19424/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19424", "date": "2021-10-07T09:33:07", "name": "baseband: add NXP LA12xx driver", "version": 9, "mbox": "http://patches.dpdk.org/series/19424/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/100680/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/100680/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 005E4A0C47;\n\tThu, 7 Oct 2021 11:33:24 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id BEC6C411AD;\n\tThu, 7 Oct 2021 11:33:22 +0200 (CEST)", "from inva021.nxp.com (inva021.nxp.com [92.121.34.21])\n by mails.dpdk.org (Postfix) with ESMTP id C0C414067E\n for <dev@dpdk.org>; Thu, 7 Oct 2021 11:33:18 +0200 (CEST)", "from inva021.nxp.com (localhost [127.0.0.1])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 9A5152013B6;\n Thu, 7 Oct 2021 11:33:18 +0200 (CEST)", "from aprdc01srsp001v.ap-rdc01.nxp.com\n (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16])\n by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 38CB6201075;\n Thu, 7 Oct 2021 11:33:18 +0200 (CEST)", "from lsv03274.swis.in-blr01.nxp.com (lsv03274.swis.in-blr01.nxp.com\n [92.120.147.114])\n by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 4BBFC183AD28;\n Thu, 7 Oct 2021 17:33:17 +0800 (+08)" ], "From": "nipun.gupta@nxp.com", "To": "dev@dpdk.org,\n\tgakhil@marvell.com,\n\tnicolas.chautru@intel.com", "Cc": "david.marchand@redhat.com,\n\themant.agrawal@nxp.com", "Date": "Thu, 7 Oct 2021 15:03:08 +0530", "Message-Id": "<20211007093315.17384-2-nipun.gupta@nxp.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20211007093315.17384-1-nipun.gupta@nxp.com>", "References": "<20210318063421.14895-1-hemant.agrawal@nxp.com>\n <20211007093315.17384-1-nipun.gupta@nxp.com>", "X-Virus-Scanned": "ClamAV using ClamSMTP", "Subject": "[dpdk-dev] [PATCH v9 1/8] bbdev: add device info related to data\n endianness assumption", "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: Nicolas Chautru <nicolas.chautru@intel.com>\n\nAdding device information to capture explicitly the assumption\nof the input/output data byte endianness being processed.\n\nSigned-off-by: Nicolas Chautru <nicolas.chautru@intel.com>\n---\n doc/guides/rel_notes/release_21_11.rst | 1 +\n drivers/baseband/acc100/rte_acc100_pmd.c | 1 +\n drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c | 1 +\n drivers/baseband/fpga_lte_fec/fpga_lte_fec.c | 1 +\n drivers/baseband/turbo_sw/bbdev_turbo_software.c | 1 +\n lib/bbdev/rte_bbdev.h | 8 ++++++++\n 6 files changed, 13 insertions(+)", "diff": "diff --git a/doc/guides/rel_notes/release_21_11.rst b/doc/guides/rel_notes/release_21_11.rst\nindex dfc2cbdeed..a991f01bf3 100644\n--- a/doc/guides/rel_notes/release_21_11.rst\n+++ b/doc/guides/rel_notes/release_21_11.rst\n@@ -187,6 +187,7 @@ API Changes\n the crypto/security operation. This field will be used to communicate\n events such as soft expiry with IPsec in lookaside mode.\n \n+* bbdev: Added device info related to data byte endianness processing assumption.\n \n ABI Changes\n -----------\ndiff --git a/drivers/baseband/acc100/rte_acc100_pmd.c b/drivers/baseband/acc100/rte_acc100_pmd.c\nindex 68ba523ea9..5c3901c9ca 100644\n--- a/drivers/baseband/acc100/rte_acc100_pmd.c\n+++ b/drivers/baseband/acc100/rte_acc100_pmd.c\n@@ -1088,6 +1088,7 @@ acc100_dev_info_get(struct rte_bbdev *dev,\n #else\n \tdev_info->harq_buffer_size = 0;\n #endif\n+\tdev_info->data_endianness = RTE_BBDEV_LITTLE_ENDIAN;\n \tacc100_check_ir(d);\n }\n \ndiff --git a/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c b/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c\nindex 6485cc824a..c7f15c0bfc 100644\n--- a/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c\n+++ b/drivers/baseband/fpga_5gnr_fec/rte_fpga_5gnr_fec.c\n@@ -372,6 +372,7 @@ fpga_dev_info_get(struct rte_bbdev *dev,\n \tdev_info->default_queue_conf = default_queue_conf;\n \tdev_info->capabilities = bbdev_capabilities;\n \tdev_info->cpu_flag_reqs = NULL;\n+\tdev_info->data_endianness = RTE_BBDEV_LITTLE_ENDIAN;\n \n \t/* Calculates number of queues assigned to device */\n \tdev_info->max_num_queues = 0;\ndiff --git a/drivers/baseband/fpga_lte_fec/fpga_lte_fec.c b/drivers/baseband/fpga_lte_fec/fpga_lte_fec.c\nindex 350c4248eb..72e213ed9a 100644\n--- a/drivers/baseband/fpga_lte_fec/fpga_lte_fec.c\n+++ b/drivers/baseband/fpga_lte_fec/fpga_lte_fec.c\n@@ -644,6 +644,7 @@ fpga_dev_info_get(struct rte_bbdev *dev,\n \tdev_info->default_queue_conf = default_queue_conf;\n \tdev_info->capabilities = bbdev_capabilities;\n \tdev_info->cpu_flag_reqs = NULL;\n+\tdev_info->data_endianness = RTE_BBDEV_LITTLE_ENDIAN;\n \n \t/* Calculates number of queues assigned to device */\n \tdev_info->max_num_queues = 0;\ndiff --git a/drivers/baseband/turbo_sw/bbdev_turbo_software.c b/drivers/baseband/turbo_sw/bbdev_turbo_software.c\nindex 77e9a2ecbc..193f701028 100644\n--- a/drivers/baseband/turbo_sw/bbdev_turbo_software.c\n+++ b/drivers/baseband/turbo_sw/bbdev_turbo_software.c\n@@ -251,6 +251,7 @@ info_get(struct rte_bbdev *dev, struct rte_bbdev_driver_info *dev_info)\n \tdev_info->capabilities = bbdev_capabilities;\n \tdev_info->min_alignment = 64;\n \tdev_info->harq_buffer_size = 0;\n+\tdev_info->data_endianness = RTE_BBDEV_LITTLE_ENDIAN;\n \n \trte_bbdev_log_debug(\"got device info from %u\\n\", dev->data->dev_id);\n }\ndiff --git a/lib/bbdev/rte_bbdev.h b/lib/bbdev/rte_bbdev.h\nindex 3ebf62e697..b3f30002cd 100644\n--- a/lib/bbdev/rte_bbdev.h\n+++ b/lib/bbdev/rte_bbdev.h\n@@ -49,6 +49,12 @@ enum rte_bbdev_state {\n \tRTE_BBDEV_INITIALIZED\n };\n \n+/** Definitions of device data byte endianness types */\n+enum rte_bbdev_endianness {\n+\tRTE_BBDEV_BIG_ENDIAN, /**< Data with byte-endianness BE */\n+\tRTE_BBDEV_LITTLE_ENDIAN, /**< Data with byte-endianness LE */\n+};\n+\n /**\n * Get the total number of devices that have been successfully initialised.\n *\n@@ -309,6 +315,8 @@ struct rte_bbdev_driver_info {\n \tuint16_t min_alignment;\n \t/** HARQ memory available in kB */\n \tuint32_t harq_buffer_size;\n+\t/** Byte endianness assumption for input/output data */\n+\tenum rte_bbdev_endianness data_endianness;\n \t/** Default queue configuration used if none is supplied */\n \tstruct rte_bbdev_queue_conf default_queue_conf;\n \t/** Device operation capabilities */\n", "prefixes": [ "v9", "1/8" ] }{ "id": 100680, "url": "