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 0CD77A00BE; Wed, 8 Jul 2020 09:32:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 327E91D9E9; Wed, 8 Jul 2020 09:32:29 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140057.outbound.protection.outlook.com [40.107.14.57]) by dpdk.org (Postfix) with ESMTP id B03321D9AC for ; Wed, 8 Jul 2020 09:32:27 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GfTURoQm9q9/cZ8amseGXPMNIB0oeI437Bu2YJCe0BntEBHWCjdabiRDPiz+pllcmqwyZKU/0m+US8Fl+potYlZfrQL7bOS+bkBYag0O2oZZTz/8pumLsYQ72wRhmcJ9aakixVB1rGbq1S5kARPKOJ7SbtA8wGP2DcqV3NlSd/n9M/pXsDwVa3WPYt8u262AljUrmjkgUPZMub43XH0afsc+2j/3GlUMpkcXz87sM10x8IwC/RPO0y9meMHgKBA0CPpHvu9+s62ToMFnSnlBC4OCw50TWxDg2yiF4hRHhSelf3vKnXClirHcQ7VlqGbI9THiKotmR9Q9e1N0o5Gs7g== 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=ziStf0ppqG0R+3/J5mhtMjpW57mP+CcTIrl/s22htLE=; b=mkG8FQ4Qd+BwI4CMYbSq0qXhFRIau2pSS1t2aN9Wx/hUaCmxbvN+tJO9O7H6HfPRI2ra7oII6gnSq4F0fe1OSGkyI2HmkJYBlnUOvPhJDn84xZQoY8AQiS2PUdfowfh1US3REN8taqv5Zr6hxE6tkncYj8K1HE3pgggNKmpNF7ke6POsJoUJhfad91LYoHXGoGeby32x5DWLGeO3Ny0+K++tiYcJpEaeGBoWlHGC3ud2THkCIcAdsmypVvt2FeWWhtoK0AMZYlXDMDt04bksq+UK3t15ONdIhIfu6n1a6QjIsZZx5ItMBhNgrZG3tKowY3jTOXvOH3n6+67EoQeATw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ziStf0ppqG0R+3/J5mhtMjpW57mP+CcTIrl/s22htLE=; b=XdGYpKFXYBRdiyiaSLClz98FTtqBudC1U7819D/tg1d27jPtPNHr0HYOhthNcoy2yOTOgYStrjghLOTlxGw62GFrdZgWKcB9uRssPKp0wVMz31+PyGK42qqIhgvEfh0vebhf7bVn2cWkcjwosgudVNM5UcY+L8nuSZVaivsE5h4= Received: from AM4PR05MB3265.eurprd05.prod.outlook.com (2603:10a6:205:8::26) by AM0PR05MB6084.eurprd05.prod.outlook.com (2603:10a6:208:134::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.27; Wed, 8 Jul 2020 07:32:26 +0000 Received: from AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::194e:dc46:7543:50ed]) by AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::194e:dc46:7543:50ed%2]) with mapi id 15.20.3174.022; Wed, 8 Jul 2020 07:32:26 +0000 From: Slava Ovsiienko To: Ori Kam , "jerinj@marvell.com" , "xiang.w.wang@intel.com" , Matan Azrad , Shahaf Shuler CC: "guyk@marvell.com" , "dev@dpdk.org" , "pbhagavatula@marvell.com" , "hemant.agrawal@nxp.com" , Opher Reviv , Alex Rosenbaum , "dovrat@marvell.com" , "pkapoor@marvell.com" , "nipun.gupta@nxp.com" , "bruce.richardson@intel.com" , "yang.a.hong@intel.com" , "harry.chang@intel.com" , "gu.jian1@zte.com.cn" , "shanjiangh@chinatelecom.cn" , "zhangy.yun@chinatelecom.cn" , "lixingfu@huachentel.com" , "wushuai@inspur.com" , "yuyingxia@yxlink.com" , "fanchenggang@sunyainfo.com" , "davidfgao@tencent.com" , "liuzhong1@chinaunicom.cn" , "zhaoyong11@huawei.com" , "oc@yunify.com" , "jim@netgate.com" , "hongjun.ni@intel.com" , "deri@ntop.org" , "fc@napatech.com" , "arthur.su@lionic.com" , Thomas Monjalon , Ori Kam , Raslan Darawsheh , Yuval Avnery Thread-Topic: [PATCH 05/20] common/mlx5: add support for regex capability query Thread-Index: AQHWUq4eRZFGO+dgVECt+EepfU8Hv6j9TnSA Date: Wed, 8 Jul 2020 07:32:25 +0000 Message-ID: References: <1593941027-86651-1-git-send-email-orika@mellanox.com> <1593941027-86651-6-git-send-email-orika@mellanox.com> In-Reply-To: <1593941027-86651-6-git-send-email-orika@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: mellanox.com; dkim=none (message not signed) header.d=none;mellanox.com; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [95.164.10.10] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 58365351-91ec-4c72-a115-08d823110fea x-ms-traffictypediagnostic: AM0PR05MB6084: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1417; x-forefront-prvs: 04583CED1A x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Ap6GhN6EFak2ayL/UBEBLH16//972HDKmmaB95gv9xUQHiq2ltoJ6lGLcZ2BlADv9uYNUIhs4vFNNs057c+hODhEp7CLxfw0UkdzTlbVDyVnwUSlIxZMaw9atLNaLirgTzU3CWIHsg3Fto0jD5TwB4KzwVEG6c2QsPEwPzQPf/4PN5Zw0GtlgL6/g+pM1ye8DX3chjnkopD2NyMq3LyIm0FwQ3qNuaG2KCKZ7pYJlmUy0PSAkG/iY57/OCHQf6GeoJYhIiLQUqKNoEa6Nhqa4wTLRivo6NjTPE4+g19JCB9QJfVIcMi8JJGnQAHp14DRpGxA5u/5IE8KW7OUkGJRnw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM4PR05MB3265.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(366004)(136003)(376002)(346002)(396003)(71200400001)(5660300002)(26005)(33656002)(6636002)(107886003)(8936002)(316002)(54906003)(110136005)(478600001)(186003)(6506007)(7416002)(8676002)(53546011)(7696005)(2906002)(66446008)(83380400001)(52536014)(9686003)(55016002)(76116006)(64756008)(66556008)(4326008)(86362001)(66946007)(66476007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: sVVxPVnfSq0WEEMMAhTVuacfK9MyYtm2SkyULDhHxkW7xFdBShuXxnTZbo5LfPJshUY+2yhuFgSUqEMAznLysXZB76Iu1L+bulPm3z3CsrfB63LJo0sOllZkurzM9ydKjazI+3Rlzkx9ZfjE5MpaIsQOVDe5JAvL/TfqpnBlDd2QwAkNskhOzLRnkWXi3EXAGaDd7ZJQ7VHP94S2ROvLT5y8xYoSH9CqusMsc3jzvnFZA8eEKU04pC961lxfhjQoAjb4NFT0NDDyYV4NjMJNxhYpk7N+VwJW1Fj5GEYpXsPNuOoLLzK2M8rCa0Dri5vqFOQj6Ot/0Jqg8LSfBHHOQ0JICnFyAl9dfTA9Qk0SgF767RizMZE17x+GlhZ0chwEV2xOHXaqd4xbna4qoKw3O51o5ylT6UlIlKi3fTG2iCDn6FA/e7TZaqj4mtVHmKp3VDTaj40nxI49qWoadaJWr+YOVOA9FuKqejlQJ41iYM8= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM4PR05MB3265.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58365351-91ec-4c72-a115-08d823110fea X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2020 07:32:25.9627 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jdTQNcN7yka6TR7BbvVv+FEtJZuiBvi7UepEICYrO3Fom6RI+smuBU46dcx6e0xov3fFK+t/GEdyF54RneQEAHbSZcSbhyhyFf1KVGggE2g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB6084 Subject: Re: [dpdk-dev] [PATCH 05/20] common/mlx5: add support for regex capability query 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" Acked-by: Viacheslav Ovsiienko > -----Original Message----- > From: Ori Kam > Sent: Sunday, July 5, 2020 12:24 > To: jerinj@marvell.com; xiang.w.wang@intel.com; Matan Azrad > ; Slava Ovsiienko ; > Shahaf Shuler > Cc: guyk@marvell.com; dev@dpdk.org; pbhagavatula@marvell.com; > hemant.agrawal@nxp.com; Opher Reviv ; Alex > Rosenbaum ; dovrat@marvell.com; > pkapoor@marvell.com; nipun.gupta@nxp.com; > bruce.richardson@intel.com; yang.a.hong@intel.com; > harry.chang@intel.com; gu.jian1@zte.com.cn; > shanjiangh@chinatelecom.cn; zhangy.yun@chinatelecom.cn; > lixingfu@huachentel.com; wushuai@inspur.com; yuyingxia@yxlink.com; > fanchenggang@sunyainfo.com; davidfgao@tencent.com; > liuzhong1@chinaunicom.cn; zhaoyong11@huawei.com; oc@yunify.com; > jim@netgate.com; hongjun.ni@intel.com; deri@ntop.org; > fc@napatech.com; arthur.su@lionic.com; Thomas Monjalon > ; Ori Kam ; Raslan > Darawsheh ; Yuval Avnery > > Subject: [PATCH 05/20] common/mlx5: add support for regex capability > query >=20 > From: Yuval Avnery >=20 > Update hca cap struct and common query hca cap function. >=20 > Signed-off-by: Yuval Avnery > --- > drivers/common/mlx5/mlx5_devx_cmds.c | 3 +++ > drivers/common/mlx5/mlx5_devx_cmds.h | 2 ++ > drivers/common/mlx5/mlx5_prm.h | 9 +++++++-- > 3 files changed, 12 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c > b/drivers/common/mlx5/mlx5_devx_cmds.c > index ec92eb6..74df035 100644 > --- a/drivers/common/mlx5/mlx5_devx_cmds.c > +++ b/drivers/common/mlx5/mlx5_devx_cmds.c > @@ -467,6 +467,9 @@ struct mlx5_devx_obj * > attr->vdpa.queue_counters_valid =3D !!(MLX5_GET64(cmd_hca_cap, > hcattr, > general_obj_types) & >=20 > MLX5_GENERAL_OBJ_TYPES_CAP_VIRTIO_Q_COUNTERS); > + attr->regex =3D MLX5_GET(cmd_hca_cap, hcattr, regexp); > + attr->regexp_num_of_engines =3D MLX5_GET(cmd_hca_cap, hcattr, > + regexp_num_of_engines); > if (attr->qos.sup) { > MLX5_SET(query_hca_cap_in, in, op_mod, > MLX5_GET_HCA_CAP_OP_MOD_QOS_CAP | > diff --git a/drivers/common/mlx5/mlx5_devx_cmds.h > b/drivers/common/mlx5/mlx5_devx_cmds.h > index 25704ef..bb14ca5 100644 > --- a/drivers/common/mlx5/mlx5_devx_cmds.h > +++ b/drivers/common/mlx5/mlx5_devx_cmds.h > @@ -90,6 +90,8 @@ struct mlx5_hca_attr { > uint32_t vhca_id:16; > uint32_t relaxed_ordering_write:1; > uint32_t relaxed_ordering_read:1; > + uint32_t regex:1; > + uint32_t regexp_num_of_engines; > struct mlx5_hca_qos_attr qos; > struct mlx5_hca_vdpa_attr vdpa; > }; > diff --git a/drivers/common/mlx5/mlx5_prm.h > b/drivers/common/mlx5/mlx5_prm.h index ede7810..bfbc58b 100644 > --- a/drivers/common/mlx5/mlx5_prm.h > +++ b/drivers/common/mlx5/mlx5_prm.h > @@ -1034,9 +1034,14 @@ struct mlx5_ifc_cmd_hca_cap_bits { > u8 log_max_qp_sz[0x8]; > u8 reserved_at_90[0xb]; > u8 log_max_qp[0x5]; > - u8 reserved_at_a0[0xb]; > + u8 regexp[0x1]; > + u8 reserved_at_a1[0x3]; > + u8 regexp_num_of_engines[0x4]; > + u8 reserved_at_a8[0x3]; > u8 log_max_srq[0x5]; > - u8 reserved_at_b0[0x10]; > + u8 reserved_at_b0[0x3]; > + u8 regexp_log_crspace_size[0x5]; > + u8 reserved_at_b8[0x8]; > u8 reserved_at_c0[0x8]; > u8 log_max_cq_sz[0x8]; > u8 reserved_at_d0[0xb]; > -- > 1.8.3.1