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 6EF49A0350; Tue, 23 Jun 2020 20:04:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A0FD71D44F; Tue, 23 Jun 2020 20:04:13 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 2544B5B3A for ; Tue, 23 Jun 2020 20:04:11 +0200 (CEST) IronPort-SDR: LSQ0TD8bSdbtmpKfrU5G/QEmg3nPJu1D/Qc18AgmEiNOFMOcABaQT7lXu6UFw2sMCEEJ9VSxlO FDNxbRclOtWA== X-IronPort-AV: E=McAfee;i="6000,8403,9661"; a="228855922" X-IronPort-AV: E=Sophos;i="5.75,272,1589266800"; d="scan'208";a="228855922" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2020 11:04:11 -0700 IronPort-SDR: 9eiru7lnXba1exCVBJLUvd5clZxNz8UQR+5aR2YRR1LfJ/pDFvImg/VtS+u2xLtC7TD9B3Ktqc uhzDuwxndF7A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,272,1589266800"; d="scan'208";a="264850138" Received: from orsmsx103.amr.corp.intel.com ([10.22.225.130]) by fmsmga008.fm.intel.com with ESMTP; 23 Jun 2020 11:04:10 -0700 Received: from orsmsx605.amr.corp.intel.com (10.22.229.18) by ORSMSX103.amr.corp.intel.com (10.22.225.130) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 23 Jun 2020 11:04:10 -0700 Received: from orsmsx605.amr.corp.intel.com (10.22.229.18) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 23 Jun 2020 11:04:10 -0700 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by orsmsx605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 23 Jun 2020 11:04:10 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.176) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 23 Jun 2020 11:04:08 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M3v64vGmyvoSrvZD0clBipvtafoiobJiisRSEBR5gjd4O2m9XfgjztRTjE1uedWpYpmO+B4Gb1dqGaKxfQl8jkSGO5H8RloIQDkpBBpODyVjsbTI19hhKojmgWBDdzk6JfTULBjguVOO2dPnpfYCZuinxOhJHIpLhm6/cBOm/CNmprIQYeTYscFvlS2NHGxXi9nebh5vY/p/lwywZMUIGfD9V3l29uUjSVvLlNU/j8v11PtuYrjtVDJt4EbqCAjVycQHJHbdzgzSnzbvvOik0g5uRST00aKGdHiKJfYnLXJ5PYdaSfsHp28hCOkQ5DyEOiQSwqXmc6Uyuja29cLelg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aUM3VsI8yVxUZhuUMyA6ZQ/vbz7mKzmgRAsYvjVXAGA=; b=OVANT0W4iVlHoCb8Vwkapu2V3tWTXmOxCgxX/YzAGZDDWRKwPLVlkUWJCmTN4syDcqRIgbCHY3/L8r+biSg92jdTLMtTKd9NPFqPIisXfPzNHHBiZdUKeBHxG6qG5QE+P3bxwS5gGTymb1kCX9fOwS+qD9KH3149WRP+m9SHsIeo/dwQCYQMGW2MFJN+XkTH0eTKJhp/sdr7cTFrUr+0fHCsCZEAaCgoUndGXLfRhUI90N5Wh20k8CWU6DzJuGmJ8R0dqYvMAfrsgaS1vSfiVZ4wNnAy0YwEBvg724hZ5OC+0uD5welf0m9/F9UeKpABV29oRU0k36s7FX9d4c+oNg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aUM3VsI8yVxUZhuUMyA6ZQ/vbz7mKzmgRAsYvjVXAGA=; b=Aka2JcxvbW7ZoZ85RVIjh2F+3mFF1I5VirHov2vtdOromYEEuBOmAUUNiNI8BUuHSiQ9TdT6UIInIY2AzHHWA8j0hB5px5Qd1wS6/0SV7TvkaQQ+QXPxhdii48oRxfTDW1Qb/NXJ/ve4E61/Sz9G8Yds5rg2bY7xJeBd9MStb/A= Received: from SN6PR11MB3101.namprd11.prod.outlook.com (2603:10b6:805:d8::23) by SA0PR11MB4623.namprd11.prod.outlook.com (2603:10b6:806:95::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.20; Tue, 23 Jun 2020 18:04:04 +0000 Received: from SN6PR11MB3101.namprd11.prod.outlook.com ([fe80::ac58:2cf3:c611:9b0]) by SN6PR11MB3101.namprd11.prod.outlook.com ([fe80::ac58:2cf3:c611:9b0%3]) with mapi id 15.20.3109.027; Tue, 23 Jun 2020 18:04:04 +0000 From: "De Lara Guarch, Pablo" To: "Coyle, David" , "akhil.goyal@nxp.com" , "Doherty, Declan" , "Trahe, Fiona" , "Zhang, Roy Fan" , "Ananyev, Konstantin" CC: "dev@dpdk.org" , "thomas@monjalon.net" , "Yigit, Ferruh" , "Ryan, Brendan" , "hemant.agrawal@nxp.com" , "anoobj@marvell.com" , "ruifeng.wang@arm.com" , "lironh@marvell.com" , "rnagadheeraj@marvell.com" , "jsrikanth@marvell.com" , "G.Singh@nxp.com" , "jianjay.zhou@huawei.com" , "ravi1.kumar@amd.com" , "Richardson, Bruce" , "olivier.matz@6wind.com" , "honnappa.nagarahalli@arm.com" , "stephen@networkplumber.org" , "alexr@mellanox.com" , "jerinj@marvell.com" , "O'loingsigh, Mairtin" Thread-Topic: [PATCH v2 5/6] test/crypto: add DOCSIS security test cases Thread-Index: AQHWSUpJ3mHRmtvvVkmBEwTE5iTATajmfWhQ Date: Tue, 23 Jun 2020 18:04:04 +0000 Message-ID: References: <20200604151324.50704-1-david.coyle@intel.com> <20200623101423.9215-1-david.coyle@intel.com> <20200623101423.9215-6-david.coyle@intel.com> In-Reply-To: <20200623101423.9215-6-david.coyle@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.151.190] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 79ed55a8-90d5-4aa6-d259-08d8179fd0ed x-ms-traffictypediagnostic: SA0PR11MB4623: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:785; x-forefront-prvs: 04433051BF x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: EK4Thnnpjb2WTOp0UZbUJK+ndKDDFzhijeU+tYH6iaHB9RFAEJfey5OQ7fmIsPPtDo7ckZaxhhumLgFtEnWQVM5uomTG/ZKjYFQt6ssEwfu2APA4Y6X/ZBJXDttQ2TkdSVYUGpp0xIdbebvor9fR3DXgqn8z0HgJU6PbbmVxslOPmB9gqT65MdRy0rG/LJHYlIVPnIcC4EuY/dPwV9fT186SDly/y0MILSxViZEuODx+ZHH7lFhWM+YrY09ODT1SHh0x/srFc0zYI9NS6hoD4Lr9xnkQo/iJTZz8ChqZ4yqvrp7BEmvQO8OFBO9k15C+ZB7Z4XeobwtSaHJACQ8ByASmwpd6mMblDVDMxS/7LOJfSdTyo1JLM+NDOqMommNl x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3101.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(346002)(396003)(39860400002)(136003)(376002)(107886003)(478600001)(8936002)(2906002)(7696005)(33656002)(110136005)(15650500001)(316002)(54906003)(8676002)(83380400001)(66946007)(76116006)(55016002)(9686003)(66556008)(66446008)(64756008)(66476007)(52536014)(4326008)(6506007)(53546011)(86362001)(186003)(26005)(6636002)(7416002)(71200400001)(5660300002)(921003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: vMUgooqRkJ9/mUUOi/cxh9D1XbmHxUViUHiByeacXfMzIC+L4Ou5o5Rvhvwqcu87An2W8uMS0fUdMYAvyjpl+JgBnZ30zGmmF6po2TN4Dj6BC3zMt2gsxvCP8eWRb92qvZwLIE3CteRAVGe+XDE8WAw6RFDVxMaHzKf0FPoDa91RR2PaugFMZ4qATdI7uiPHBidl/0nIQwn1wG9j2d5S8fkEP9X0L8/j79tHO21DBn2r31E+S0mylgTCKqLQrwMDTH8lBfFVk7iPqDh/fHm/IFblRylWlXmkSKSvWAMf3XkqGp5/7ZvgOcdYwbQXITggV7mIF8IggFXSY/Gq/2OzWMYw5Bi800xiVc9+ECmcUtH7Z6DEnGEiZ0hhmANU5rgVu8AtYmdUHrP2DW/CiHhaVqhsayziu8i2qgH9NMy5ymZFRoWwQtUgbhhVtwsyo6SXRP/WiXWpySp88HTYr1/2aDnUttuLjwIpOGov7TTLsGs3rPsGRqPufrHXTUAorBc+ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB3101.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79ed55a8-90d5-4aa6-d259-08d8179fd0ed X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jun 2020 18:04:04.3881 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: unSM5ostbPr+DiJ7Km+9ka1H2UvuGR6V1rCPykxHoveFv2jAESEKauIouboySRr90VxiFe7F+fszuJLMCPZef+9jylxXWNU7+RjBgLuCZvg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4623 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2 5/6] test/crypto: add DOCSIS security test cases 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" Hi David, > -----Original Message----- > From: Coyle, David > Sent: Tuesday, June 23, 2020 11:14 AM > To: akhil.goyal@nxp.com; Doherty, Declan ; De > Lara Guarch, Pablo ; Trahe, Fiona > ; Zhang, Roy Fan ; > Ananyev, Konstantin > Cc: dev@dpdk.org; thomas@monjalon.net; Yigit, Ferruh > ; Ryan, Brendan ; > hemant.agrawal@nxp.com; anoobj@marvell.com; ruifeng.wang@arm.com; > lironh@marvell.com; rnagadheeraj@marvell.com; jsrikanth@marvell.com; > G.Singh@nxp.com; jianjay.zhou@huawei.com; ravi1.kumar@amd.com; > Richardson, Bruce ; olivier.matz@6wind.com; > honnappa.nagarahalli@arm.com; stephen@networkplumber.org; > alexr@mellanox.com; jerinj@marvell.com; Coyle, David > ; O'loingsigh, Mairtin > Subject: [PATCH v2 5/6] test/crypto: add DOCSIS security test cases >=20 > Add uplink and downlink DOCSIS unit test cases and vectors, to test > the combined DOCSIS Crypto-CRC support that has been added to the > rte_security and rte_cryptodev libraries. >=20 > Signed-off-by: David Coyle > Signed-off-by: Mairtin o Loingsigh ... > +static int > +test_docsis_proto_uplink(int i, struct docsis_test_data *d_td) > +{ > + struct rte_security_op *sec_op; > + struct rte_security_docsis_op *doc_op; > + struct crypto_testsuite_params *ts_params =3D &testsuite_params; > + struct crypto_unittest_params *ut_params =3D &unittest_params; > + uint8_t *plaintext, *ciphertext; > + uint8_t *iv_ptr; > + int cipher_len =3D 0; > + int crc_len =3D 0, crc_data_len; Minor comment. These "int" should be "unsigned int", as they are not going = to hold a negative value. > + int ret =3D TEST_SUCCESS;