Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/134915/?format=api
http://patches.dpdk.org/api/patches/134915/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231207130216.140-4-anoobj@marvell.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": "<20231207130216.140-4-anoobj@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20231207130216.140-4-anoobj@marvell.com", "date": "2023-12-07T13:02:05", "name": "[03/14] test/crypto: move algorithm display routines to common", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "b051735230ef6ec7e3500b2ac294d0fd19b38cdb", "submitter": { "id": 1205, "url": "http://patches.dpdk.org/api/people/1205/?format=api", "name": "Anoob Joseph", "email": "anoobj@marvell.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/20231207130216.140-4-anoobj@marvell.com/mbox/", "series": [ { "id": 30476, "url": "http://patches.dpdk.org/api/series/30476/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30476", "date": "2023-12-07T13:02:02", "name": "Add TLS record test suite", "version": 1, "mbox": "http://patches.dpdk.org/series/30476/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/134915/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/134915/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 BAB2243699;\n\tThu, 7 Dec 2023 14:02:51 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3C57542F01;\n\tThu, 7 Dec 2023 14:02:34 +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 89E3442EF9\n for <dev@dpdk.org>; Thu, 7 Dec 2023 14:02:33 +0100 (CET)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 3B79PGlY032068; Thu, 7 Dec 2023 05:02:33 -0800", "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3uubdd8n4q-2\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 07 Dec 2023 05:02:32 -0800", "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Thu, 7 Dec 2023 05:02:29 -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.48 via Frontend\n Transport; Thu, 7 Dec 2023 05:02:29 -0800", "from BG-LT92004.corp.innovium.com (unknown [10.28.163.189])\n by maili.marvell.com (Postfix) with ESMTP id C9A153F7051;\n Thu, 7 Dec 2023 05:02:26 -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=52v5upLckfw4zt114makwr30nXDC5nm94Zen5ja3mCk=;\n b=Z1L8v7ROJeIA5N3AQcJ9LzN5oW3WntlJe22TZP2GALFuqPEh3AMKW8BlVSDC5/+HbEMW\n V3DZYCNINMK8LAXkBEB+nLkOqLeYrJSLxmZOMrI5TRYog/Y88Xy9hUFvQsLxPbwze2Q1\n xr8NNZRUADY+1cckM2AlGyyMpJDOXOodA1sXOFkbodIytOGoXq2CABdKAXUkOWzOIjrN\n HIVQA90+YZIlXD2vMwTOoJ/Lxz9ZWtvUh0QgXppD7jGnhsCxCs6T5YWlfj00fMNKm+2+\n MOKLKzItHdPoQmTfLMf3xIjRaAPe1jR/jjOn8iVhXKjmT2mMrsfqC/c7xcYkDD1f7xJG nA==", "From": "Anoob Joseph <anoobj@marvell.com>", "To": "Akhil Goyal <gakhil@marvell.com>, Jerin Jacob <jerinj@marvell.com>", "CC": "Harry van Haaren <harry.van.haaren@intel.com>, Hemant Agrawal\n <hemant.agrawal@nxp.com>, Konstantin Ananyev\n <konstantin.v.ananyev@yandex.ru>, <dev@dpdk.org>, Vidya Sagar Velumuri\n <vvelumuri@marvell.com>", "Subject": "[PATCH 03/14] test/crypto: move algorithm display routines to common", "Date": "Thu, 7 Dec 2023 18:32:05 +0530", "Message-ID": "<20231207130216.140-4-anoobj@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20231207130216.140-1-anoobj@marvell.com>", "References": "<20231207130216.140-1-anoobj@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-ORIG-GUID": "BgCBLV1RriMTyiMDV_7Hv66RL-ibnCrJ", "X-Proofpoint-GUID": "BgCBLV1RriMTyiMDV_7Hv66RL-ibnCrJ", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2023-12-07_10,2023-12-07_01,2023-05-22_02", "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": "The functions that are used for printing algorithms in case of IPsec can\nbe moved to the common header, test_security_proto.h. The same could be\nused for other security protocol testing.\n\nSigned-off-by: Anoob Joseph <anoobj@marvell.com>\nSigned-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>\n---\n app/test-security-perf/test_security_perf.c | 3 +--\n app/test/test_cryptodev.c | 6 ++---\n app/test/test_cryptodev_security_ipsec.c | 26 ---------------------\n app/test/test_cryptodev_security_ipsec.h | 3 ---\n app/test/test_security_inline_proto.c | 9 +++----\n app/test/test_security_proto.c | 25 ++++++++++++++++++++\n app/test/test_security_proto.h | 2 ++\n 7 files changed, 33 insertions(+), 41 deletions(-)", "diff": "diff --git a/app/test-security-perf/test_security_perf.c b/app/test-security-perf/test_security_perf.c\nindex c64f20e76c..84726de7b0 100644\n--- a/app/test-security-perf/test_security_perf.c\n+++ b/app/test-security-perf/test_security_perf.c\n@@ -532,8 +532,7 @@ main(int argc, char **argv)\n \tfor (ctx.td_idx = 0; ctx.td_idx < RTE_DIM(alg_list); ctx.td_idx++) {\n \n \t\tprintf(\"\\n\\n Algorithm combination:\");\n-\t\ttest_ipsec_display_alg(alg_list[ctx.td_idx].param1,\n-\t\t\t\t alg_list[ctx.td_idx].param2);\n+\t\ttest_sec_alg_display(alg_list[ctx.td_idx].param1, alg_list[ctx.td_idx].param2);\n \t\tprintf(\" ----------------------\");\n \n \t\tprintf(\"\\n%20s%20s%20s%20s%20s%20s\\n\\n\",\ndiff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c\nindex 9644566acc..218761f0a9 100644\n--- a/app/test/test_cryptodev.c\n+++ b/app/test/test_cryptodev.c\n@@ -10540,8 +10540,7 @@ test_ipsec_proto_all(const struct ipsec_test_flags *flags)\n \t\t\treturn TEST_FAILED;\n \n \t\tif (flags->display_alg)\n-\t\t\ttest_ipsec_display_alg(alg_list[i].param1,\n-\t\t\t\t\t alg_list[i].param2);\n+\t\t\ttest_sec_alg_display(alg_list[i].param1, alg_list[i].param2);\n \n \t\tpass_cnt++;\n \t}\n@@ -10586,8 +10585,7 @@ test_ipsec_ah_proto_all(const struct ipsec_test_flags *flags)\n \t\t\treturn TEST_FAILED;\n \n \t\tif (flags->display_alg)\n-\t\t\ttest_ipsec_display_alg(ah_alg_list[i].param1,\n-\t\t\t\t\t ah_alg_list[i].param2);\n+\t\t\ttest_sec_alg_display(ah_alg_list[i].param1, ah_alg_list[i].param2);\n \n \t\tpass_cnt++;\n \t}\ndiff --git a/app/test/test_cryptodev_security_ipsec.c b/app/test/test_cryptodev_security_ipsec.c\nindex 01e0a45ffd..dafe3244e8 100644\n--- a/app/test/test_cryptodev_security_ipsec.c\n+++ b/app/test/test_cryptodev_security_ipsec.c\n@@ -549,32 +549,6 @@ test_ipsec_td_update(struct ipsec_test_data td_inb[],\n \t}\n }\n \n-void\n-test_ipsec_display_alg(const struct crypto_param *param1,\n-\t\t const struct crypto_param *param2)\n-{\n-\tif (param1->type == RTE_CRYPTO_SYM_XFORM_AEAD) {\n-\t\tprintf(\"\\t%s [%d]\",\n-\t\t rte_cryptodev_get_aead_algo_string(param1->alg.aead),\n-\t\t param1->key_length * 8);\n-\t} else if (param1->type == RTE_CRYPTO_SYM_XFORM_AUTH) {\n-\t\tprintf(\"\\t%s\",\n-\t\t rte_cryptodev_get_auth_algo_string(param1->alg.auth));\n-\t\tif (param1->alg.auth != RTE_CRYPTO_AUTH_NULL)\n-\t\t\tprintf(\" [%dB ICV]\", param1->digest_length);\n-\t} else {\n-\t\tprintf(\"\\t%s\",\n-\t\t rte_cryptodev_get_cipher_algo_string(param1->alg.cipher));\n-\t\tif (param1->alg.cipher != RTE_CRYPTO_CIPHER_NULL)\n-\t\t\tprintf(\" [%d]\", param1->key_length * 8);\n-\t\tprintf(\" %s\",\n-\t\t rte_cryptodev_get_auth_algo_string(param2->alg.auth));\n-\t\tif (param2->alg.auth != RTE_CRYPTO_AUTH_NULL)\n-\t\t\tprintf(\" [%dB ICV]\", param2->digest_length);\n-\t}\n-\tprintf(\"\\n\");\n-}\n-\n static int\n test_ipsec_tunnel_hdr_len_get(const struct ipsec_test_data *td)\n {\ndiff --git a/app/test/test_cryptodev_security_ipsec.h b/app/test/test_cryptodev_security_ipsec.h\nindex 77cb5fa7f9..41aa865a0f 100644\n--- a/app/test/test_cryptodev_security_ipsec.h\n+++ b/app/test/test_cryptodev_security_ipsec.h\n@@ -155,9 +155,6 @@ void test_ipsec_td_update(struct ipsec_test_data td_inb[],\n \t\t\t int nb_td,\n \t\t\t const struct ipsec_test_flags *flags);\n \n-void test_ipsec_display_alg(const struct crypto_param *param1,\n-\t\t\t const struct crypto_param *param2);\n-\n int test_ipsec_post_process(const struct rte_mbuf *m,\n \t\t\t const struct ipsec_test_data *td,\n \t\t\t struct ipsec_test_data *res_d, bool silent,\ndiff --git a/app/test/test_security_inline_proto.c b/app/test/test_security_inline_proto.c\nindex 9644a3c39c..6cda9fe7aa 100644\n--- a/app/test/test_security_inline_proto.c\n+++ b/app/test/test_security_inline_proto.c\n@@ -1345,8 +1345,7 @@ test_ipsec_inline_proto_all(const struct ipsec_test_flags *flags)\n \n \t\tif (ret == TEST_FAILED) {\n \t\t\tprintf(\"\\n TEST FAILED\");\n-\t\t\ttest_ipsec_display_alg(alg_list[i].param1,\n-\t\t\t\t\t alg_list[i].param2);\n+\t\t\ttest_sec_alg_display(alg_list[i].param1, alg_list[i].param2);\n \t\t\tfail_cnt++;\n \t\t\tcontinue;\n \t\t}\n@@ -1360,15 +1359,13 @@ test_ipsec_inline_proto_all(const struct ipsec_test_flags *flags)\n \n \t\tif (ret == TEST_FAILED) {\n \t\t\tprintf(\"\\n TEST FAILED\");\n-\t\t\ttest_ipsec_display_alg(alg_list[i].param1,\n-\t\t\t\t\t alg_list[i].param2);\n+\t\t\ttest_sec_alg_display(alg_list[i].param1, alg_list[i].param2);\n \t\t\tfail_cnt++;\n \t\t\tcontinue;\n \t\t}\n \n \t\tif (flags->display_alg)\n-\t\t\ttest_ipsec_display_alg(alg_list[i].param1,\n-\t\t\t\t\t alg_list[i].param2);\n+\t\t\ttest_sec_alg_display(alg_list[i].param1, alg_list[i].param2);\n \n \t\tpass_cnt++;\n \t}\ndiff --git a/app/test/test_security_proto.c b/app/test/test_security_proto.c\nindex bc4c5e11d2..d62302a8dd 100644\n--- a/app/test/test_security_proto.c\n+++ b/app/test/test_security_proto.c\n@@ -81,3 +81,28 @@ test_sec_crypto_caps_auth_verify(const struct rte_security_capability *sec_cap,\n \n \treturn -ENOTSUP;\n }\n+\n+void\n+test_sec_alg_display(const struct crypto_param *param1, const struct crypto_param *param2)\n+{\n+\tif (param1->type == RTE_CRYPTO_SYM_XFORM_AEAD) {\n+\t\tprintf(\"\\t%s [%d]\",\n+\t\t rte_cryptodev_get_aead_algo_string(param1->alg.aead),\n+\t\t param1->key_length * 8);\n+\t} else if (param1->type == RTE_CRYPTO_SYM_XFORM_AUTH) {\n+\t\tprintf(\"\\t%s\",\n+\t\t rte_cryptodev_get_auth_algo_string(param1->alg.auth));\n+\t\tif (param1->alg.auth != RTE_CRYPTO_AUTH_NULL)\n+\t\t\tprintf(\" [%dB ICV]\", param1->digest_length);\n+\t} else {\n+\t\tprintf(\"\\t%s\",\n+\t\t rte_cryptodev_get_cipher_algo_string(param1->alg.cipher));\n+\t\tif (param1->alg.cipher != RTE_CRYPTO_CIPHER_NULL)\n+\t\t\tprintf(\" [%d]\", param1->key_length * 8);\n+\t\tprintf(\" %s\",\n+\t\t rte_cryptodev_get_auth_algo_string(param2->alg.auth));\n+\t\tif (param2->alg.auth != RTE_CRYPTO_AUTH_NULL)\n+\t\t\tprintf(\" [%dB ICV]\", param2->digest_length);\n+\t}\n+\tprintf(\"\\n\");\n+}\ndiff --git a/app/test/test_security_proto.h b/app/test/test_security_proto.h\nindex e8d6193530..596402fff9 100644\n--- a/app/test/test_security_proto.h\n+++ b/app/test/test_security_proto.h\n@@ -141,4 +141,6 @@ int test_sec_crypto_caps_cipher_verify(const struct rte_security_capability *sec\n int test_sec_crypto_caps_auth_verify(const struct rte_security_capability *sec_cap,\n \t\tstruct rte_crypto_sym_xform *auth);\n \n+void test_sec_alg_display(const struct crypto_param *param1, const struct crypto_param *param2);\n+\n #endif\n", "prefixes": [ "03/14" ] }{ "id": 134915, "url": "