Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/124747/?format=api
http://patches.dpdk.org/api/patches/124747/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230302202211.170017-12-hernan.vargas@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": "<20230302202211.170017-12-hernan.vargas@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230302202211.170017-12-hernan.vargas@intel.com", "date": "2023-03-02T20:22:05", "name": "[v3,11/17] test/bbdev: extend support for large TB", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "74afae6a7539bb6aadafb5e74cd10da99f8f40cc", "submitter": { "id": 2659, "url": "http://patches.dpdk.org/api/people/2659/?format=api", "name": "Hernan Vargas", "email": "hernan.vargas@intel.com" }, "delegate": { "id": 2642, "url": "http://patches.dpdk.org/api/users/2642/?format=api", "username": "mcoquelin", "first_name": "Maxime", "last_name": "Coquelin", "email": "maxime.coquelin@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230302202211.170017-12-hernan.vargas@intel.com/mbox/", "series": [ { "id": 27233, "url": "http://patches.dpdk.org/api/series/27233/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27233", "date": "2023-03-02T20:21:54", "name": "test/bbdev: changes for 23.03", "version": 3, "mbox": "http://patches.dpdk.org/series/27233/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/124747/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/124747/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 4F0E341DB8;\n\tThu, 2 Mar 2023 21:23:11 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B013142D4F;\n\tThu, 2 Mar 2023 21:22:10 +0100 (CET)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id A973642D1A\n for <dev@dpdk.org>; Thu, 2 Mar 2023 21:22:04 +0100 (CET)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 02 Mar 2023 12:22:03 -0800", "from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103])\n by orsmga008.jf.intel.com with ESMTP; 02 Mar 2023 12:22:02 -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=1677788524; x=1709324524;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=whh1LOkkIj0aUAz7GiWQQpTvFnHjh4ZmEPKpSwUxOEk=;\n b=J0kupJDawWeZ8EF1OAqFusOlksaYYDAqY5bNclxhuw/VcYpZ8CURwkdB\n C3sPRTOvTY/DQhBgjmPtbogvEaFVD97avgNJkCmsj+jj28qxkDW/BsaPT\n 6lDopmMX9bfAR8Xcwe2D6lDoVwGITWmUcIB7a3anUgvBQbpkcCIMCO/zg\n aOvishPXG9nUKivB7/oeZ0AhXq6ry0c7bD9E2PJglLhdQ8Q26XmqcDhqK\n 3zSMsy3GaWxVNEOFk893PopoqKay+4X47OWmSVKed1dXyw62eWVQ4Yuuv\n m3Lgh6ZkyzTS8bYnmTJORwn0Zmar6nE6UPI+jR9DmbX3Q6udlZrXbrUYt w==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10637\"; a=\"334871213\"", "E=Sophos;i=\"5.98,228,1673942400\"; d=\"scan'208\";a=\"334871213\"", "E=McAfee;i=\"6500,9779,10637\"; a=\"705398124\"", "E=Sophos;i=\"5.98,228,1673942400\"; d=\"scan'208\";a=\"705398124\"" ], "X-ExtLoop1": "1", "From": "Hernan Vargas <hernan.vargas@intel.com>", "To": "dev@dpdk.org, gakhil@marvell.com, trix@redhat.com,\n maxime.coquelin@redhat.com", "Cc": "nicolas.chautru@intel.com, qi.z.zhang@intel.com,\n Hernan Vargas <hernan.vargas@intel.com>", "Subject": "[PATCH v3 11/17] test/bbdev: extend support for large TB", "Date": "Thu, 2 Mar 2023 12:22:05 -0800", "Message-Id": "<20230302202211.170017-12-hernan.vargas@intel.com>", "X-Mailer": "git-send-email 2.37.1", "In-Reply-To": "<20230302202211.170017-1-hernan.vargas@intel.com>", "References": "<20230302202211.170017-1-hernan.vargas@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": "Add support for large TB when it cannot fit into a true mbuf.\n\nSigned-off-by: Hernan Vargas <hernan.vargas@intel.com>\nReviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n app/test-bbdev/test_bbdev_perf.c | 21 ++++++++++++---------\n 1 file changed, 12 insertions(+), 9 deletions(-)", "diff": "diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c\nindex bd8310ac2c56..e611df75763c 100644\n--- a/app/test-bbdev/test_bbdev_perf.c\n+++ b/app/test-bbdev/test_bbdev_perf.c\n@@ -1084,8 +1084,6 @@ init_op_data_objs(struct rte_bbdev_op_data *bufs,\n \t\t\t * Special case when DPDK mbuf cannot handle\n \t\t\t * the required input size\n \t\t\t */\n-\t\t\tprintf(\"Warning: Larger input size than DPDK mbuf %d\\n\",\n-\t\t\t\t\tseg->length);\n \t\t\tlarge_input = true;\n \t\t}\n \t\tbufs[i].data = m_head;\n@@ -2041,6 +2039,7 @@ validate_op_chain(struct rte_bbdev_op_data *op,\n \tstruct rte_mbuf *m = op->data;\n \tuint8_t nb_dst_segments = orig_op->nb_segments;\n \tuint32_t total_data_size = 0;\n+\tbool ignore_mbuf = false; /* ignore mbuf limitations */\n \n \tTEST_ASSERT(nb_dst_segments == m->nb_segs,\n \t\t\t\"Number of segments differ in original (%u) and filled (%u) op\",\n@@ -2053,21 +2052,25 @@ validate_op_chain(struct rte_bbdev_op_data *op,\n \t\tuint16_t data_len = rte_pktmbuf_data_len(m) - offset;\n \t\ttotal_data_size += orig_op->segments[i].length;\n \n-\t\tTEST_ASSERT(orig_op->segments[i].length == data_len,\n-\t\t\t\t\"Length of segment differ in original (%u) and filled (%u) op\",\n-\t\t\t\torig_op->segments[i].length, data_len);\n+\t\tif (orig_op->segments[i].length > RTE_BBDEV_LDPC_E_MAX_MBUF)\n+\t\t\tignore_mbuf = true;\n+\t\tif (!ignore_mbuf)\n+\t\t\tTEST_ASSERT(orig_op->segments[i].length == data_len,\n+\t\t\t\t\t\"Length of segment differ in original (%u) and filled (%u) op\",\n+\t\t\t\t\torig_op->segments[i].length, data_len);\n \t\tTEST_ASSERT_BUFFERS_ARE_EQUAL(orig_op->segments[i].addr,\n \t\t\t\trte_pktmbuf_mtod_offset(m, uint32_t *, offset),\n-\t\t\t\tdata_len,\n+\t\t\t\torig_op->segments[i].length,\n \t\t\t\t\"Output buffers (CB=%u) are not equal\", i);\n \t\tm = m->next;\n \t}\n \n \t/* Validate total mbuf pkt length */\n \tuint32_t pkt_len = rte_pktmbuf_pkt_len(op->data) - op->offset;\n-\tTEST_ASSERT(total_data_size == pkt_len,\n-\t\t\t\"Length of data differ in original (%u) and filled (%u) op\",\n-\t\t\ttotal_data_size, pkt_len);\n+\tif (!ignore_mbuf)\n+\t\tTEST_ASSERT(total_data_size == pkt_len,\n+\t\t\t\t\"Length of data differ in original (%u) and filled (%u) op\",\n+\t\t\t\ttotal_data_size, pkt_len);\n \n \treturn TEST_SUCCESS;\n }\n", "prefixes": [ "v3", "11/17" ] }{ "id": 124747, "url": "