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 F3FDBA0597; Wed, 8 Apr 2020 05:14:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2FC771BE90; Wed, 8 Apr 2020 05:14:38 +0200 (CEST) Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by dpdk.org (Postfix) with ESMTP id 3BFF01BE80 for ; Wed, 8 Apr 2020 05:14:37 +0200 (CEST) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200408031436euoutp01ac2696172db798425b0a24b856461717~DubP-WOUs2124521245euoutp01P for ; Wed, 8 Apr 2020 03:14:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200408031436euoutp01ac2696172db798425b0a24b856461717~DubP-WOUs2124521245euoutp01P DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1586315676; bh=u9KSBau4yq0vKgfan6qv+CuQHt5Di1UOnyAaiR2l0eA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ouulGOsYYXWWkA8LRymwfpfeSEKFxrRKQgS7OrebpSMZ057bP9H6BXDhXREJ4E9Wr GynovxDHutew7PychlXzj1GtSsGC4MCo9vdjyJyHeGLTtTxKW3cbxhlpsmMtN/e6WJ 21HHtY9VeMmqOgHkmWJsSKls19TlRaETyVHi9+2w= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200408031436eucas1p27eca12e504fa670190c3de9e27256f9a~DubPwEppS3010930109eucas1p2d for ; Wed, 8 Apr 2020 03:14:36 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 59.47.60679.C914D8E5; Wed, 8 Apr 2020 04:14:36 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200408031435eucas1p23b452d748e39e46c626f695b7f55096a~DubPAlv3L3011330113eucas1p2f for ; Wed, 8 Apr 2020 03:14:35 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200408031435eusmtrp1ebebe50dd4754e7e26b458d2397fad12~DubPAGXTf1153511535eusmtrp1r for ; Wed, 8 Apr 2020 03:14:35 +0000 (GMT) X-AuditID: cbfec7f4-0cbff7000001ed07-4c-5e8d419ccaf3 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id CE.69.07950.B914D8E5; Wed, 8 Apr 2020 04:14:35 +0100 (BST) Received: from localhost.localdomain (unknown [106.210.88.70]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200408031435eusmtip1b6e43314f0c09bb157d4443dde1d6b16~DubOqyJHy2966429664eusmtip1Y for ; Wed, 8 Apr 2020 03:14:35 +0000 (GMT) From: Lukasz Wojciechowski To: Cc: dev@dpdk.org Date: Wed, 8 Apr 2020 05:13:38 +0200 Message-Id: <20200408031351.4288-1-l.wojciechow@partner.samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200312151654.7218-1-l.wojciechow@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrDIsWRmVeSWpSXmKPExsWy7djPc7pzHHvjDOZN4bR492k7kwOjx68F S1kDGKO4bFJSczLLUov07RK4MmbPucNasFGg4vfTi8wNjE95uhg5OSQETCSmf7vC1sXIxSEk sIJR4s+yjywQTjuTxIr9qxghnDYmif/Pu1lhWi5134RqWc4o0dZ0lgmu6suZm2BVbAK2Ekdm fgWzRQRYJFZ+/84CYjMLCEg8vvcMLC4s4CRxclE/WJxFQFVixokuJhCbV8BF4tHUPiaIbfIS qzccYAaxOQVcJW5Mes4KskxCYAmbxI3vG9ghilwkdn5ZyghhC0u8Or4FKi4jcXpyDwtEwzZG iau/fzJCOPsZJa73roCqspY4/O830EMcQOdpSqzfpQ8RdpTYMKWVBSQsIcAnceOtIMQDfBKT tk1nhgjzSnS0CUFU60k87ZnKCLP2z9onLBC2h8S8k/ugATSDUaKv4xrrBEb5WQjLFjAyrmIU Ty0tzk1PLTbKSy3XK07MLS7NS9dLzs/dxAiM49P/jn/ZwbjrT9IhRgEORiUe3geJPXFCrIll xZW5hxglOJiVRHilejvjhHhTEiurUovy44tKc1KLDzFKc7AoifMaL3oZKySQnliSmp2aWpBa BJNl4uCUamDc4VsUMit9/+tHqR4toVlnp2+PNP4xrTkorew4RxibcZW/G9/aBULn1PtYDE59 mdu4ic30T2+40fEJUQdM/zJrClbvUOna+yHwpKmGwlzxhj0m79yl7jxdcWpx0N33c22c/5ju Xafbmd/+2+nIpX3NvKJBC5y17NWOcbNoHrxfeFe9sexIxB4lluKMREMt5qLiRACGBced3wIA AA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrJLMWRmVeSWpSXmKPExsVy+t/xu7qzHXvjDBouiVq8+7SdyYHR49eC pawBjFF6NkX5pSWpChn5xSW2StGGFkZ6hpYWekYmlnqGxuaxVkamSvp2NimpOZllqUX6dgl6 GbPn3GEt2ChQ8fvpReYGxqc8XYycHBICJhKXum+ygdhCAksZJda183UxcgDFZSQ+XBKAKBGW +HOtC6qkhUnibKsHiM0mYCtxZOZXVhBbRIBFYuX37ywgNrOAgMTje8/A4sICThInF/WDxVkE VCVmnOhiArF5BVwkHk3tY4KYLy+xesMBZhCbU8BV4sak56wQu1wknv9fwjyBkW8BI8MqRpHU 0uLc9NxiI73ixNzi0rx0veT83E2MwGDaduznlh2MXe+CDzEKcDAq8fA+SOyJE2JNLCuuzD3E KMHBrCTCK9XbGSfEm5JYWZValB9fVJqTWnyI0RToqInMUqLJ+cBAzyuJNzQ1NLewNDQ3Njc2 s1AS5+0QOBgjJJCeWJKanZpakFoE08fEwSnVwKgr+SV648FnH/zVXz3Pvzdx3vkNocnT+KU2 PfCyVrBPvC4d5Mm7TGKCplB19rfnp2dNSo/f/STiwMFVJ7amll5kv2vXeMhKRvYCx5onavKc ieunms+27m3+WXrDLnKVEHfqxovXmR/sjN+3xp912mf3xSaOTh97Fze5lNhILZX6/Vy19swc ficlluKMREMt5qLiRACev762PAIAAA== X-CMS-MailID: 20200408031435eucas1p23b452d748e39e46c626f695b7f55096a X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200408031435eucas1p23b452d748e39e46c626f695b7f55096a X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200408031435eucas1p23b452d748e39e46c626f695b7f55096a References: <20200312151654.7218-1-l.wojciechow@partner.samsung.com> Subject: [dpdk-dev] [PATCH v2 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. --- v2: * Fix patches' topics for librte_security to security * Introduce CONFIG_RTE_LIBRTE_SECURITY_DEBUG flag and: ** make it disabled by default ** verify parameters in dataplane API calls only when option is enabled ** skip tests of code disabled by the option * Add Fixes tags * Introduce RTE_PTR_CHAIN3_OR_ERR_RET macro for doing 3 chain checks * Removed C99 style comments * Remove check of m parameter in rte_security_set_pkt_metadata * Fix code style warnings Lukasz Wojciechowski (13): security: fix verification of parameters security: fix return types in documentation 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 | 2435 ++++++++++++++++++++++++++++ config/common_base | 1 + lib/librte_security/rte_security.c | 71 +- lib/librte_security/rte_security.h | 8 +- 7 files changed, 2502 insertions(+), 22 deletions(-) create mode 100644 app/test/test_security.c -- 2.17.1