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 8287BA034C; Thu, 24 Feb 2022 23:57:51 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 21CF24113D; Thu, 24 Feb 2022 23:57:51 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 55C054113D for ; Thu, 24 Feb 2022 23:57:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645743469; x=1677279469; h=message-id:date:to:cc:references:from:subject: in-reply-to:content-transfer-encoding:mime-version; bh=ngLZXLET2SRMHS0D4FZ+XH7Mn4OYm5K5OD8d9snb0r8=; b=P8mvhXV5m0t+SKfgCzqt3aBSFUb3qN9w8sHHv7oyCkrxcpOO3UwGTD4B 1xo6TWhVwhG2HVFq887iivuZyuxIw4719lheg5Vo08Dpd6LN3KX4c4AUa FdOGbfkyPSqAr8cfl/ikLeFQCE0MYBYKcPk3Zul/5K1O5cfPSX7m3cAu0 FXWcILo+F25SvR+AOaxTS69BD9o5Yo9Z3nmpLBFRC/P2x2+vYkR0HOraI JBPkPjDksxvVgFrM2x5kP9viIdgJSxeU8nPfLoZSd3BxfllQjhWIfP6hD HzxcTNNhyAXOStBSC/8yASTCSPDEas3XX0PEKblLQURMdDGFtK7GEkVP1 A==; X-IronPort-AV: E=McAfee;i="6200,9189,10268"; a="251199628" X-IronPort-AV: E=Sophos;i="5.90,134,1643702400"; d="scan'208";a="251199628" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2022 14:57:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,134,1643702400"; d="scan'208";a="506497344" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga002.jf.intel.com with ESMTP; 24 Feb 2022 14:57:47 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 24 Feb 2022 14:57:47 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Thu, 24 Feb 2022 14:57:47 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.105) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Thu, 24 Feb 2022 14:57:47 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BNP9dyqhd4vkAI3ykbNGchlyA2of8/TQO76ece85a7lfewx3lKGvq+4Mv/SSdGRqJJm1ye/MG8SepjPEet82zszeUGWK3w79QkF5UScQoon9HqDn6PFo305R0Ou+1ZRZoXSBqmcYOK2Tv4B+HS/o2HBdHJaizvm+q/3DO5c45Uqfdz9jUgy4kDDewMnd8R0lRZnHz8ZLpEyacoVxpzZgu4hkWsNnTmZY4odTFI2iC/F92Smyu3stcTAF42tQZ0wG2JWekm3omYx5MxaPu3INpcqDTB6Km0yjKcs4LLpWvDoPmuSZI8zR9TRQSiYCdPB3KROy0BuBsLiIiI1uLlOy/A== 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=4m0seXugc8J3oCeC75l+szPD7qOv2htB4dIRY+Jakf0=; b=O+JUxBrKq1Qwfvt4Rq+Tl//RVboGz0feL6Fpl5Rr3/3xw1f5xuc68asR8UnsSALQ2lJDAP5RlBEd2Iu5eOX9wV+5NnnpapeKMxuVLNs21YVMZShk08HRulTeLlEEHVC2Lx0hq1rlIHU/PSgeRWnxEpM+NrJOOfuOocY23D79buCDot80QI1p+mEPFVu/pkAvYNUx4mDlDi3qOHNPh2GIazqyDwIwcKKu0YCmharZj5NZQ+Tp7bxGOmoRXmcZcik5omoEy033MfODVEZwUKhCYE3qbe+xUoWNKnFZdcGT/EE8F2xukkNfnfyllRxIiQB04QFqrxJz0Q8Ay1D3FkuFuA== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by CH2PR11MB4311.namprd11.prod.outlook.com (2603:10b6:610:3b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.24; Thu, 24 Feb 2022 22:57:44 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd21:6fbe:8308:2ecf]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd21:6fbe:8308:2ecf%5]) with mapi id 15.20.5017.024; Thu, 24 Feb 2022 22:57:44 +0000 Message-ID: <8d29947f-3523-0db6-b092-9ed385441c96@intel.com> Date: Thu, 24 Feb 2022 22:57:38 +0000 Content-Language: en-US To: Suanming Mou , , CC: , , References: <20220210162926.20436-1-suanmingm@nvidia.com> <20220224134051.18167-1-suanmingm@nvidia.com> <20220224134051.18167-3-suanmingm@nvidia.com> From: Ferruh Yigit Subject: Re: [PATCH v4 02/14] net/mlx5: add HW steering low-level abstract code X-User: ferruhy In-Reply-To: <20220224134051.18167-3-suanmingm@nvidia.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0197.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a4::22) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7f2ab72b-6e24-4116-bf0f-08d9f7e91182 X-MS-TrafficTypeDiagnostic: CH2PR11MB4311:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OnRe+vlMG3UAcUrBqbjGBj/vEYv1p5nAUNx74nwzGICI9VBhWeNWmHW2HhQcb2kjJonkV9GJxx65nu8kLaLL6iPEQVyyRoMHJMCy4hNFzc62eULK2cDpvvupdaKCchw6zybR/6k6HDGUlm8qILU/XVpEMQzohtO+bHgIaO8PTE3Yz5M32+Zenxgjg952YXhgQKxM93n76brlfeZKX3wuxikdwplUIK64CDHQCE+QC7oORViJBw38HQEzUQMghEDqXrzmGR5zujCcjDk89HHbnSal9l3aUb/CL9WEchqBpZeiFOGQSigBTNAguJ93tzW0iFAw3yhkR686BRWpz7Vv/9dEsJZ5po48U1sLDpnE5gmtLgRftlvaTnEy+DvKupU6ua3xYtykPcjhtjf7XRv25aG7xO0d4SYyXlB6JW0FQWtNVX5rjSu+5t/AEpHn1Nw1uLuf1HJLsoup/dXrpEITmsS/RBDhuTt4BLPwhjY4SAoVshQ9mcHaqROpti9KgJ6GFOTHo2nTGKhvmJfNX5IG7ls8ymtLCsmio5XUiXIpXrX3eBtmr3TTLxi5Vtt7vdAScFdtwMMVJPOsBw4BtdDIy56p+RApBGgUu18OlMbKuHsKoTZ1A6xo6EadKVt4swU/jXMDXV3VTnCS+CBqoapdiOLjnPMmavVnZfdSRdP2rAa8lLVxoS4l0YRC+0WX5WMlmTfmMMO/p95i1wQa3n3MLA== 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:(13230001)(366004)(186003)(44832011)(2906002)(31686004)(6512007)(66476007)(66556008)(66946007)(6666004)(26005)(36756003)(82960400001)(38100700002)(5660300002)(8936002)(6506007)(53546011)(6486002)(2616005)(316002)(8676002)(83380400001)(508600001)(86362001)(31696002)(4326008)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dWg5Z3FOc0YxMTF5V0d2Ry9XVmNEQmJOMXhRZ0piL0tCTU1wUkV2UVFoLzM4?= =?utf-8?B?SHFCNnlMblRHbEdLUnlpQ2xyREpvT2RnN3prT0pFNDRsMUtXWVJuaFVmck1m?= =?utf-8?B?UWdHeE1ET3lUbkIyOHJEWFdMT1lnN1pUWU5BTzFBVUdyWEh2d3NZd3lBeVpJ?= =?utf-8?B?Y3BoQUxmRUM4bTZhOXFVN05kaW1UTzlQTk5lT3kzR0pFMk9xQjVxNmNoNTky?= =?utf-8?B?YjIrZnhRMkdmQUxDbDNVT0U4OEoyUmpIckF6REFiWDBrTFRKZlNiL3JPejRw?= =?utf-8?B?WkVtNGh2RUpYY0dWZnc4L0FXbjJoKzhYUEE1YmUwMmg2WUV3YjZxSk9kazVt?= =?utf-8?B?b3lYY3NOZHF0Y0V3WkNaemd4RlArM0M1amVLVVZIbDNtUjN3VngrMmh5aFlG?= =?utf-8?B?NjVqWGRzYm5abFNJQzVrQTZlWU03SitRNU42Q1NNUkwxTXpWZWFGRWFZNWJH?= =?utf-8?B?TmZPSUVQMW9na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B?MHBMS3pwZkk1TWxnRDUvK0JUNDdNaVg4OVpQeGlHTWllZmZYNytjRW5iR080?= =?utf-8?B?cU5sRjFmM3RoTnZZendzQ3ZIKzlGb3c2MlBQUmMwaFJhZGFKb1VNa2dUYTg4?= =?utf-8?B?NUUrbjRKY3Y0aEhiUnoyVlZMM05yMktVSFR4MjA1L0phbUVnSjR4MUVNUzlS?= =?utf-8?B?SU1Md2VjL1VJRGRkYzZ5Y0crM2FReE1RbllyeVNSR2poQ2UrK1RoRzA3WHNi?= =?utf-8?B?SHU3bWE5RVM5UkQ3bE5yWUgxaTNuMWxhcldXY2UySCtOd3NiTGErbHJaK2RZ?= =?utf-8?B?b056OGNqWVZtck0wVnFsT2pRTERyKytBeG5ybmFkU1NNejBQTmZGVWl4b0tB?= =?utf-8?B?bjNRVHphdHhuaWRsOWlWREZMVERmb05ZdDlnOTNrK2hmblhZRWhvNWhRTFQ5?= =?utf-8?B?eEVWTExhZ0cwU3duVDJsRk9YUnJZYmQxejNQT3VVbzhQbFZleCtSNE5iVFF2?= =?utf-8?B?VkRLTEViU1FXZm9yeThQNWVCMFNuQWREdlBMQVc4WDJGUnR6eUZteU1MV0tq?= =?utf-8?B?K05RTUNROXc5R0s2QWhSajBKdFg3RVdVa0VyNWw5YnhvdGpKSmdTeGdjVGJB?= =?utf-8?B?YkpoVmdRaThWTnF3SzBJM2VMRUZXWWc4LzNPVmtMQWdPUTd3UFpPaTNYb3ZS?= =?utf-8?B?WkFXTHpKZnpGcDNSa0ZCRHlqN2E4WWhxUXdrY3lrZHdGWDA3RERJamFySzBx?= =?utf-8?B?MTY4MUxzdXUrREl0TVVQdzVxOFlQYWdORzZKeTV0bSs0MlR0SVZBSnM3U09s?= =?utf-8?Q?SDxvWcp54NhL0L8oJ8AL9n0=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 7f2ab72b-6e24-4116-bf0f-08d9f7e91182 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Feb 2022 22:57:44.7544 (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: 6lvT/IFKOb/QvpsOK8CrWbBpy1tfRB3AdYQ9nCaTILDgIaEygKN9CVBmKjJ+0TjXOXlw9lvbO6yM2NAXtXpLCg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR11MB4311 X-OriginatorOrg: intel.com 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 On 2/24/2022 1:40 PM, Suanming Mou wrote: > The HW steering low-level implementation will be added later in another > patch series. To avoid the linkage issues the abstract stub replacement > is provided currently. > > Signed-off-by: Suanming Mou > Acked-by: Viacheslav Ovsiienko > --- > drivers/net/mlx5/meson.build | 1 + > drivers/net/mlx5/mlx5_dr.c | 383 +++++++++++++++++++++++++++++ > drivers/net/mlx5/mlx5_dr.h | 456 +++++++++++++++++++++++++++++++++++ > 3 files changed, 840 insertions(+) > create mode 100644 drivers/net/mlx5/mlx5_dr.c > create mode 100644 drivers/net/mlx5/mlx5_dr.h > > diff --git a/drivers/net/mlx5/meson.build b/drivers/net/mlx5/meson.build > index 39a2b8c523..393b2c97ac 100644 > --- a/drivers/net/mlx5/meson.build > +++ b/drivers/net/mlx5/meson.build > @@ -14,6 +14,7 @@ sources = files( > 'mlx5.c', > 'mlx5_ethdev.c', > 'mlx5_flow.c', > + 'mlx5_dr.c', > 'mlx5_flow_meter.c', > 'mlx5_flow_dv.c', > 'mlx5_flow_hw.c', gives syntax warning [1], will fix while merging. [1] ./devtools/check-meson.py Error parsing drivers/net/mlx5/meson.build:16, got some tabulation Error: Incorrect indent at drivers/net/mlx5/meson.build:17