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 6C97FA04DD; Tue, 20 Oct 2020 11:21:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 692EBC8B0; Tue, 20 Oct 2020 11:14:27 +0200 (CEST) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id 3501EC778 for ; Tue, 20 Oct 2020 11:14:07 +0200 (CEST) Received: from HKMAIL102.nvidia.com (Not Verified[10.18.92.100]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 20 Oct 2020 17:14:06 +0800 Received: from HKMAIL104.nvidia.com (10.18.16.13) by HKMAIL102.nvidia.com (10.18.16.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 20 Oct 2020 09:14:05 +0000 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.45) by HKMAIL104.nvidia.com (10.18.16.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 20 Oct 2020 09:14:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IRseMIMpuq2Ax3rEzKRRJMexDRqQ3fDpOnwyZUTGbES8L7pU88LZB0uqmLUg2F9BGHMTvueUTUoj9kwlIvcn+nT5ny6k3zqDfO11qoq+l7YJ/JkVlNuKZb5NYya+YTNkj2xbbz9kaX0a3sMDvX9FM/r8SM+PrXuJ58KvupIWqVrQFA8sAJbhOnL9AMLkYNMFjZqfCbEvdDQgEyIrVxuNzYNzAnSr9eRwxuW1JBxcWebSVsa/YHEguTdxDdve62G1FKiIzv95jqNwQuQPCPLv6vtndM1Ce6M9i/oeuqJuB6/lRQzd9te/Hl4X2cu7uQa31nM0pCvRU+z+M77puuAIqg== 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=8J9cISIA0QQ72iqxOPFuNjBs7Ndy2gAQyCpGAIELLgk=; b=KHb9nGCSXz1QUr4OH3zZUVIZSBG/Ixn6fR5XlwD+AsiMze07MHU8qiPf1epVOX68Kzcjite7nbGUv6L+ZA6XowU8WaVOLoTnIcQVg3lfKJecK3xQPgpZVEAL0U2kBBx8b6uTUOdAaetXuC6vov4tPhQxRxPG42TQONx7GQQuWR0uXm8+h8VQKp8r6d+t1QwZM1YLd2Qe0LrotjKv27gtw3+Jmraiet5jhlrFkK/3yV5gYP3ZTZ6U+qWPGtkA5GGHiSBPRfHQHvJKv7ZgGXyD442A+s4Ynv8ORBQIoqgGlxTOXTuQvVcmchgw1FuyGMUqW7f2SbCYK9KLc8Yb41PgpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from DM6PR12MB4987.namprd12.prod.outlook.com (2603:10b6:5:163::31) by DM6PR12MB4516.namprd12.prod.outlook.com (2603:10b6:5:2ac::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18; Tue, 20 Oct 2020 09:14:03 +0000 Received: from DM6PR12MB4987.namprd12.prod.outlook.com ([fe80::cf2:dfd0:1877:bf3a]) by DM6PR12MB4987.namprd12.prod.outlook.com ([fe80::cf2:dfd0:1877:bf3a%3]) with mapi id 15.20.3477.028; Tue, 20 Oct 2020 09:14:03 +0000 From: Ori Kam To: "guyk@marvell.com" CC: NBU-Contact-Thomas Monjalon , "smadarf@marvell.com" , "dovrat@marvell.com" , "dev@dpdk.org" Thread-Topic: [PATCH v1] app/regex: configure qp according to device capabilities Thread-Index: AQHWpsERVrkBbgUuP0aIc+J0LFsvfamgNRDw Date: Tue, 20 Oct 2020 09:14:03 +0000 Message-ID: References: <20201020091008.25537-1-guyk@marvell.com> In-Reply-To: <20201020091008.25537-1-guyk@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [147.236.152.129] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0ea70f27-070b-4efd-031b-08d874d87d2a x-ms-traffictypediagnostic: DM6PR12MB4516: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2733; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: CJ0WPgwptb5L64U5etxSQrxjahlKBVo58lnSkIks2m2Ux0r6hrVso8ORgTBPn6oAt3q/hOpBSp7a66eByS319a+hAus68kBOiEJmQfJlRek2Uy33eUCNAaqP6eVdRglPcjUlOxOFp7Db1xSMK2s5OEY20kFlkCXXgQW4c6gOhW7vm0WMAhF1+8rGAS5ONYpx8SeO3/mV3G7J7LBsCmPL5oKShSFYkczUCQWq5ZcJRsJBI4wciRdkU5k54Rgl20LJCeWglSpFInmrNf21BvCuPWqWdH1vzMmur6rE/6161MTQH5sZIou7BkoIJeRtLZ/L x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB4987.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(396003)(346002)(366004)(39860400002)(136003)(55016002)(54906003)(316002)(478600001)(6916009)(86362001)(26005)(9686003)(8676002)(8936002)(53546011)(4326008)(186003)(2906002)(66476007)(7696005)(6506007)(71200400001)(64756008)(66556008)(76116006)(66946007)(66446008)(33656002)(5660300002)(52536014)(83380400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: +V5IkUa1kQKVpteIy77g7eqZTu50tvCk0CwzCgVWBf11civy7jVqwwpK/xKwoT4kafQQdR+mVqN8PoD557xgfZTftn45MFPyYvGRUGr4BoRAVCkzEOACa7k5dKR125a/be1Jyn2D/o4PR4XQJh9SLvj1z0jotoo37RnVwlfffs0Bl+SczUimrK7e8pTgYefhNCw3G0DUr7n7SA7qozR0kuhX7amwL1UyIsoQNP7b7LQfzEgneW+DiTS+ko5FiuJ7cQPVe9+DOVtcs/ACYjUqBDkTDlk2dJg5XhLtP9CgARhdDFAl47lqWbmqnzR0iLPpaXNF3iA1tj6E4mYVLTmmwBYVL4J6jdZH+Sv9iDMmdM83LmGYjuCSnhmcRfvwjML+MphRUfKbWRnuXVt5AoSD4DwUZ1WlCMj0hyNxamXJiCwts89L+XVh7ZTMfBc4xOoDCdJUql0jtv3xY/6mu+LTQGxobv2tw/VCDaQMJsl0KRzsAPlvDq0EjB5zlnKB+ytNDPcmxbrfvO8GsJqzn7JjLexlMhcQ2ViUt3YQ0vkazaBe0EceTCuwoUgwnqj0O+aaz79iBvQQWWFvuL3toffxKB8kDrzqK/7bqp56bu6BVNO4fvbzFmC9fmpzKG+DQ2S8+lErgRPrOemQPMzVgEJqIw== x-ms-exchange-transport-forked: True 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: DM6PR12MB4987.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ea70f27-070b-4efd-031b-08d874d87d2a X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Oct 2020 09:14:03.3289 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: joqIYDNrBQD4hp8TZ+JNjYNtBXOPII8xsLEHDorzL4fpUQxWnswmY7eQhwEuqZxsJjZRr7X+KXS+QY5Au4Z0JA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4516 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1603185246; bh=8J9cISIA0QQ72iqxOPFuNjBs7Ndy2gAQyCpGAIELLgk=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-microsoft-antispam-prvs:x-ms-oob-tlc-oobclassifiers: x-ms-exchange-senderadcheck:x-microsoft-antispam: x-microsoft-antispam-message-info:x-forefront-antispam-report: x-ms-exchange-antispam-messagedata:x-ms-exchange-transport-forked: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=IeXqslvCRepROUZjCgON7Sdc22IOjGXv4gQ8FMW/rUeniSnzJ/voJg15AOsUuEuu7 kBtU6u0vHpC2W2XKzRyX31d48o3/Tv6AvCIE5fbNAFPHqTBEtJRj8kS6D2Ki1viDv5 OLx4OfiLJ1e5I2q/CZqSPimDsqkfl4tWZjkwphtkI9S9NuJIZlVExAtAlmBybTRDfc Sb4N06mE5d6eV6phzB0FFniQskfOtcqzf5LBRwzL74XRRQm46DG3eJxsEB2IvzjIrF /0qzFDSw8TtvUoGSI7mvs+EA/hye91JKIkHi9V4JxdNNYShGuG7lHcPjAxxr6KAkXm CMzpl77Rh0UiQ== Subject: Re: [dpdk-dev] [PATCH v1] app/regex: configure qp according to device capabilities 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 Guy, > -----Original Message----- > From: guyk@marvell.com > Sent: Tuesday, October 20, 2020 12:10 PM > Subject: [PATCH v1] app/regex: configure qp according to device capabilit= ies >=20 > From: Guy Kaneti >=20 > configure qp with OOS according to device capabilities > returned from rte_regexdev_info_get. >=20 > Signed-off-by: Guy Kaneti > --- > app/test-regex/main.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/app/test-regex/main.c b/app/test-regex/main.c > index e6080b44b..3deaf3c80 100644 > --- a/app/test-regex/main.c > +++ b/app/test-regex/main.c > @@ -173,7 +173,7 @@ init_port(struct rte_mempool **mbuf_mp, uint32_t > nb_jobs, > }; > struct rte_regexdev_qp_conf qp_conf =3D { > .nb_desc =3D 1024, > - .qp_conf_flags =3D RTE_REGEX_QUEUE_PAIR_CFG_OOS_F, > + .qp_conf_flags =3D 0, > }; > int res =3D 0; >=20 > @@ -218,6 +218,8 @@ init_port(struct rte_mempool **mbuf_mp, uint32_t > nb_jobs, > printf("Error, can't configure device %d.\n", id); > goto error; > } > + if (info.regexdev_capa & > RTE_REGEXDEV_CAPA_QUEUE_PAIR_OOS_F) > + qp_conf.qp_conf_flags |=3D > RTE_REGEX_QUEUE_PAIR_CFG_OOS_F; > res =3D rte_regexdev_queue_pair_setup(id, 0, &qp_conf); > if (res < 0) { > printf("Error, can't setup queue pair for device %d.\n", > -- > 2.28.0 Acked-by: Ori Kam Best, Ori