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 EA1DAA00BE; Wed, 8 Jul 2020 09:32:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A11891D9AD; Wed, 8 Jul 2020 09:32:08 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140073.outbound.protection.outlook.com [40.107.14.73]) by dpdk.org (Postfix) with ESMTP id F158F1D9AC for ; Wed, 8 Jul 2020 09:32:06 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P6ceBd2idIO6f3K8jlvHMtx1sGJvppcBWwEpLRQ++J9LPc85UDoUTx0E8esjyWcwPP3BW2MyemlQYijwwoyr/1Z9Py3KwlmaeQmvAzc/bPbzP+f4fM44Vt+MK5Et1dm1N4mrR0zzWyxKz+Nt+iM62NDC54su7HrKjHUD7DVXr7cly83ivmGEsDmWaiDYxzVeRsKRmQfdHhb+qW7JEIk8Bm+ZmdeD2VUWRfPLgHL1mgVvBRYQmtFpoiQNeRnnZxMsGTDQZEoZQHLc36mN/buzNS+xs98n/G6d2n6srLKb6cnMY1ukL9OlwVaIcvq/CHlhVIGo2mkFM7qgk9VYC6xLxg== 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=xJ/p7v/TqI/RwvWvz41/bHkRBnSDOR2E5BfJ2lnpTK4=; b=enrdr9HaEfbAFCdJO77/2oROAOo03Or23ZpCdclNZHXZmWhEJxnWS7yabMXkeeprwd+X92J6Rw5+yKqzgjIfyS0RiwiaGkqVwxtQkTMJM+N7IkpvjLGOiK5659PBD+ksS0rc8RdruC8YPmoYbnwHStf/fdDTSN3bNM7ur857z4iNi86OTX4JeJ2AJ6LIOsBta/JUZV4NLWZwXMPnL2R0Ur3sBRjTT82lyOdtvaaZVgfpsRKTTv3+bt4T5DUZGP/Ld4R9krFKJtbw/r0xxufk2eAa/8f2rq+DTclLn7h6u5L1GbnmaUYX2pBiCZpjufexm550/RijZq4bbMV3qZ6Mpw== 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=xJ/p7v/TqI/RwvWvz41/bHkRBnSDOR2E5BfJ2lnpTK4=; b=IauUDAPL0hZM8itJcYoc7c/UNuRsxeqmwMIIFD5H1BZduhSxDc4Vxm+DfK38QoqJYdtDOQXGf33P9nIHfO4Df6CeLiOqazPKxxKX+1FpMZIlXadQ+S0cup1IZvmdp9RIsXoWe1tAbnjNzSznyGtd954cMEiDS/0GzjZFvJU3bOE= 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:04 +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:04 +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 03/20] common/mlx5: add MMO and regexp structs/opcodes Thread-Index: AQHWUq4aQqJFOjWAUUWGL2na6aT7uaj9TlgA Date: Wed, 8 Jul 2020 07:32:04 +0000 Message-ID: References: <1593941027-86651-1-git-send-email-orika@mellanox.com> <1593941027-86651-4-git-send-email-orika@mellanox.com> In-Reply-To: <1593941027-86651-4-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: d5f36c4e-dd02-4599-a116-08d823110310 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:4502; x-forefront-prvs: 04583CED1A x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: y90dyXfZyg+iXYh1K+047nW5XAARNBA2MRmpTLO3wvMp4jBXyU4KvKLo2LdLBy5cU1UG8gjbKh2QpJlgPdbWphh9oZS5uPkpKKjQjmtCWZyYa66BIlKsBBYIR0rj9dX2LYkgL13aCHbcPUpTGVo5fIcqmn5vKLTZUzIWXEHgcro7l/m6RAhW6zMny327FSOdG2sCdm7mkI/zRPidxZNrVi8nKu7yeF6a9Jb03oW7UXNFDXsqJE/6t82vgHhA2hnYOOcx500Ieqv/eEfXKow4/sWZnBWBqnNsxSjE+CQscpw4NMfhWvX9tBtPszreYxao9ZpzT5j23Fh3q+VNfX/Hww== 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: 2FmtQpDAiLlHxJDQA58p6F+lzRpiwbMickiH99MU6qNe1AC+1ap6cT9o5CpLETtJAmAbedMYbjL7wSRptCcaj0hv6ihNG+2Adt6S3Vd3SPmoNcWtWLpa6DQgWTzKXaSvfZBlJpgwCncxrxW2HlTSS5kP4hhlCS7KyNt5UQCZn2/KmhZ3CG3Fr04xA4OqWi0F2ZXCsrOlorxMHJxhXmTC4IigrOe3yCD5vWX4Pnkh7SRqZjj4NVkch8cWxn/DMZHbpA62N3yr3/jS4IuWz68wBmGpU/Aq8zljI4idnF1KwxvYWnGBXRAvInD4MArokO8JZKJe4pNWaQSl4XRIfhkhTThHrCbhtBIJLIoo88vdfrbIQ4q56e9LakEI825qh1BSlq7q7dwBZaNSngiMCtZdTYudynbhb8x/b8u1C8oqtiyB9Pg9HdXjR8ldgXIRHfQEhd6NwCHYNTkRpMwE1IQAIdILa99njK9Nl/GTaQXg130= 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: d5f36c4e-dd02-4599-a116-08d823110310 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2020 07:32:04.3464 (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: CiN/cQA5irh6GVpm9Bkbs90knwENWxjWjr4ngbq+vUqcGyBU25dVdmtRCpYaaFG/pzHvlgYQAOtXCwBHZJ5LKaf8AhSvqY2pxlhuBb/aGYQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB6084 Subject: Re: [dpdk-dev] [PATCH 03/20] common/mlx5: add MMO and regexp structs/opcodes 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 03/20] common/mlx5: add MMO and regexp > structs/opcodes >=20 > From: Yuval Avnery >=20 > Added General purpose PRM MMO structs, and regex specific structs. >=20 > Signed-off-by: Yuval Avnery > Signed-off-by: Ori Kam > --- > drivers/common/mlx5/mlx5_prm.h | 40 > ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) >=20 > diff --git a/drivers/common/mlx5/mlx5_prm.h > b/drivers/common/mlx5/mlx5_prm.h index c63795f..c2b9a20 100644 > --- a/drivers/common/mlx5/mlx5_prm.h > +++ b/drivers/common/mlx5/mlx5_prm.h > @@ -373,6 +373,42 @@ struct mlx5_cqe { > uint8_t op_own; > }; >=20 > +/* MMO metadata segment */ > + > +#define MLX5_OPCODE_MMO 0x2f > +#define MLX5_OPC_MOD_MMO_REGEX 0x4 > + > +struct mlx5_wqe_metadata_seg { > + uint32_t mmo_control_31_0; /* mmo_control_63_32 is in > ctrl_seg.imm */ > + uint32_t lkey; > + uint64_t addr; > +}; > + > +struct mlx5_ifc_regexp_mmo_control_bits { > + uint8_t reserved_at_31[0x2]; > + uint8_t le[0x1]; > + uint8_t reserved_at_28[0x1]; > + uint8_t subset_id_0[0xc]; > + uint8_t reserved_at_16[0x4]; > + uint8_t subset_id_1[0xc]; > + uint8_t ctrl[0x4]; > + uint8_t subset_id_2[0xc]; > + uint8_t reserved_at_16_1[0x4]; > + uint8_t subset_id_3[0xc]; > +}; > + > +struct mlx5_ifc_regexp_metadata_bits { > + uint8_t rof_version[0x10]; > + uint8_t latency_count[0x10]; > + uint8_t instruction_count[0x10]; > + uint8_t primary_thread_count[0x10]; > + uint8_t match_count[0x8]; > + uint8_t detected_match_count[0x8]; > + uint8_t status[0x10]; > + uint8_t job_id[0x20]; > + uint8_t reserved[0x80]; > +}; > + > /* Adding direct verbs to data-path. */ >=20 > /* CQ sequence number mask. */ > @@ -759,6 +795,10 @@ enum { > MLX5_CMD_OP_CREATE_GENERAL_OBJECT =3D 0xa00, > MLX5_CMD_OP_MODIFY_GENERAL_OBJECT =3D 0xa01, > MLX5_CMD_OP_QUERY_GENERAL_OBJECT =3D 0xa02, > + MLX5_CMD_SET_REGEX_PARAM =3D 0xb04, > + MLX5_CMD_QUERY_REGEX_PARAMS =3D 0xb05, > + MLX5_CMD_SET_REGEX_REGISTERS =3D 0xb06, > + MLX5_CMD_QUERY_REGEX_REGISTERS =3D 0xb07, > }; >=20 > enum { > -- > 1.8.3.1