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 314EAA058A; Wed, 25 Mar 2020 10:13:14 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A991A2BAE; Wed, 25 Mar 2020 10:13:13 +0100 (CET) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2059.outbound.protection.outlook.com [40.107.21.59]) by dpdk.org (Postfix) with ESMTP id E0F303B5 for ; Wed, 25 Mar 2020 10:13:11 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZxiIfEJH822yn67yFzjymafhBJTubczWv6iqPSIAzU0VEQANRL45YJ9ehN1HcX/psSC3rzB/RFYfp3OkUmqvc0aao5+yeqlhXTWraK0Cc1I2er5oHKz0a7GoFpm0UPkU6pcqnubGgVzU8Xh5ErFIaczDdWA8YZPlEH8doIzsezQJGyHe13AC2bkHSobOPXmt4ntKj2kzXclPsvv8ZognnA3xybbzQeF9/NUhEPsFoptLi7h15EYqDP+egqA4ah9Tgc+lR0yh/XaD1Nc9Y/MNikxaNLYXS3+AyxfqPcRsWJyNwDi13pQDMb6bzXVKW0MsAAYYPS3s4ilS9jJrbB7rkg== 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=1iyibqRg7EZKQvbigEYaeqKuUqoVm+TnfnvgTzNiKjE=; b=LAeDnvfuDBIphZJc/M6M5J3E41c3Lm4/5ELsKASD4/bO4LPvDKc7/vWuwC97wKP4jagkVW49KYvVsw6/iaVy4LsVSlqRiwaHa2IShMayQOD7aU8qfnwW3wQSlJMrGHKFVivii359Gnicp8AdmjyAJKksGjfGPsvWXx8AcUxjR3ih+byMW3DNId2WEj8ioi6UzURe0jFY9iduLbxif5MNBoFCBLyGFQewBQCuMxwQXpU3CqxiFa5EXIgJwJ1tjgnzOl8949rwDhPKcOrhOfE6+ukR6geaN37h6JGwcb8WXaBiJQA96igdD5fNd6LFznr0dXLyLb9Dn+rbVq10lIdmPA== 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=1iyibqRg7EZKQvbigEYaeqKuUqoVm+TnfnvgTzNiKjE=; b=ZZR8fQfBc/kC9Q0i54ipoM9XVoN3h4hn70Sy1+mFQt7nPLn/f5Al0D1m4Ye/0rt8D67pXQN6PEfZHfNPGhGz/5fz6DrcQnClfPCPGmnfFWjP2hHtAIIj8oq4ch0A69IXC1zk3dQjmN7nyt83BLx/bKMXSA6OZN3MHAWgZLYxmRg= Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com (52.133.39.139) by AM0PR0502MB3746.eurprd05.prod.outlook.com (52.133.47.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.19; Wed, 25 Mar 2020 09:13:07 +0000 Received: from AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::a564:a117:9022:1fee]) by AM0PR0502MB4019.eurprd05.prod.outlook.com ([fe80::a564:a117:9022:1fee%7]) with mapi id 15.20.2856.018; Wed, 25 Mar 2020 09:13:07 +0000 From: Matan Azrad To: Bing Zhao , Ori Kam , Raslan Darawsheh CC: Slava Ovsiienko , "dev@dpdk.org" Thread-Topic: [PATCH v4 0/4] net/mlx5: move to non-cached mode for flow rules Thread-Index: AQHWAfGrzkbLzxMK50aaQVeLlPt996hZBwmw Date: Wed, 25 Mar 2020 09:13:06 +0000 Message-ID: References: <1580816002-159035-1-git-send-email-bingz@mellanox.com> <1585064040-28201-1-git-send-email-bingz@mellanox.com> In-Reply-To: <1585064040-28201-1-git-send-email-bingz@mellanox.com> Accept-Language: en-US, he-IL Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; x-originating-ip: [77.125.94.232] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 2b272a75-8581-4f73-735c-08d7d09cbb2f x-ms-traffictypediagnostic: AM0PR0502MB3746:|AM0PR0502MB3746: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1824; x-forefront-prvs: 0353563E2B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(346002)(396003)(366004)(376002)(136003)(6636002)(186003)(8936002)(66446008)(81156014)(81166006)(6506007)(66476007)(5660300002)(52536014)(66946007)(64756008)(55016002)(66556008)(9686003)(76116006)(4326008)(71200400001)(2906002)(86362001)(7696005)(26005)(478600001)(8676002)(316002)(33656002)(110136005)(54906003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3746; H:AM0PR0502MB4019.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; 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: E5gVnwmOoxO09oHpseMNNnjhigudfjDCZE8XbJgEFcu8sGDTPcD3a+WH6rHAIFgFJKQbaB/YWFkyzY6R+enyB/gdUxjG31nGhMmebJ/dVh1OJoU5JUv+Z2hMA9cl8CgxLjX9oJzKy0DfAYrlPu6rbHUC3cj4waJl6AA0KAJnBxKao878XE/TBat27mmUwenb1G3dCR9W6PWs61F1uTTY913PyEOzMzt+e3JTR1lAqsqtw3vPRKG1B+HTHTWHo3hIAvbSCvb6tRtT85OiX4vAhJuUkS4tGiW+kH3JEvcuVO8NHfMYr6ya7HPaHuXamYGWwMdz8pPzrFcB+3KTGCVWaZkbeWmwXFGYKnGuVkP0A6LIJ3u5O6h73kQp+YGPEvClTgrpfi7+w3FrrVtJMNUSOULWjrEHMGt/XnW/nJ256hC2Ay8b3CbtYfE4CmvY6Oie x-ms-exchange-antispam-messagedata: mcBS+E9OLQdUiRAMEMeWlPv94uXnD6IiuN38JhivxqP1MBWiJHnEJc163w+9ho1VvO5u8QyBTsO2GYcClb2nFG4haVfAroRTUN2/A+8ke0x9jJTxIi39nYhoHTUCIFGgx3PKba9EwH5dEFcLoew7ow== 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: 2b272a75-8581-4f73-735c-08d7d09cbb2f X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Mar 2020 09:13:06.9049 (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: xM1CDE3hnmW5ykz/UteMl+rf0vATBikdOBqsX6SySub2JTUJR8z12zIR9updfGG2t1XddtmJkFRv8O2LzCuwhA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3746 Subject: Re: [dpdk-dev] [PATCH v4 0/4] net/mlx5: move to non-cached mode for flow rules 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" From: Bing Zhao > This patch set will remove the flow rules cache and move to the non-cache= d > mode for both DV and Verbs mode. >=20 > In the device closing stage, all the software resources for flows created= will > be freed and corresponding hardware resources will be released. Then the > total cost of the memory will be reduced and the behavior of mlx5 PMD wil= l > comply fully with the ethdev API expectations. >=20 > After closing a device, all the flow rules stored in application layer wi= ll no > longer be valid anymore. Application should synchronize the database and = do > not try to destory any rule on this device. > And after a device restarting, all the needed flow rules should be reinse= rted > via the create routine in the rte_flow lib. >=20 > --- > v2 Changes: > Fix the compiling error with MLX5 Debug mode in the 4th commit > of "net/mlx5: introduce handle structure for DV flows". > v3 Changes: > Refactor the device flow related structures to support non-cached > mode for both Verbs and DV flows. > v4 Changes: > Fix the code style warning for stdbool type and a typo in the > code line comments. > --- >=20 > Bing Zhao (4): > net/mlx5: change operations for non-cached flows > net/mlx5: reorganize mlx5 flow structures > net/mlx5: separate the flow handle resource > net/mlx5: check device stat before creating flow >=20 > drivers/net/mlx5/mlx5.c | 18 ++- > drivers/net/mlx5/mlx5.h | 9 +- > drivers/net/mlx5/mlx5_flow.c | 197 +++++++++++++++++------ > drivers/net/mlx5/mlx5_flow.h | 179 ++++++++++++++------- > drivers/net/mlx5/mlx5_flow_dv.c | 311 ++++++++++++++++++++---------- > ------- > drivers/net/mlx5/mlx5_flow_verbs.c | 156 +++++++++++-------- > drivers/net/mlx5/mlx5_trigger.c | 26 ++-- > 7 files changed, 573 insertions(+), 323 deletions(-) Series-acked-by: Matan Azrad