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 47927A00C3; Tue, 1 Feb 2022 11:50:24 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B548840698; Tue, 1 Feb 2022 11:50:23 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 319E440691 for ; Tue, 1 Feb 2022 11:50:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643712621; x=1675248621; h=message-id:date:to:cc:references:from:subject: in-reply-to:content-transfer-encoding:mime-version; bh=KmOKFIGXeuTWh/KNCKk5U42MwLMdrmbmdf+vlMYE4RA=; b=ZPS3ImqyMknYEmpiaCO8HDWOwptPmJC8QZwxBxXTNRxNWF8Cb4E06Wlg EzXK+TaIo7iJvXalzk6L8kovPp+VvwMRbwJyGIIqcd4pf/SkS9sVPnhUD gX66wtRKZtsvgzCeXMkXEquX4/jxvnG11MM+0y9oGHiEcPgEKUd33J439 jJ04sH+kEJD1IvvUappd0NNmDSka5w1PGBKrt7rJECZ18BEaIza9TJtBp vXyprcSO6voTOtbWOiXiudgAZhsWQcth/d9Y0ldZAre3JKkE/FVOeDscQ +bTPXl9oAO8nye5JJz4J/IX5G7+fxOaNeCKUBwIJPbWPkkuXcNwo+9mLE A==; X-IronPort-AV: E=McAfee;i="6200,9189,10244"; a="227638594" X-IronPort-AV: E=Sophos;i="5.88,333,1635231600"; d="scan'208";a="227638594" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2022 02:50:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,333,1635231600"; d="scan'208";a="768893822" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga006.fm.intel.com with ESMTP; 01 Feb 2022 02:50:19 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 1 Feb 2022 02:50:19 -0800 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 1 Feb 2022 02:50:19 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Tue, 1 Feb 2022 02:50:19 -0800 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.42) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Tue, 1 Feb 2022 02:50:18 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hULgtH0qRRiY6H40CX+DXHukDWfsM1HbMzmftVlN5rBVJ0166lXUq1XoOczA9q8jqPIeztzqOsZ2f0lGwDpuID2Ltw3oF9Fwragj3BXOFQ8jD2y85zXBdmr9T6zHC6VjRY1LDPex22BR4i8dkGaf5MmYTHBG4ZX7yOM+TkI3BhLOxBPcnYrh6kzIO4wcAcyx4kO50QBUAcqQzNWVE84CyqoLomhzmWIz7+0tbA+/dpmkD/jRwzvs2YV6rJpnCY8fLSqG/G3mw02yMVDwe3KhvWh92odM1J4pEgaPP0nbW3eTaQ/66eNRwBnlOXnu6gertiR9yE4Rp1R7cjw2HJi99A== 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=qzfFONS1o5bEpB+Z3Vlay/eNCpQNDSiTr/BFjdz9oTc=; b=Fq0n41g+UpM77TBcpwtXhiJMqJkTCYKD/0eNvEsz0/kOirTox0D6olGJ1oV9jijkGPjNBrfbCxGchUKdbJ10MDbnRVWxh8v1EvAaJKQTJW1qSwbkG6YBVR8MpOUVMAPkaVjK9QY7zOXrYnjpP2HJ4wnYwvoLFbPzZW5kUNcYB1G6fjNTUjh4W5QmiAci/NoTVvGuU9NO4LYHrbqECeyPudNBIqB/Z5nGaXPytRqV0ORtSstpF9+aln1F4aMPQiebkbXY/vGOePQl9kvzGKlkirROOswT7miILaQ8WG1HHYPuEQXQqTvm/+AnWCWLnAwSYHgYmx0whD30oxy2PgV7XQ== 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 BN6PR11MB4081.namprd11.prod.outlook.com (2603:10b6:405:78::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.17; Tue, 1 Feb 2022 10:50:17 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::5046:8550:928d:850e%7]) with mapi id 15.20.4930.022; Tue, 1 Feb 2022 10:50:17 +0000 Message-ID: <11c7ee09-6511-6685-de02-3b570f22b016@intel.com> Date: Tue, 1 Feb 2022 10:50:11 +0000 Content-Language: en-US To: Sean Zhang , , Matan Azrad , Viacheslav Ovsiienko CC: References: <20211230030817.15264-2-xiazhang@nvidia.com> <20220126084404.40178-1-xiazhang@nvidia.com> <20220126084404.40178-5-xiazhang@nvidia.com> From: Ferruh Yigit Subject: Re: [v1 4/4] net/mlx5: support matching optional fields of GRE X-User: ferruhy In-Reply-To: <20220126084404.40178-5-xiazhang@nvidia.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0306.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:196::23) 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: abf99f69-b58b-493b-618c-08d9e570a20c X-MS-TrafficTypeDiagnostic: BN6PR11MB4081:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2bWw2xccv3p4Libhcq7eDBJOo2HANWGIZhanUMg5nGw85nAvdtKcVBPCeVaYXZj7MXReVc2h2TsVtOvX3pF3tg0WzSL3+fHoybv0kUix3Fa5MScB6JqgcRW+oLoJ6ju2eO7XcMeyfClW2ep35eL673I7hQKjTb+5vY3pOPs5XisMDBX86AOBL75eUp9B+v0mlM2M/mcB3MLw8itpuYwEgeZOrK004ib/btGMbol0ajhFoHMIBvOZ2VU77+gkkOI9ZLBHEF4qP3oDdfIUKA2fEMeJsKA89gxDQ/n8eVQpZxso57bwmQZjI8ZLxyUMLOG6amxs4XsFixS5aUIZxGDfvQh1LJdJxx3HMlAAskf8V9uccTRINoIzhuKJ/zbZk9QhXxO1dTE53HF6vvMfUbEH1pQ5oQOoITl6MprKLAh65x7tIWGwkFI++IXjHqXJqGYiyA6wLu57LdKU7kaXqUOg6EGN665IrET2iEss2M+0toWlGhb8pn9LtGnt6zeQPHnkUXqEp0NwIloxeNk4tu9COM1sZlP24LyNN5qc8TdXuKtz3/CAXIP3so+35GzNvAZfyb109VZFSOqJxqymFjzw9PP7CtRl4bOj4On2jpUOYTKXLCU4Y/cr6fjtyBaMw9wRc3EHKvQCXCvd/zAprN1iKBw0wvpoW05CAWd75nFBS2vDsHFttJIQV4G6AxiYdEb1REoX9UMi2wIOzMxAOQA1DA== 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)(110136005)(6486002)(36756003)(83380400001)(316002)(186003)(26005)(44832011)(31686004)(2616005)(2906002)(4744005)(86362001)(508600001)(38100700002)(5660300002)(55236004)(6512007)(4326008)(53546011)(6506007)(82960400001)(66556008)(66946007)(6666004)(8676002)(66476007)(31696002)(8936002)(45980500001)(20210929001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QVhuZ2k5RElQdTVvTlUzUkRuSjdaK01ld2F6NkxsZUZZNzBWbFl5bzYrRUNV?= =?utf-8?B?Q0VJU2R3ODVqR1JTbHArNHA4Z2FqSlZ2eUpuWkRxR1FFS1h4S0VpRitacHow?= =?utf-8?B?Sk1lK0M4RkhUS1l5alJ5bFVFVDJHWkl5OExSdEhRS1BwQmJRSXRMVHF6VFhV?= =?utf-8?B?QTRVNGxVcGFvMGJnUDEyU2puWCtuZDAxSDdVd2VDNUZDWFhGYU9ob1VEdDRN?= =?utf-8?B?ZzFFWlJQMTVvNnVpSG9lVEZtYVJLNGZ0RG40N1doN2ZMRUlVUVVSSURGTS91?= =?utf-8?B?ZTN4TW9sODhDZisyM3pjOTR3czMvQkdIbmNybDAyTnQ2dzdwUnB1dXU0M1NC?=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nMHMzSFhJVFhHWmtaWmZpTmxjdTVaWFl2Z1NpVWFCcUl5?= =?utf-8?Q?16ELGC1j7g0k/6UDzRBKOJ4=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: abf99f69-b58b-493b-618c-08d9e570a20c X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Feb 2022 10:50:17.0892 (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: AZSv+rnUAZ2+QlZ/U5SmHX1PG6PJMKziQIvWloDzk35nSL3RS1zDTeU/BkM6MOw2Ig7gJfEFNCg4lMXysT4s1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB4081 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 1/26/2022 8:44 AM, Sean Zhang wrote: > This patch adds matching on the optional fields (checksum/key/sequence) > of GRE header. The matching of checksum and sequence fields requests > support from rdma-core with capability of misc5 and tunner_header 0-3. > > For patterns without checksum and sequence specified, keep using misc for > matching as before, but for patterns with checksum or sequence, validate > capability first and then use misc5 for the matching. > > Signed-off-by: Sean Zhang > --- > drivers/common/mlx5/mlx5_devx_cmds.c | 3 + > drivers/net/mlx5/linux/mlx5_os.c | 2 + > drivers/net/mlx5/mlx5.h | 1 + > drivers/net/mlx5/mlx5_flow.c | 106 +++++++++++++++++++++++++ > drivers/net/mlx5/mlx5_flow.h | 6 ++ > drivers/net/mlx5/mlx5_flow_dv.c | 146 +++++++++++++++++++++++++++++++++++ > 6 files changed, 264 insertions(+) Documentation seems missing: $ ./devtools/check-doc-vs-code.sh rte_flow doc out of sync for mlx5 item gre_option