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 05C21A0597; Wed, 8 Apr 2020 14:52:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DFC571C11D; Wed, 8 Apr 2020 14:52:19 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2046.outbound.protection.outlook.com [40.107.21.46]) by dpdk.org (Postfix) with ESMTP id 8D2EC1C0C7 for ; Wed, 8 Apr 2020 14:52:18 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UPUG/mWtJlf2MSC9CY0AiyfA9Hd2IAhCOwRMH4GjVzJuPnZD60R9m0Os+BSNRmQZuuBwVr8Wqnr4OhupKU7zhInlKjT7f+tqwFeJru+yj2bJxa+1qatz5iGuiBNy34Za1aw3GrDaUivlxvOLV/pINAKrqK62IBf5GThDAOo3i/Ps9/OgYHLxaWKfSeoxJPcan/rsOf+LPRtlXIKQVY9cdVjLkcKFt/BMToCJXcLFuy1pt6vwAtVgouJldjqIbNXrFQ943dUNh7HhvgLGqfJfIQiLxuPuS3fQSCq5cR136sX8Hd+u+qJIWMDpG+hfOCfsIljtykl+WYihWrTmQlTP3g== 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=MZzeMhPkt/wlMdihqUSWnVwvpz3HQzA/yQ3VcHDbePc=; b=gyUe4SL/a+U0QvDyaxv6/DjYT7BaD+wOEqKlkJIE0mP8cLOioVzp9Anuehv7sbohBD7n2r5CnwAjN+DmXLNG0TTlL1qFnX9PasVCEMYRywq+62O/G8j2/pPfT3j+US2MYlD/tGa5HOL8dChrvzKnocVGBVDqLahQ5bRKSbq1SjutMf+h6Q0Uomx1OWz9K2qlPqeI1A81h4e0rhq8Eqmdq1h4qHslhcd8sbvjWkHNtP3c8DGcGZ9rDJaC2mCh86efGv2aed/cnLggymUmFxW3VuWfnBmMx5kR0TIQFDs2RV489ExrEsDxfj+Mwkz2JUoD6rYXmlBvKqHWktOipVA9CA== 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=MZzeMhPkt/wlMdihqUSWnVwvpz3HQzA/yQ3VcHDbePc=; b=UjR60gEHyoQ988exesa+5cIxTzRzJB9/ENfJgK6GMZSHTtRWHL4vzFrhB4cHIBfavj17hMhK3m5ObcNebduKbD8Lbd80vIkVNaLUWJw6IRbEG9zyFgdcGgetAFLo3V4ldLLOW4+qn9kXdxQubojtW5UsOrYKAUPHzX2SPJ0ga+0= Received: from VI1PR05MB6718.eurprd05.prod.outlook.com (2603:10a6:800:13b::9) by VI1PR05MB5917.eurprd05.prod.outlook.com (2603:10a6:803:e5::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.16; Wed, 8 Apr 2020 12:52:17 +0000 Received: from VI1PR05MB6718.eurprd05.prod.outlook.com ([fe80::6d6a:e905:6b4b:addd]) by VI1PR05MB6718.eurprd05.prod.outlook.com ([fe80::6d6a:e905:6b4b:addd%6]) with mapi id 15.20.2878.017; Wed, 8 Apr 2020 12:52:17 +0000 From: Raslan Darawsheh To: Suanming Mou CC: "dev@dpdk.org" Thread-Topic: [PATCH 0/8] net/mlx5 counter optimize Thread-Index: AQHWDJD/Fcae9CA/s0WijKoqZSyfv6hvL95g Date: Wed, 8 Apr 2020 12:52:17 +0000 Message-ID: References: <1586231987-338112-1-git-send-email-suanmingm@mellanox.com> In-Reply-To: <1586231987-338112-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.229.14] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 241e6030-3af2-4f65-fb47-08d7dbbbab43 x-ms-traffictypediagnostic: VI1PR05MB5917:|VI1PR05MB5917: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 0367A50BB1 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR05MB6718.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(136003)(366004)(396003)(376002)(39860400002)(346002)(76116006)(26005)(7696005)(66946007)(55016002)(186003)(64756008)(66556008)(66446008)(6636002)(52536014)(66476007)(8676002)(6506007)(81166007)(2906002)(8936002)(81156014)(9686003)(71200400001)(86362001)(5660300002)(33656002)(316002)(478600001)(6862004)(4326008); 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: RHhGgHJc79/FVZIp+n/VWI0GYVAL1QGMfnA36CTgKc8yl411dkLA8GeNlzA0AxhWdALPLIjeE5Sb6RhZS7kjeW0XNGqsYPZ0rmxldZsUofiU0D6cqrw/BfxY5z8VdzLk0RfoP/tKgLArqOmRgqcAeU4Yx8CZwFAo1gdUmUHLBE9qPld/y0Avk6OYGdhlDAzgO/d4xsYJXns72h7FlF8n61S437aSfoLzu4A53r9ts3G5o/Nln2a/4XOeQDU+oQTHMZQUkhqzLAgtUq7BWdLHIWOPydQg5whLSp4W4B5Db24zqkcmrjtSpWA8e1bdSp1tdyn5MHrXkPu9RZoFAJykuCjbRtzgHBYsDgUSH06kvI52RYRaelCrGSHmc5KKNzgwUhXkE+i2D2yM814yEccatj8PgBwya1m10gNrWv2eK9qFxeEh1EPzPZM7AQmTaj1P x-ms-exchange-antispam-messagedata: XCc/xt6UljizilLR3qoz0HwWqoPSdqRyv0k0xTZQV+MWiGFb9/RefY/agkTQHQd2XzF1zM71bXuq4C8TIPSqW8ctG8Xt7Gs3ajY5SNjQpfXgfbPytUzMY6yk24lFrbGYYOU0STm+BrQkHKMHMMwaBg== 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: 241e6030-3af2-4f65-fb47-08d7dbbbab43 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Apr 2020 12:52:17.4094 (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: hdZkQ9d4cPjPfn5KNlFs9E8b5sNtmQQOeGrlPjxQTCWLABIK/U1qg8432z7TQewkGqBCJZ3Ut0Xt01NC0Et7tg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB5917 Subject: Re: [dpdk-dev] [PATCH 0/8] net/mlx5 counter optimize 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: Tuesday, April 7, 2020 7:00 AM > Cc: dev@dpdk.org; Raslan Darawsheh > Subject: [PATCH 0/8] net/mlx5 counter optimize >=20 > In the plan of save the memory consumption for rte_flow, the counter > memory consumption will be optimized from two perspective. >=20 > Change the counter object saving as index instead of pointer in rte_flow. > In this case, since currently the counters are allocated from the pool, > counter can use the index as it is in the pool to address the object. The > counter index ID is made up of the pool index and counter offset in the > pool. >=20 > Split the counter struct members are used only in batch and none batch. > Currently, there are two kinds of counters, one as batch and others as > none batch. The most widely used batch counters only use limited members > in the counter struct. Split the members only used by none batch counters > to the extend counter struct, and allocate the memory only for the none > batch counter pools saves memory for batch counters. >=20 >=20 > Suanming Mou (8): > net/mlx5: fix incorrect counter container usage > net/mlx5: optimize counter release query generation > net/mlx5: change verbs counter allocator to indexed > common/mlx5: add batch counter id offset > net/mlx5: change Direct Verbs counter to indexed > net/mlx5: optimize flow counter handle type > net/mlx5: split the counter struct > net/mlx5: reorganize fallback counter management >=20 > drivers/common/mlx5/mlx5_prm.h | 9 + > drivers/net/mlx5/mlx5.c | 6 +- > drivers/net/mlx5/mlx5.h | 52 +++-- > drivers/net/mlx5/mlx5_flow.c | 28 ++- > drivers/net/mlx5/mlx5_flow.h | 10 +- > drivers/net/mlx5/mlx5_flow_dv.c | 445 ++++++++++++++++++-------------= - > ----- > drivers/net/mlx5/mlx5_flow_verbs.c | 173 ++++++++++---- > 7 files changed, 428 insertions(+), 295 deletions(-) >=20 > -- > 1.8.3.1 Series applied to next-net-mlx, Kindest regards, Raslan Darawsheh