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 A0277A0562; Sun, 29 Mar 2020 17:50:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2FD80FFA; Sun, 29 Mar 2020 17:50:26 +0200 (CEST) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50047.outbound.protection.outlook.com [40.107.5.47]) by dpdk.org (Postfix) with ESMTP id CE33BF3E for ; Sun, 29 Mar 2020 17:50:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ka5kBBkPK1e4mmw9wRXQT26VQ+D/Hlku6NWPEdioA76u+YGh4zkiRndF1fUUkfN1Y4ZLtNjpoaZTLb2HciYhdLojjYKLpPJgNYBnY2izc2hn2isFjpszC5eaIzhLTJB8FoR2SJK3aed6MBFs/qeneEixNCzcX3StO/4dFhusc8+RvHUVMtSAfyepVi9fmQfAYBmO5StfsSoGjggUEmo18fhBM67bTkjzzosmKqt55ayfkQ22E2HCMjLqw+EmvjQKg+eG7L7TkigCLTJOfjq0NLVsau6t9zllq2kPfZ0xaxY2ex73fnzhkHWuW5d4wu2FbDQmZZYlpC//62zKO5e97w== 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=RYFyWZXmXp3hz96DALV+VgSGKVv9tXJiyLdkSZAaMp0=; b=LrsYD3XF2q+zSGYdzyNuiws4nm/XbwJqf1zqomehJHQ5xPLevy4maOARJvqJQOc9uKV7Bg8Q+/r28Vf3tU0DZG/QVzO5ZVVwdgFptdkUem6M7n7jT8hd0LyA3uMVAH+wHaDLJFdi550EG9vO0qhIBlhOs8xjjGbBMncqvm1AzqZ61nVLScIHn9xboB58h4DoEhe61L+DZRj+HHwa+9kQ4Fg2jMbg41ec1LJVhekEvaP8zOBfPW9C+RgoOYu1qxtRB53U+gLNjBNcvl3tvD8MZv7TDlBdlqGc4g4ewNrgxICiv4he3AU9dALzuff14/7MGx7W32Xu7uPYqFJB1UTOsA== 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=RYFyWZXmXp3hz96DALV+VgSGKVv9tXJiyLdkSZAaMp0=; b=coVKTrI5rYXLgOz0rlfekTpiIr3rOAGAbMJkCB1ck1TchzcQEth+FdRvhxsEWldjLagf8R7Cc9b+FZDheYHR49UNN3R1OKbZhpZhuWZew3+MakGdMkm7kBGAgc+2vp4M7ISQlaR9EMRiRq+WTUYSRFMc1IUirFjn3gWtypx6AbY= Received: from AM0PR05MB6707.eurprd05.prod.outlook.com (10.186.174.145) by AM0PR05MB6723.eurprd05.prod.outlook.com (10.186.173.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.19; Sun, 29 Mar 2020 15:50:24 +0000 Received: from AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::adbd:45ca:54:bba9]) by AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::adbd:45ca:54:bba9%7]) with mapi id 15.20.2856.019; Sun, 29 Mar 2020 15:50:23 +0000 From: Raslan Darawsheh To: Bing Zhao , Ori Kam , Matan Azrad CC: Slava Ovsiienko , "dev@dpdk.org" Thread-Topic: [PATCH v4 0/4] net/mlx5: move to non-cached mode for flow rules Thread-Index: AQHWAfGrVH4A1v++f0mEW2k0g8y2vahfv4yw Date: Sun, 29 Mar 2020 15:50:23 +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 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.130] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: bbee5c30-9402-4060-745e-08d7d3f8e4c5 x-ms-traffictypediagnostic: AM0PR05MB6723:|AM0PR05MB6723: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1824; x-forefront-prvs: 035748864E 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)(376002)(136003)(396003)(39860400002)(346002)(366004)(86362001)(76116006)(71200400001)(66446008)(8676002)(110136005)(316002)(81156014)(81166006)(6636002)(66946007)(66476007)(8936002)(4326008)(66556008)(54906003)(64756008)(7696005)(52536014)(478600001)(5660300002)(186003)(6506007)(53546011)(55016002)(26005)(9686003)(33656002)(2906002); 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: shF8NC29wLapF1XLB/u2brC0XHW+7w36l6HngXRpx+bYmOupdEYiVte2I4Xmfl4Rj2rIoL+a+xCAp3J/uxe0xJ0+Me8E2kf8coLHIxwKL0s9bSvWjNPz9hHlMl2Lv1zCLjhYcE/VMYr3rbuScFh2pri3yRFdQrvVxQzPD97qqwhMh437Gg9/qAZhk1Im29/vyVqH7TRidD9LwoMyG7Dk31frHexQt/2pnphsq3Rz386SevkKNUQxDXZ3CM5aOenIjqDfk2LqCUJACtEcN+pj6izluaZPGor3C83KgW7AqiPK5MBmfiB1xQ3Wo2nbgoKMfQHkzWifwXRY9TbEhI1Q/fula3GkZ5WI4kuYIznLWCpVrCxCIgBqpSyV5O4+cTdrjFv4NsL3ElFHgj+KljcjtT5i0GziLIhBsDtxjl80UTmMy12DZ0dsZpHVM/ds73P+ x-ms-exchange-antispam-messagedata: qDXFuRu4rgyI/2AskCJPqYv+SyF/dgN0m7L0kEXpLTVoD7N4EOiRo3nH351hiPIhIzL5ZrNOok3TFLF8xdLaLRE6aJ+iQFGsVYTLCciVOdaGR13fJPRchkpI8W0c8Knu0+cDC6xiJ26WgORQvayPXg== 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: bbee5c30-9402-4060-745e-08d7d3f8e4c5 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Mar 2020 15:50:23.8425 (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: zl2FmfC0Usn9eXE2cnyc6okiWoBV4qH/NzbMLQeLw4By8W9XxVOHGQJbCteGhWgi983ZKdYbgzCIObDNh7v6Kg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB6723 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" Hi, > -----Original Message----- > From: Bing Zhao > Sent: Tuesday, March 24, 2020 5:34 PM > To: Ori Kam ; Raslan Darawsheh > ; Matan Azrad > Cc: Slava Ovsiienko ; dev@dpdk.org > Subject: [PATCH v4 0/4] net/mlx5: move to non-cached mode for flow rules >=20 > This patch set will remove the flow rules cache and move to the > non-cached 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 will comply fully with the ethdev API > expectations. >=20 > After closing a device, all the flow rules stored in application > layer will 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 > reinserted 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(-) >=20 > -- > 1.8.3.1 Series applied to next-net-mlx, Kindest regards, Raslan Darawsheh