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 05FFAA04DD; Thu, 22 Oct 2020 13:12:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 40BC5A9A0; Thu, 22 Oct 2020 13:12:43 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 52B84A99A for ; Thu, 22 Oct 2020 13:12:40 +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 09MBBNCv005977; Thu, 22 Oct 2020 04:12:39 -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=pfpt0220; bh=HcmP96G7uiUSIoIqtjEqhhHMZoXO1A935zxZ8PoDb4I=; b=DRadD4b7tvgGZSkpuDmkiF00hqt/dkwVypTh+8+cPa5chJMaIaRSi53YVizswQR5xgaQ Usql6pEoEZQK75t8w3mAe6k2RjQBN8XLGuRI+VMrHn6D1U/q6MRKLdO84mZlmqJJQkoU E2VgXY9sm1s4fmyNJg/+oI5sZrwSRc802Grj5R+SIU5TyyCfUnBfHBIvTWdGB/FSXHJw qt05L5QC6dlORivKHhUWuvNIdqRH5Wdql3NlqIXQ98L50SCWzWrP+MuMhx6v7yim+eAv CeapFfKqo6zlvIK7i3ZWQWxEOFZhMFNLFS56Fm8s5ynvZbUKq7SUxc6tNVxYoR8eHn+k 5Q== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 34asbf3013-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 22 Oct 2020 04:12:38 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 22 Oct 2020 04:12:36 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 22 Oct 2020 04:12:36 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.168) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Thu, 22 Oct 2020 04:12:36 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m0E+5i+xVRnIYAjHqsYgbJO+0h/cpZA8BZmZZXU9JVa+FtU7HLefPI6IdTpXfcQ2vioxF/Q/4H3291ieicqjUewvReEzsffq/x3rMBeJTlJQrymwKgj+2V8tB01VjBJLeB1s36xHVq3saVMeT9WOlQaVdF18z0c7uyhPVvd3I/57Ff5pxV3Kl+DBTvBCLg1IXpR0FJ+893hJsa8vLhNWlJJe0qBi/t/FM/eexV9zVHqPPKUpn5nfW3Bs8wAC+21O1Mxg7FBcrULak2t5vqxF4JEkUoBo3h1EUbuhKM2q0JpvhcU3HS9syx2IzDWbfmNqZ9iQfHKO3bmTOt2QYbIoRw== 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=HcmP96G7uiUSIoIqtjEqhhHMZoXO1A935zxZ8PoDb4I=; b=JJrh7EetnrSeuVCLY8yPYKjPJVSaNgy/VTiDZTmk6wdLWQfWvbRfiJrJq2BvAwte/6bmbR8l+xtNxGE+GvURSq13wFB1H+0lcDqbiX1C+K4U7wE+HGRi6QDlKymLmcjHqimbKQITzVJpCzt44z6QzJhd2bz2V5kOPMT0+y7cbX/Ul/fRy+rXkN2snSwO4AiOJA/uZ8GKMaxb/lhQTFvWxB1bb8yse8D6bn1cxsEyVDJd28qk8D7QvFqus8G9Cy1ysYpRDGQzUPTYvprCt/dzoy6hAM8bn8XJ0Odcyal6bG1h10eIsr7Vy5q4r+n+G5mN84cQlB83g3LwJu3mHCENHg== 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=HcmP96G7uiUSIoIqtjEqhhHMZoXO1A935zxZ8PoDb4I=; b=Tv8mgYADJvhwwUQJR4metlLJWzoGl14bt9jt/iQJgyGfS/Y4qBsgZmNAaKueWy3YhWCwbrsyg99drgcFAFQz36K8aUoQa39Wn4yGJitI2NQiy/BQVGqSETXWrP3SzbuOYnZ5A9L4X1FHNwKeNqaBm7b5L8WDLkbnVZyIbwZw6sc= Received: from DM6PR18MB2410.namprd18.prod.outlook.com (2603:10b6:5:187::16) by DM6PR18MB3386.namprd18.prod.outlook.com (2603:10b6:5:1c2::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.24; Thu, 22 Oct 2020 11:12:35 +0000 Received: from DM6PR18MB2410.namprd18.prod.outlook.com ([fe80::e184:1839:91a0:cd59]) by DM6PR18MB2410.namprd18.prod.outlook.com ([fe80::e184:1839:91a0:cd59%7]) with mapi id 15.20.3477.028; Thu, 22 Oct 2020 11:12:34 +0000 From: Guy Kaneti To: Ophir Munk , Ori Kam CC: NBU-Contact-Thomas Monjalon , Smadar Fuks , Dovrat Zifroni , "dev@dpdk.org" Thread-Topic: [PATCH v1] app/regex: configure qp according to device capabilities Thread-Index: AQHWpsECwOdNz3R2MkWwaRS1UvccPKmgNTKAgANAXgCAAAC20A== Date: Thu, 22 Oct 2020 11:12:34 +0000 Message-ID: References: <20201020091008.25537-1-guyk@marvell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=marvell.com; x-originating-ip: [176.231.67.98] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5dd26152-70c2-47ab-a8cd-08d8767b60c5 x-ms-traffictypediagnostic: DM6PR18MB3386: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: S8y321Trve46wxPZGu821e+lD+JHKs25pkIPsxhagQpYwSv1KO22bhzI7t+uB5isrMo6PUhX/1yYwTnKyVkSJNSxATkP7YkR4waXn6vrFmWZQbPNU+Y6JjAGJjoL99TqM0ayD6cY0hnkYVmkHIhoUR+1s/ZtayK6tYXWKMH4b0dMnXBO5+LamMmE3yU2ctEELEu20pGVJEXZJbaXBMTa3KpRGqsJgX7GZ2byyGlYPTy5BPQgCEo4hPQJpX3oD0EfWbczPnQu5Mkv5dcpHV6Twv4sAOxDhHbhULOiCAoOChkwUpWqF+Ur/5fTxUgnoZxTR6CI82F00+YGQyNIcVkmv7EaLo9yqtr9cyh/+5X2ZyvrtsADtHpeochKP7GZC1bnHsCPv9xL2xNndnyv70gArw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR18MB2410.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(396003)(346002)(39860400002)(366004)(376002)(54906003)(4326008)(186003)(478600001)(9686003)(26005)(966005)(6506007)(7696005)(8676002)(33656002)(8936002)(66556008)(86362001)(76116006)(66946007)(53546011)(64756008)(66446008)(2906002)(316002)(55016002)(71200400001)(66476007)(52536014)(83380400001)(5660300002)(110136005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: UUiNbcXMOoD0h1dRRTaATeYTdgifY70mo417oJ/FQIyJTvdicm/goVlVfckxsUD0X4GVHtN7Lqdj/81hoiQeH1b9zKjhWink6FcudLgNRS99Re5zlD1Ot5Aw07/lNVJpuTWDouAeAnfungcyD62bE8W1x/5AgAeXELweFuOq0VrJU4aFGKLsDaHZPeQSkuxuQb6Kpc1T6aPtbIm9FI2UmN8fziQGygcIiEnd93Ll+lhdaq2mvZ11gteUeKzP1VQSN3Am3mwQ8WxkECUAXHTFqMCLOTAFniUSr+n6VxztywvHi33wr8WSO+N/DXjJcjqPBcpfPr+rx/9vM9apinfvyFkQNlHAsdOkK/r0k2bTTKfHDJJS+LLVHp0viaeyjgjiKdjJHCbeCIs0NHn2p0lgleiHz+KN0oqbe1+LQk5qbdSAmQnwjI3oelgVvJ3lqlBdMmhHi1kDmjcmSAbytYxOZfn70iTQqoLW9M1K5rRlcJhO3e6wa1KNMHwBO9W5E1zb67+jGIKKViYw6Uzs5o15lxlFFHnDzRWPBwmw79g+g7poolknH1dxStfOsm62iyKXZXLeBnlT7gNk6WMZXT2d2ZSwANA0hoW1dkcw8pyDgn5yvy/3ctYKR9Cm7Qhc+1EgBEEAmBh8nF8Zd/+H4a2iZA== 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: DM6PR18MB2410.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5dd26152-70c2-47ab-a8cd-08d8767b60c5 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Oct 2020 11:12:34.8997 (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: 6KAPR+u8kDeStfSQd0ft78AQdOP8ch3IyN89Dm8HErcYhetQxgqRJUPRWzKZ44RDIaYUzmW1oIEpJGwlhoxtwA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR18MB3386 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.737 definitions=2020-10-22_06:2020-10-20, 2020-10-22 signatures=0 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, The patch was not merged yet: https://patches.dpdk.org/patch/81673/ I will rebase this patch once it is merged. Regards, Guy=20 > -----Original Message----- > From: Ophir Munk > Sent: Thursday, October 22, 2020 1:53 PM > To: Ori Kam ; Guy Kaneti > Cc: NBU-Contact-Thomas Monjalon ; Smadar Fuks > ; Dovrat Zifroni ; > dev@dpdk.org > Subject: [EXT] RE: [PATCH v1] app/regex: configure qp according to device > capabilities >=20 > External Email >=20 > ---------------------------------------------------------------------- > Hi Guy, > I could not find RTE_REGEXDEV_CAPA_QUEUE_PAIR_OOS_F defined in > latest dpdk/main. As a result my compilation is broken. > Can you please assist? >=20 > Regards, > Ophir >=20 > > -----Original Message----- > > From: dev On Behalf Of Ori Kam > > Sent: Tuesday, October 20, 2020 12:14 PM > > To: guyk@marvell.com > > Cc: NBU-Contact-Thomas Monjalon ; > > smadarf@marvell.com; dovrat@marvell.com; dev@dpdk.org > > Subject: Re: [dpdk-dev] [PATCH v1] app/regex: configure qp according > > to device capabilities > > > > > > 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 > > > capabilities > > > > > > From: Guy Kaneti > > > > > > configure qp with OOS according to device capabilities returned from > > > rte_regexdev_info_get. > > > > > > Signed-off-by: Guy Kaneti > > > --- > > > app/test-regex/main.c | 4 +++- > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > 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; > > > > > > @@ -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