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 46A34A04AF; Mon, 4 May 2020 15:06:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A05801D16E; Mon, 4 May 2020 15:06:06 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 47CE01D16D for ; Mon, 4 May 2020 15:06:05 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 044D4k6T015629; Mon, 4 May 2020 06:06:04 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=mBqbyKMxPs8TztZ+4eHdlhw37wjWNqbcua2rZ4XYXNM=; b=hLEMyp+CvyxRUuKlbw4Q+C2tPUxJWFe8jMX33uoJNv6PD1/TEXhFopInx9Gc9y1Z4YKs hwu6qJ6LCg9oyP0UkEejgJbKI5Znz9XSBuSNdNVI6oZ91ZzYsGzOoxzNKpr0asPuA3ae /LhHj9Ic49vZGAPfeQ41kGKSPbwACRq/t3TBuQZbOsft5SlO6Suj2MJ6vMEgAdqYGfk2 6sCVSokcGjdbWW6pchjy1UaPCy3IBreyQpqXzTwfSUlvXU6zv5CsJ7fb/0+8u9WdfW0C RjXoubzu6rXzM72x2WqzNsJzL6Fr4jX6ZKkrRR5f/aqkxdw/5pB/da9nOH0kR/VqJWno UA== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 30srykkq82-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 04 May 2020 06:06:04 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 4 May 2020 06:06:02 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 4 May 2020 06:06:01 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.107) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Mon, 4 May 2020 06:06:01 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ol5xs2FJm0C1gX/OENjQgs/K4Zu+WAQFGgtg9ZwxbXi0IMcFKqteDoG5v9sm+jg13OQsRgLeMqiDBsq/FydkkmffOKQRWPZtiXrS0lyIXNV1EgZclllPTJ+vczbIiclwLnVTGJXrkO1QdPpWa2t2qQJyyAP1UyoNWqL3MBdX/EsIK7J5Vt6ZGdptGg4UmO+YnjHKlU9uZrcM7qb9HaI9OJXozZMl1K7B//v+3bgdXZhjbBbR89raIxLcB3Ln6g1LirrKlmmQqbPmu7PoiABIe8oN/oLSmLysjkqk19OOeTVn8LnjVh5aZC5XPfuMyLGoBZBY4xKs23t7wE8FfJ2ZPw== 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=mBqbyKMxPs8TztZ+4eHdlhw37wjWNqbcua2rZ4XYXNM=; b=LIX1dynmSHgPt20VHJUp6fOU4e+i67jbrq+ioc7FOgwNETFufeQzM/hKS/0grqSWvLWzaMf0jio4zDOS1AmPWkPBSP3/wywiMQWJ7Q3ii0Eb16vblVwhbFmazv4CzfcQfCCM19i+ClwDXmJARbqeICg399bBiUvb+TJ/HpvKqKnejTEKFF6axXWuLbbdFdLdSYKMusFDaHJVPR0ZiTjyZ8Qgii/hPNHAWoysZFDP82LBRSHapFOyBhFFs+UO2DDFMyfZxFdM+3nhhEMdXY5UzaOi89v9IAUSwh/qEubmIBx5vbszy1c5XSl13ETkQOZQ9G+ARqYlm1FPFh0enGIrgQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mBqbyKMxPs8TztZ+4eHdlhw37wjWNqbcua2rZ4XYXNM=; b=tcPjB5INUGyaFKzXvGBkzQFwD8zmaXjh9jFU6GW+Oug0NnJZvpKisaPc5opRxJ+Zged4mOQQWN0GV+UjGkzXNrFYc/6eyCoDtlLu9fPWc5uh5IkAFsREWmP+xrSnBHeupU+mWH8RvqxW/lkSrVbMByxU6eAulwDcMO/AnPEcdP4= Received: from BN8PR18MB2868.namprd18.prod.outlook.com (2603:10b6:408:a2::27) by BN8PR18MB2465.namprd18.prod.outlook.com (2603:10b6:408:68::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.29; Mon, 4 May 2020 13:05:58 +0000 Received: from BN8PR18MB2868.namprd18.prod.outlook.com ([fe80::747f:8ce:8752:db49]) by BN8PR18MB2868.namprd18.prod.outlook.com ([fe80::747f:8ce:8752:db49%4]) with mapi id 15.20.2958.029; Mon, 4 May 2020 13:05:58 +0000 From: Anoob Joseph To: Ankur Dwivedi , "dev@dpdk.org" CC: Akhil Goyal , "declan.doherty@intel.com" , "De Lara Guarch, Pablo" Thread-Topic: [PATCH] app/test: handle -ENOTSUP from session init Thread-Index: AQHWIhFgJ6sqCy3vJUWGYISvErTXZ6iX5D6A Date: Mon, 4 May 2020 13:05:58 +0000 Message-ID: References: <1588596047-14965-1-git-send-email-adwivedi@marvell.com> In-Reply-To: <1588596047-14965-1-git-send-email-adwivedi@marvell.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [111.125.205.80] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f9541244-82ab-45a3-efa7-08d7f02be375 x-ms-traffictypediagnostic: BN8PR18MB2465: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2000; x-forefront-prvs: 03932714EB x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SDKYNCkKJErF0IotIgYGnMFYDOSMK3qgqLF+WKEsR20FcufzTHfgazCCxKymcAfCMqs2IKZwU+gFm35+TVt3kOv41d1aSO8sWccQ9vVsFnsvlTmAoVWiNuwJCm8Yodb11annAra8x+uLem4DMNwQyVrtX7Db+dkRoQ8+6kxs2FEC0+vPjWJJpee9uYAw0yjwxaEgV9yZL956QbAHMKeg1q4/SqEilnv+0g4i8jv+QKmIjusrcml0FL7OXPFLaaQ+21jMzLkOGZTOmckTFChXrT/kwTVKecj6I0uGg7Gt4WOhubAjZSbKU/fggy4ZPP2pi4xvuhn5KLUlGWjXY5cxxmgCmfrrV+oZfpoGZw2rlQxgR/SNtJtEJxW2XyKoew3JkhB+z3Zhi0JgcHVNaYpBiKAvzeOqbAzsvSAMD3cOirpPFc/JvXo0w93ytht9UGK5 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN8PR18MB2868.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39850400004)(396003)(376002)(346002)(366004)(136003)(9686003)(55016002)(4326008)(76116006)(64756008)(66476007)(66556008)(6506007)(66946007)(66446008)(5660300002)(26005)(71200400001)(8936002)(52536014)(186003)(55236004)(8676002)(7696005)(110136005)(54906003)(33656002)(2906002)(478600001)(316002)(86362001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: 06D2+nHhJNQDZ8bUIqBxuC8PjlFBIrvFMiqe/JGw5Ed266LoVAriOYjxPICSzct5ouyXwuhgl5nuD3tKKXFiMLMuQdVhfA4cTk1VQkOclYqUcj588CMtWMqbFMyhO3WeygS11J3vg9U8CmHQcx5lu/hpfqXAix9YOKrpjqEnKlHN8IYdh+GqMAJLQ8VubY2i9+7rTejOUlhxIL3ss4ezkL036BOhQTNnm/O0a6zABtX5DqxMwJ8jPJMZiyso4ieZGrQrfhTOX2Rq8ypmQSgqy7/k33l1/H3EmqnHVY+GkZ3cUeuBwic4TJbYLU3kK8x94cAFlddZIDvSuz2HxJWH3zSmCp0Aea8ADn1gF8YbDsXdIPqk0Av6pJ+P20NTGlwNhr+zxV6nNbWbQ1OQVvVO6LKdnyhXbdOdfwTeKao3cOu17pU0qvOQIa1goN5twd4sLcv4nNXDTZawb1hHZagYjMgk0hBGeKIm/J1wM+iG3pgPmTm2KPZ5X6JXovCYJX9Y+VjHX9jP9p5dy4iZkgczTJk/jS27R2ERdV0UScUQnGfoQQcMpPHJS8aUkiY1EWgNFMSwYB2ueOIXlxPb5DZKIZQRnjs3RFzlzk56/vvkPOBX2O7EgAzi2XBO9EAd19XbCaC13rOOfvvFBAK6lbZYtL4nWKLXckBOzcO9kUmckLt0gDFx3c9ypsRHegP3BnaP1esosrdqLWsJRXumXWelR0eEMV+dTevbAnIbb186fVBfDMajCKdw8SffU/miUfpt5p/bj4mk8P5UurPpFz+a8rcu9BJw0YHivt726keAn4A= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: f9541244-82ab-45a3-efa7-08d7f02be375 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 May 2020 13:05:58.6221 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nbWj02NQGes0zoOtFU+xqJB+f276r/uwgWXhYD3MeN5LOtFbxK9or/ykRi5s5z+tihpym/02H8WKp+TyBa0pZw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR18MB2465 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.676 definitions=2020-05-04_07:2020-05-04, 2020-05-04 signatures=0 Subject: Re: [dpdk-dev] [PATCH] app/test: handle -ENOTSUP from session init 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" > The session init routine rte_cryptodev_sym_session_init(), could return - > ENOTSUP when the requested algo combination is not supported by the PMD. > This should be treated as unsupported features. For other return values l= ike - > EINVAL or -ENOMEM the test can be treated as failure. >=20 > Signed-off-by: Ankur Dwivedi Acked-by: Anoob Joseph =20 > --- > app/test/test_cryptodev_blockcipher.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) >=20 > diff --git a/app/test/test_cryptodev_blockcipher.c > b/app/test/test_cryptodev_blockcipher.c > index 473dad9..5717194 100644 > --- a/app/test/test_cryptodev_blockcipher.c > +++ b/app/test/test_cryptodev_blockcipher.c > @@ -427,9 +427,11 @@ > nb_iterates =3D=3D 0) { > sess =3D rte_cryptodev_sym_session_create(sess_mpool); >=20 > - rte_cryptodev_sym_session_init(dev_id, sess, init_xform, > - sess_priv_mpool); > - if (!sess) { > + status =3D rte_cryptodev_sym_session_init(dev_id, sess, > + init_xform, sess_priv_mpool); > + if (status =3D=3D -ENOTSUP) > + goto error_exit; > + if (!sess || status < 0) { > snprintf(test_msg, BLOCKCIPHER_TEST_MSG_LEN, "line > %u " > "FAILED: %s", __LINE__, > "Session creation failed"); > -- > 1.9.3