From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4374CA0C4E; Tue, 2 Nov 2021 15:24:02 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CAFC741139; Tue, 2 Nov 2021 15:24:01 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 8D8794068F for ; Tue, 2 Nov 2021 15:24:00 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10155"; a="231223861" X-IronPort-AV: E=Sophos;i="5.87,203,1631602800"; d="scan'208";a="231223861" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2021 07:23:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,203,1631602800"; d="scan'208";a="531554976" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga001.jf.intel.com with ESMTP; 02 Nov 2021 07:23:59 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 2 Nov 2021 07:23:58 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx608.amr.corp.intel.com (10.18.126.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Tue, 2 Nov 2021 07:23:58 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.103) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Tue, 2 Nov 2021 07:23:58 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AMmRGfFSI2N2zvziOaw9Z8ijs1hKzGijn9whTMRGOAgd9hW9YCtCWv0h5sUQjwRtiE57yCwwXU9HCBAD2wq74x2Av0fWYa9wl44TSEs5A0nzH4J9MjlVPm792rM8pRS53wHuDfAGqRpQ/hnI7XbvKQjCTB45nCp345+Cp6/dOR4nqFWze5co51rMLdR4JP803GMBqV/PsX9KaMCdSM52tGI1T4fUKWMjIHZ0bdP/WHHrgbX0mjrBGDiXMT2rFheTlrMm7Qdslo4jtyNGBwkPVVrWnIdfNR9A0/oS+IsZrSjmif+cEbV8UK6mhsTLVqU289xAySbS+jd2MG3V+6SzXg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lZPDAhfeJbPXoBAZLu1qLKXrOprI8oaFgj/p5RvO884=; b=AmreUZY9Vl/ATnfhCt8cLxpL8FJ+2h9xsdbtxnRQipz/6s3j5yYRPjYPRyaze+9e0C4fPabDN06EPJOlROP9bVYTFO7rAi8uCWEYvLDo8KKO2gD8qZWAO+yOcezRHxJ/sklzAU/X2zAA8rcWognNsUzAvtS1Ioy5hVZKIwRSW1ssvBdpQ56gnVSthzf+RdNZzHS6nWtaraYcvj5fTT31ttb2lOzT2z3koCpMNEG3b+rRSISH1tDQH59ldxxxtOhLfcYdSqrIylkTKzihZFPRGEvX7vkYG1kEq4TkECXKw7nmDdikpJK+VRW+HcbqUnBw2SXIpyaO02YWPzw+2EQDWQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lZPDAhfeJbPXoBAZLu1qLKXrOprI8oaFgj/p5RvO884=; b=SxLJuj+pxmny/SgNw5OnFym5Rm0k2gC6mcjhFPFOInt9k/PDGH9PgH1E6N3cTTQGtkj3bxV1vJZ1wlMAmIXHQpQAZWcijpDpT4kFE+OBsFFbSw2iay7SURrW5j830X5lxwxM/aS0ytAKKLHse5cg3Zv8Y6x/13a5pdVkLNq4ZYc= Authentication-Results: oss.nvidia.com; dkim=none (message not signed) header.d=none;oss.nvidia.com; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by PH0PR11MB5079.namprd11.prod.outlook.com (2603:10b6:510:3d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15; Tue, 2 Nov 2021 14:23:57 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd7d:29be:3342:632c]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd7d:29be:3342:632c%5]) with mapi id 15.20.4649.020; Tue, 2 Nov 2021 14:23:57 +0000 Message-ID: Date: Tue, 2 Nov 2021 14:23:52 +0000 Content-Language: en-US To: Dmitry Kozlyuk , References: <20211021063503.3632732-1-dkozlyuk@nvidia.com> <20211102135415.944050-1-dkozlyuk@nvidia.com> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20211102135415.944050-1-dkozlyuk@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DU2PR04CA0174.eurprd04.prod.outlook.com (2603:10a6:10:2b0::29) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 Received: from [192.168.0.206] (37.228.236.146) by DU2PR04CA0174.eurprd04.prod.outlook.com (2603:10a6:10:2b0::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15 via Frontend Transport; Tue, 2 Nov 2021 14:23:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9aad66c0-163a-44a1-2781-08d99e0c6849 X-MS-TrafficTypeDiagnostic: PH0PR11MB5079: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aUKXB6DHMnD8JSbqlg8qkuVfS0F5ivNucYQxAKHE6Luly9zgozoJvtidSbdAFcWK477vJwQxMqzbK0vQtZM+Hj6yqJLiRFftKCxKF3hc7MYVKQVZYCW3jM4k+VJHR3AeG5BHjCkQ5HIzBtOMLPboDqw86Bnlo5LIFb7u7LoQMeneztIfZUyjnSyMdTdNgM8O/fXRHuJW53VYzyd4/96q6mDJlczYbGvvVL7GlPTp1RM70i8fE9diakp1MObICPSLKsg+kZi68PMblB6+x/zSxZ/Au75gyp0K++Os5HGM+veqPu427KhXDehM5DO80MKOoC76SFKGDS7wpDP0/wcJZ0jRVSNMK+axmRLCvcAFuATRdIUxEQ+LqC/qSj0eXS8TsBYNYfwynOTJpWhTdsLwr4CGc85I++tzYcB0EAsR03t1/qagYjCfhejykTG0LYcy9rG7VPjwhOb0xOv+ulsf4eXBvWKGXXS5WtD3D/Kwj6y53jyb0WL07PLGt5Cgb4+dvBmcWzcQfEGxtxIMHCgqtRIG0jTQzlXXb/8F/+MV9l8oYB4WhpMegM78DPG4ZsOTorxQFV2zifx1RZ99Qd6ZGMvDeRQquSAgv54SCk70eTyKxuKPyOOrw6M+OMTqytkQcBJviEN4yNTG33sBc/CRCzkZaBxVRPwtOI9A8WW0lDkVDoefnP+vEHVH5sfEbs8Gk/Xfp5rtqU52dbK58ZRe9e0MLRjY5hsWHR+a6ZAp4um3PG4r41YmkSmAuq0CopbSxk0dxrT+u4Y0qAXu8QwGwTYtX6G2Mmf0JwugQ287okBdvELsVZDYRld+D9c2DfuKsOO/FWhFrqprhfchuLKHDA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(66556008)(6486002)(44832011)(8676002)(2616005)(956004)(36756003)(966005)(16576012)(316002)(38100700002)(66946007)(186003)(6666004)(53546011)(5660300002)(66476007)(26005)(8936002)(508600001)(86362001)(83380400001)(2906002)(82960400001)(31696002)(31686004)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dnNZeGdRK3k4TVNETnN4aGRmLzZWcTNtemRnSGRON2NXaysyRlRhSGM0VVVY?= =?utf-8?B?anNORGtKM1grZ0daQ3NVbGpZdGVtYkRlMWdSdjBxMm5DTERSb3lhU0NjV3pl?= =?utf-8?B?VHBQUFFtaW14bjZHWWNnS0w5Qm9YU3NpSHlCQzhvTlZLT28xbDZEZjIvM3Z6?= =?utf-8?B?MktIMk9UQmV0bG5YeXQ5ZmZXOFhMdGYzNGRpZFI5YmlQVnU0YU1nSVhheHVo?= =?utf-8?B?RGdYelVwejVYY24zMDc1aTJhMHI4dHppT2VqclV5YS9sU1daVW0yY3F4RmJ3?= =?utf-8?B?V21UMDNXT3lxcEZUWC9LcG00eW1ON01IOG1EOFVEM1lhQmVnUlFNOENtMnBQ?= =?utf-8?B?a2NlQW03MlE5anVYUnVLMFliamVZR0czbldoMzhybU9qNEJYWlgyU0JJWFNM?= =?utf-8?B?anNnZVFRSmdReVJkaVhVM2Rqbi9weERs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99e0c6849 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2021 14:23:57.9123 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 55qZhHELjoQN4+e2Ap3gy6d7t49auGkai3DsD+1ewBVaBXSgRhcaZNuGHL5u/NIsXBrxqNvKxzBlCcDTupsM6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5079 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v5 0/6] Flow entites behavior on port restart X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" On 11/2/2021 1:54 PM, Dmitry Kozlyuk wrote: > It is unspecified whether flow rules and indirect actions are kept > when a port is stopped, possibly reconfigured, and started again. > Vendors approach the topic differently, e.g. mlx5 and i40e PMD > disagree in whether flow rules can be kept, and mlx5 PMD would keep > indirect actions. In the end, applications are greatly affected > by whatever contract there is and need to know it. > > Applications may wish to restart the port to reconfigure it, > e.g. switch offloads or even modify queues. > Keeping rte_flow entities enables application improvements: > 1. Since keeping the rules across restart comes with the ability > to create rules before the device is started. This allows > to have all the rules created at the moment of start, > so that there is no time frame when traffic is coming already, > but the rules are not yet created (restored). > 2. When a rule or an indirect action has some associated state, > such as a counter, application saves the need to keep > additional state in order to cope with information loss > if such an entity would be destroyed. > > It is proposed to advertise capabilities of keeping flow rules > and indirect actions (as a special case of shared object) > using a combination of ethdev info and rte_flow calls. > Then a bug is fixed in mlx5 PMD that prevented indirect RSS action > from being kept, and the driver starts advertising the new capability. > > Prior discussions: > 1) http://inbox.dpdk.org/dev/20210727073121.895620-1-dkozlyuk@nvidia.com/ > 2) http://inbox.dpdk.org/dev/20210901085516.3647814-1-dkozlyuk@nvidia.com/ > > v5: > 1. Fix rebase conflicts. I am still getting conflicts. Did you rebase it on top of next-net?