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 95251A00C5; Fri, 11 Feb 2022 17:14:59 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E54F941144; Fri, 11 Feb 2022 17:14:58 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id A4F1C410E5 for ; Fri, 11 Feb 2022 17:14:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644596096; x=1676132096; h=message-id:date:to:cc:references:from:subject: in-reply-to:content-transfer-encoding:mime-version; bh=8IUfhSftKMElfd/vtwQlCn1wJb6S3QFik3pzqKBApD4=; b=UziG13gp/xqK6yAopm9dKL48XCHmu9eTjXur+5tDytONPffBsio5Z2+9 dyE1WtD57qw00UFIkL3Zfr5Ni7NzzzlCAQtV4MJE8MZajICFOuIstHjTs D28dRc8Sqw7NP14kcy80MzkkIyXqLD2GbC6X7GRJ+PkP+mXijOeo0qU0P BuvcXQzYJe4OMYqOk+B4NudnXHUinOBC+KddAg66jKGUpLpTUaFvvJkwf Ez0UUm/VC9iWr4SIkhjuR6NhVsWH/d9/ldCnCqGXNSV6oCxucPZUyuIOX y19h+yR8tODVwkAVQdBG0jgrSW5XGWtXme32Iyvahb9LLX0QaRY4XgPUa g==; X-IronPort-AV: E=McAfee;i="6200,9189,10254"; a="249506699" X-IronPort-AV: E=Sophos;i="5.88,361,1635231600"; d="scan'208";a="249506699" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Feb 2022 08:14:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,361,1635231600"; d="scan'208";a="527006869" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga007.jf.intel.com with ESMTP; 11 Feb 2022 08:14:53 -0800 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Fri, 11 Feb 2022 08:14:52 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Fri, 11 Feb 2022 08:14:52 -0800 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.45) 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; Fri, 11 Feb 2022 08:14:52 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R16b3QmLy6Os2jk8LCa9sYXgSttt3GaNmqDz7tiwkyxqW+HNHFLH//r790u2AkMUinCRdVc4pjoMIhuAwfctGWLWBD4FtFkB76JpM7SOPiWlafA83V0Vpa1DgwrU/j+0xiV+hN80CL5t2B6YCW9/CehNiQiexCbrsyzT8v2UVyi+Bqvwfw6Yae8Kp7yXnkrp11+4YJfZDuwY/CZWBNgPai7niKBkZVCT5OJh81BvBQOUkoUIMGcuage9vfVHGNEgo/N3uFkB4BqKy/yqToNNoi93gy+FSo4sIEy7TbpLVr3QqIXa7aVuvHBdXFAVpwGwrSMOiIaYj5FJuzlYKSmC8A== 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=yMwGC9pYRyoL7jS8N+yQ3muK28kBfcRH9aYWdPAjpeU=; b=NHAmAsqS3lDHkyaG+YjA6kr8eFaCvmcFFqyxgfbXhr1M9tDyvMrvgY3xQuPkj7bFisqHQ+BUf8NZlAtkitr+OIzuhwbv4DKKdDKb9CBom4wD1JUfS6oByPJlfz+qHHnfOrtNDEtHHmmWbk70DkNx7vRtn1xoag6dK9aOslGiNZSl9v81TV8xh/ZNIkuMTj3myNZp1TjDd8UJqMt9vFac7nYt4jl/Z2GvQsMZCL8xTWpg5vE+WHwtOAq+n8cmt0JRijCzxHKNwnQlfDpBLw5ZsK2oxIR2cvV4+RehvUsu9LJF/AFa0wM2iKHXJ2GLgFGiqISAaLuo3rjaxnOPEuT2bg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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 CH0PR11MB5394.namprd11.prod.outlook.com (2603:10b6:610:b9::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.15; Fri, 11 Feb 2022 16:14:51 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::98be:5506:5020:28a2]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::98be:5506:5020:28a2%4]) with mapi id 15.20.4975.011; Fri, 11 Feb 2022 16:14:51 +0000 Message-ID: <58ba60c8-3f0a-cba9-194c-c3da8fc46b79@intel.com> Date: Fri, 11 Feb 2022 16:14:46 +0000 Content-Language: en-US To: Sean Zhang , CC: References: <20220126084404.40178-1-xiazhang@nvidia.com> <20220211014530.77711-1-xiazhang@nvidia.com> From: Ferruh Yigit Subject: Re: [v2 0/4] Add support for GRE optional fields matching X-User: ferruhy In-Reply-To: <20220211014530.77711-1-xiazhang@nvidia.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0133.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:193::12) 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: 6531e0c9-b15a-4e79-da5a-08d9ed79a19c X-MS-TrafficTypeDiagnostic: CH0PR11MB5394:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dfC39s7JF4ZLLg8QgS+6e2GcbVXFGl0w+PfXTuZnLhi5oT4X/ZKsRq0XZqIIcYRo8X8AUmvQpefPbf8wG4zRQ67bUpESUkXLiJy+f1WfIFjpGnVsmal6OUnACCmaDP0bcNLCsLxaVyWxJyAMth7Gkut9e8Qpl5J8h/4x1jQtnBPd1z8aIlxSXC+h1vQLshxM1TSseJvODRYSb2Kq8kIWUuowH8B3wuAtj6DCunZ2CTbdRzcncjbNjkuSdyC0aXcaouvaDSIwA0J02D5fmL3AO3Cm9gOPlerscpuCXQ9/KyeHZolAto0t4gOwooMC+7o2/vK6oehnQBQTyyZ1oumU03j6mII2xbPQNDBxFLhCXtzxRF1ZNhK2D2ntQxAsH0p7K/4AWJ0HrkCqCLMif/xl+Q0h/ag/1yuXrBTqijKUVsCUJY73KpQPjit+vnjRMEhQBteUtNFQwiY3JRlkOoEcl/+VyyRzCGVc8/9plRg7TnTVHtfP36KjcWodpZByslLDMXY4Ovwts1m1ZLnxUZbuY3vKqtoXmB/vseCl80jkDGAHsNH0kV1pcRPGuxDGXuybib5xlgfPqliyE2GghnZ7PloGeRFuXzlbMyih9HlHH+qPwozst82XkdJDqnxC4SHdFEDL/QdGxkByLDlgV5eyvT9s6QLtPP6l5PGmv/Gb33EaXnuaf6lz/3sW7JklUJ5RdYugNA9ITR0uAlK/4WTU5Q== 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)(82960400001)(5660300002)(38100700002)(53546011)(55236004)(6506007)(44832011)(316002)(36756003)(31686004)(6486002)(8676002)(66476007)(508600001)(6666004)(2616005)(8936002)(4326008)(66556008)(31696002)(6512007)(66946007)(186003)(26005)(86362001)(2906002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TFJUMjg2dWtZS3ZDbHhDb0taWUR3RWxvVWVicmV6MmhjVVBaN0xLRDB5Wk5R?= =?utf-8?B?U1lhUTc3NGNLNDQ4VHd4aUJ3WlhBL2UvdXIweVZNVEZhK0YyTW1hRk51RlQw?= =?utf-8?B?MEQweDBqcDk2VjVCeEVxczhYSnYySXpVUERlSEVFNWFEOGxjTzRMMWMyVHMz?= =?utf-8?B?ckxGbUpNUDFZMTY5dENjckQ1UzBBLzBhNG4vRzkxNDRxL0xiczVPRmRRYUU0?= =?utf-8?B?Z0hHYzBpSWJFU3lTajFFTXozRS9kK2lXaytSZlQwRFI5YnAwOUc4dlFLdnNQ?= =?utf-8?B?VVl6eEJTTjNkL0k3K3dINDRidWVQZzlpdG45MTVkbHFRbHFRYys4amVIenNJ?= =?utf-8?B?MVE0bDlWajJQUG1vdzZ6ejRoWlZobzlpSFZsaUI4VTRZZmdWUkJxQ0hUUHZu?= =?utf-8?B?bFBBVWZLbkhVVkhjdTVrSTFKVXhvYUt4MTAvaGJ1cGI5amJwYkl6OUk5Uzht?= =?utf-8?B?VWNPM0dBQ0poekdtZ1dFdllMUnJ6em1XZlN5TVRsUjJvT05qMkthN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FXcTdZZE41UFdIemVaS3JkekFzamRpTzVCR2c1?= =?utf-8?B?TXhRQ3dzRFNEZ0MvRTZ2eWVCbzZrbXRZNThhS3RlUTFsczIwT2JjSTZlSlhq?= =?utf-8?B?VlQwUzRIaVRTVW1RTVVHdHRMTkc1a0pKRlhCem9IWjRwOSs1Tk1vUzlHbHlV?= =?utf-8?B?eWlMOUo0emE1cnNLbDg0MWU4R3RuUFZib0lMcW05Zi95SnMwMXdwZGsrTEs1?= =?utf-8?B?cFZUQUQzWklLcDJ3M3grVzBKeFp4RS8yVUVoek5xQnRHRGpBbVBBNXZ0TTZq?= =?utf-8?B?WUk1cVloMnpmcW1CTmYwMjVpbzBGd251TG10VlByVkJvbjhndlVoRVV4YW44?= =?utf-8?B?RkJjcGVGbDZ5VSs0UU94TzQxOWJOaVNjQ1c5WkVpajhXQXBUUDhGV0M2ZDQ0?= =?utf-8?B?alk0TEJGZHAybVFZVyt1MzkvOFFua3VrZmFMM0pGODNyZzkyV2p2ck1PUmE1?= =?utf-8?B?eHhNN0hxZUJHOEQ3VDNTZXRxYjJjZ3g2ZmpxVFMyY3VJMURlQ3dydVNhOXBU?= =?utf-8?B?L2ZpVVZEbTZJUFlWay9ZSUxZYlRYQVp5akVNNHFPY1dFZWdmZ3dhT244UDl1?= =?utf-8?B?cmE0bFhMMW1HMGdHRFU4SDFheXMzbE1UZEpBaTVUWWUwbDNtTzU5ZVhaenFh?= =?utf-8?B?M3ZzbDJ5K21MeVFGZmgrRytuU2kybEp1bWgvbWJKanR5YXNtU2ErZCtRa3dM?= =?utf-8?B?U1d1UlhtUUpGYklXL1dFd1BpaUdiWkxFSW9RK01zM2lwZlIzbUdkRG9OOHdG?= =?utf-8?Q?FWtlc+xqF7t0yS5KDiUD290=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 6531e0c9-b15a-4e79-da5a-08d9ed79a19c X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2022 16:14:51.0997 (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: j3n56dpgdLxS7Y89bJJbYvtS4SheYiShg4g13OgytvUGLwKvvqHEOewv+EyCk4by7xF6Fzlh9cVY4OYW9Z9ZUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR11MB5394 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/11/2022 1:45 AM, Sean Zhang wrote: > This patch set adds support for matching optional fields of GRE header. > The optional fields are checksum, key and sequence number. Currently, key > field is supported with pattern gre_key item '.. / gre / gre_key value is > xx / ..' with field gre_key in misc, but misc does not support matching of > checksum and sequence number of GRE. > To support matching of checksum and sequence number fields in GRE, > rdma-core needs the capbility of misc5 and support tunnel_header 0-3. Since > tunnel_header1 is used to match checksum, tunnel_header2 for key and > tunnel_header3 for sequence by hardware. If checksum and sequence number > not present in the pattern, use misc as before for the matching. > Application can still use gre_key item 'gre_key value is xx' for key > matching, the effect is the same if use 'gre_option key is xx'. > If using gre_option item, the flags in gre item should be correspondingly > set. For example, if using gre_option to match checksum, the c_bit should > be set '1' (.. / gre c_bit is 1 / gre_option checksum is xx / ..). > > change in v2: > -changed the struct defined in rte_flow for gre_option item. > -fixed raw encap issue. > > Sean Zhang (4): > lib: add optional fields in GRE header > ethdev: support GRE optional fields > app/testpmd: add gre_option item command > net/mlx5: support matching optional fields of GRE Except from driver patch (4/4), Series applied to dpdk-next-net/main, thanks. Set merged partially to be able to get library patches in -rc1, driver patch can be merged after -rc1 when reviewed.