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 85A1EA0588; Thu, 16 Apr 2020 17:09:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 678B51D8F7; Thu, 16 Apr 2020 17:09:01 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2076.outbound.protection.outlook.com [40.107.22.76]) by dpdk.org (Postfix) with ESMTP id 860821D6FE for ; Thu, 16 Apr 2020 17:08:59 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e+vm6PCN0KSn1vhGtuQ5P054jSIl6A7w2fSqLEdEb0MuDejLZ/s7nt5oiia/lOGUNooZXk74eQBjzKg3MEJ1W0s3j1rzhZBOrkGYoSbQlmcgj0Zc0TQeSqHMriW2UM3L9abHq31/1jpvnw49p9O3M8l6L6fPcf0hPbtUCNuv3Xq2R364W2bUI3jrP1MYWN3lSSkxokk54NJ+fako8805/ukI63mnMBEXgKgn4QJMLVKLY7AHdw2XA2Bth3qkbVzRm2yWBIX8Dos7+LEAPfxVZhKfibQfFhlFpI9z2wvHOVNcYL+7xuj7RP/ye11FZGBY3HGrR+JoVpfnKyHaTKlMLw== 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=ucBrrYn34aetLh3TC9ICo/HYPfcZxrQNZ02KkpSq5K4=; b=R6+GrJgl0bOwS4UunquPXD4kP230a9Tgicaz+BeQa4yzh/UhhPoPhduQBBOIg1Wh8u+DrEJaV+ANIie64mRgoeXk7nxDfUy3jE79AuNhuklxG+MjHWKocVeQkVvZwySV5n5zLHIOyRaXSBVYBhHUkhSxiU4gNaqFsURQqbd0J7VLGAVWIV5Wh9ero5h5eax7kh8jMO1rx+vZllAC8SCuB8T2qyp2Io4433xIUZEagRzAMPqLHFtX6CFYvQJdr8AAyXJrRLsQBo/tKorxvCwIfsq7r7aMiIfPsoHOUbMOHzE5gAwA88taJ41Rl7fIzGdiOXkT/3XDD9MFNaiXsHoxMA== 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=ucBrrYn34aetLh3TC9ICo/HYPfcZxrQNZ02KkpSq5K4=; b=CbnQwvsb/hmhqWqD5usE8gWmGFpToIx/feWASPtAYxp8E9hTxuzH8ON9Ta5hMJrb2OYqUIdhRZCqfp/pZoFSpE3L5MIKT7XTkUVcUsY1ScFqEP4Mkcs1VysOI83zLRGuZw1Ec7u0Gy+tMRNicFWJ8qz2Gy6DCWoZhIDLdvUIf6M= Received: from AM0PR05MB6707.eurprd05.prod.outlook.com (2603:10a6:20b:15b::17) by AM0PR05MB6564.eurprd05.prod.outlook.com (2603:10a6:208:141::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.17; Thu, 16 Apr 2020 15:08:58 +0000 Received: from AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::508:747b:cc12:5f6e]) by AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::508:747b:cc12:5f6e%6]) with mapi id 15.20.2900.028; Thu, 16 Apr 2020 15:08:58 +0000 From: Raslan Darawsheh To: Suanming Mou , Slava Ovsiienko , Matan Azrad CC: "dev@dpdk.org" Thread-Topic: [PATCH v2 00/10] net/mlx5: optimize flow resource allocation Thread-Index: AQHWE5in+3omuTaEl0KY8CyUo5XNQah72qWA Date: Thu, 16 Apr 2020 15:08:58 +0000 Message-ID: References: <1586740309-449310-1-git-send-email-suanmingm@mellanox.com> <1587004928-328077-1-git-send-email-suanmingm@mellanox.com> In-Reply-To: <1587004928-328077-1-git-send-email-suanmingm@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=rasland@mellanox.com; x-originating-ip: [188.161.230.106] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: d2bb5974-7e19-4eb3-7625-08d7e21816ae x-ms-traffictypediagnostic: AM0PR05MB6564:|AM0PR05MB6564: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 0375972289 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB6707.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(136003)(396003)(346002)(376002)(366004)(39860400002)(66556008)(83080400001)(966005)(81156014)(66946007)(71200400001)(8676002)(6636002)(478600001)(45080400002)(64756008)(8936002)(2906002)(5660300002)(26005)(186003)(7696005)(316002)(9686003)(53546011)(110136005)(33656002)(76116006)(55016002)(4326008)(66446008)(6506007)(52536014)(66476007)(86362001); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZooY2emk90D19D7alxZz7keVA9Qk5rqciYzKNa3Has7UPRr+qMja64oW/+6MRoclUux7uMjgz9PGwZVrAQioCl0OW6C866YhsUMEytNhmhQNmRDmfEx57YP3JN/YzK5z42+2MyCw7PTtkveU3X77EEnbv/WziKKtO4eTMZdEgxP5rjNNdXvKc3DkxrCZ7To8oJQiREBmBuo2iHrKwUb5m3vME5mW0BqhpeC+4sQshqkXPNwyHKeZMlbigMVlCUR7nWCZwMDH3CyQPjFcm3dNP6GOBkyLdMhgvRE5rZsuzDXSFv8ZnXm4DUHixA62PCZRunSmIHEd34CMGnf4UuuhNwz0mpJkDT9fvEKuc4Mdcn1jtgzr6feHjQ8o2UbOKA6fY5nnQQme1YsE0sORXt7SsYyNLK8JiGsCVedzQkaSK2AiZyjVxF7J1w9jrChOBRc0As1ZKeyXY5A5Mdy9Xesgq4lKm8ZvI6rfP25T2AGA7v7PW2fPZPw3mdnw3zuoxE+thrF0pgUTW7GayTTM0zslBQ== x-ms-exchange-antispam-messagedata: E/zcw/aJhTUP/aFR1WltaoWz2wp+ms283iw85hGemF4LYYS1sIHeYSt7h/U275iZjCzJgfRvWXhm6FEt9ZjidSB8FpD1QM+I0Q5nCLEtEB88iQTYanwZBOqWKtLitNcsKgTpC264yjQOXDOU5oH2dQ== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: d2bb5974-7e19-4eb3-7625-08d7e21816ae X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Apr 2020 15:08:58.3032 (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: zLeSIULitEZ2PGZGEY0MZQu5w6jdeHTXxrICVqgirHHAR3nr2W+2fcXZuLltMan63rv9p2ag3UFi5pKweIKfeA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB6564 Subject: Re: [dpdk-dev] [PATCH v2 00/10] net/mlx5: optimize flow resource allocation 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, > -----Original Message----- > From: Suanming Mou > Sent: Thursday, April 16, 2020 5:42 AM > To: Slava Ovsiienko ; Matan Azrad > > Cc: Raslan Darawsheh ; dev@dpdk.org > Subject: [PATCH v2 00/10] net/mlx5: optimize flow resource allocation >=20 > Currently, flow may allocate several action resources during creation. > Both allocate the individual resources and save the object handles have > big memory overhead for the flow. >=20 > Indexed memory pool is introduced to optimize the memory overhead. The > resources can be allocated from the resource's own individual memory pool > and only the 32-bits index is saved to the flow. >=20 > In this case, it saves MALLOC_ELEM_OVERHEAD and 4 bytes for every flow > resources. >=20 > This patch series depends on the path which has been acked as below: > https://eur03.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fpatch > es.dpdk.org%2Fpatch%2F68143%2F&data=3D02%7C01%7Crasland%40mell > anox.com%7C59e0bbb209a74266645008d7e1afc7ea%7Ca652971c7d2e4d9ba6 > a4d149256f461b%7C0%7C0%7C637226017419678693&sdata=3DHlgoYtV3% > 2BaC2XQn8TvEA9fskBqw4j8S8aawqizbJq5E%3D&reserved=3D0 >=20 > v2: > - rebase to the lastet version. > - add the missing 10th patch. >=20 > Suanming Mou (10): > net/mlx5: add indexed memory pool > net/mlx5: add trunk dynamic grow for indexed pool > net/mlx5: add trunk release for indexed pool > net/mlx5: convert encap/decap resource to indexed > net/mlx5: convert push VLAN resource to indexed > net/mlx5: convert tag resource to indexed > net/mlx5: convert port id action to indexed > net/mlx5: convert jump resource to indexed > net/mlx5: convert hrxq to indexed > net/mlx5: convert flow dev handle to indexed >=20 > drivers/net/mlx5/mlx5.c | 148 ++++++++++++++- > drivers/net/mlx5/mlx5.h | 26 ++- > drivers/net/mlx5/mlx5_flow.c | 23 ++- > drivers/net/mlx5/mlx5_flow.h | 47 +++-- > drivers/net/mlx5/mlx5_flow_dv.c | 271 +++++++++++++++++++--------- > drivers/net/mlx5/mlx5_flow_verbs.c | 53 ++++-- > drivers/net/mlx5/mlx5_rxq.c | 47 +++-- > drivers/net/mlx5/mlx5_rxtx.h | 22 +-- > drivers/net/mlx5/mlx5_utils.c | 361 > +++++++++++++++++++++++++++++++++++++ > drivers/net/mlx5/mlx5_utils.h | 247 +++++++++++++++++++++++++ > 10 files changed, 1071 insertions(+), 174 deletions(-) >=20 > -- > 1.8.3.1 Series applied to next-net-mlx, Kindest regards, Raslan Darawsheh