From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 77A3DA056D; Thu, 12 Mar 2020 16:17:43 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DF5521C045; Thu, 12 Mar 2020 16:17:15 +0100 (CET) Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id EE2CD1C001 for ; Thu, 12 Mar 2020 16:17:09 +0100 (CET) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200312151708euoutp02ff2293454259cc544614b53f32dc48ed~7l3ZtD4_12975429754euoutp02I for ; Thu, 12 Mar 2020 15:17:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200312151708euoutp02ff2293454259cc544614b53f32dc48ed~7l3ZtD4_12975429754euoutp02I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1584026228; bh=Dy5wj+bFWOyBOc9nwFb+agiIekirpxxYEMo2hAWuZS0=; h=From:To:Subject:Date:References:From; b=Na3gjUjTz395Y0IhPQoMqxz23+G1PqX2EwNXlLo6/jXC00zdQvWwozIQYCHrM6a/X ZIBNK83BNmpQrQ32/yy8b7fmw+EYdMx1RAA3udKIdKBBg46eJ450kz2f9WhRuWPMys iSyiU0F3E/2bhrQYmimx3+QkmZGlOhCKToX6+Jtk= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200312151708eucas1p2ab1e2d5a9e3dec68018a496e33ad8fe6~7l3ZfF79E2377123771eucas1p2x for ; Thu, 12 Mar 2020 15:17:08 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 31.62.61286.4725A6E5; Thu, 12 Mar 2020 15:17:08 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200312151708eucas1p2a80bb2ac0556c7d7efb3aedd83923e52~7l3Y9VC3q1624116241eucas1p2u for ; Thu, 12 Mar 2020 15:17:08 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200312151708eusmtrp2a0a81610bb05459fbbde022c1094f76c~7l3Y81alh1238412384eusmtrp2- for ; Thu, 12 Mar 2020 15:17:08 +0000 (GMT) X-AuditID: cbfec7f2-f0bff7000001ef66-b5-5e6a52745ea9 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 50.2D.07950.3725A6E5; Thu, 12 Mar 2020 15:17:07 +0000 (GMT) Received: from Padamandas.example.org (unknown [106.120.51.19]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200312151707eusmtip1768e098b27dbc3f5e351101b4350afc3~7l3YxDrVn1547515475eusmtip1N for ; Thu, 12 Mar 2020 15:17:07 +0000 (GMT) From: Lukasz Wojciechowski To: dev@dpdk.org Date: Thu, 12 Mar 2020 16:16:41 +0100 Message-Id: <20200312151654.7218-1-l.wojciechow@partner.samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrEIsWRmVeSWpSXmKPExsWy7djPc7olQVlxBgvOKlq8+7SdyYHR49eC pawBjFFcNimpOZllqUX6dglcGbPWXmIt2MJT8WhiO1MD41fOLkZODgkBE4m3698wdzFycQgJ rGCUuLZ+MiuE084k0XUFJtPGJHFyWjsLTMuetZuYIBLLGSX27//JCNdyvbmbGaSKTcBW4sjM r6wgtoiAgMTnzsVsILawgL3EvbMT2UFsFgFViZ7WJWBTeQVcJGa+mAS1QV5i9YYDYKslBBrZ JJY17GGFSLhITJ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3bCfvr/q2Z/IiwxWbYthq9x4I/2ecmfTmd57gA9HNf5e1bqufrZW+ 52iZo/X3+9P+cbfMZNq7e1vv/NSqbV3PtrTvYzVQWd4c6HxS4VhZ9CJln3Ljmzdzo6ynv4qd dbdN/FZydfWLNgWnJuf50xuua58/Jlv//t2j6tf3bESVWIozEg21mIuKEwF+/kg3GQIAAA== X-CMS-MailID: 20200312151708eucas1p2a80bb2ac0556c7d7efb3aedd83923e52 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200312151708eucas1p2a80bb2ac0556c7d7efb3aedd83923e52 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200312151708eucas1p2a80bb2ac0556c7d7efb3aedd83923e52 References: Subject: [dpdk-dev] [PATCH 00/13] Fixes and unit tests for librte_security X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Set of patches fix minor issues like proper verification of input parameters and aligning documentation with code in the matter of return values. Another fixed issue is invalid decrementation of the session counter which might cause inconsistency between counter values and a true number of sessions. All of these issues (and all the librte_security) code is covered with unit tests. The tests are added to dpdk-test application and can be launched with "security_autotest" command. Lukasz Wojciechowski (13): librte_security: fix verification of parameters librte_security: fix return types in documentation librte_security: fix session counter app/test: fix macro definition app/test: introduce librte_security tests app/test: add rte_security_session_update tests app/test: add rte_security_session_get_size tests app/test: add rte_security_session_stats_get tests app/test: add rte_security_session_destroy tests app/test: add rte_security_set_pkt_metadata tests app/test: add rte_security_get_userdata tests app/test: add rte_security_capabilities_get tests app/test: add rte_security_capability_get tests app/test/Makefile | 2 + app/test/meson.build | 3 + app/test/test.h | 4 +- app/test/test_security.c | 2399 ++++++++++++++++++++++++++++ lib/librte_security/rte_security.c | 70 +- lib/librte_security/rte_security.h | 8 +- 6 files changed, 2464 insertions(+), 22 deletions(-) create mode 100644 app/test/test_security.c -- 2.17.1