From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id CC2FB43ABD;
	Fri,  9 Feb 2024 16:59:06 +0100 (CET)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 95A3742E64;
	Fri,  9 Feb 2024 16:59:06 +0100 (CET)
Received: from NAM12-DM6-obe.outbound.protection.outlook.com
 (mail-dm6nam12on2055.outbound.protection.outlook.com [40.107.243.55])
 by mails.dpdk.org (Postfix) with ESMTP id 8F3CB40697
 for <dev@dpdk.org>; Fri,  9 Feb 2024 16:59:05 +0100 (CET)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=AIDfQQAlZI5TcZQvIOh5jo5ZmQqCSqQEJutxCZn/KHR4xryacbhEyic7Jc+I7tjgF2AF2VjYCMQ9LO//0zWTpM4xtDk8ocG/KnmeBoUHpt05KAZnLzEAtBAbibZ1O5xKlTS6y3gtwWmdsA6+dYYatUNOMGNpANfR7G/Ftn/pyIrsXA8EZRlDaOxNjTvtEIIVJnKl9+2Ey0SB68l5cWcM2KpjMmKZ2pVRrzChLT5Vs1hExx26Kdp9jwSE4TUhaz2Vv1xby9I6l+3Un37Lep7c9ytdvJywo/vAuw7GUQSbf2+kX6ddpBqG9DW99vMACoO4Cp/M9tQxgJz1i8Q/yds4BA==
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=ZQy8BuxIBCoHrgpyCHIepBJspWhLfQVpUD2I1oeLPWw=;
 b=GiX+eL7Av6gBiGSbM+Gal2v3KtCJxz8OBFaSBnTnQ2M5bnujf/vYYGJXo8wsnAjf18I0z3AUIFT1W2QDLDlO0BelFLZHgNh9bflOlj02a0IcUG50MK9iaubydYlXtX4HBmNzureQIhjrq+hinvB7LAWwqZYSWgfbRjM3f/Pzdx5/e6I8pJeVESD7xA7zsnb6tLlK/5JTpuqtFdInz061Agsh4Efvggg8+OB1Z6WFb6NmjO/oOf2w16HBwZ9Zi7XdRqj6+y7YETEwtwhzM0fJLbzRvPJmkCNUioyrcwD2R4Kc+v8cVtiptZUUtYK+d+aoQYC+wbu2zm0efvC3wNxtBw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass
 header.d=amd.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; 
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=ZQy8BuxIBCoHrgpyCHIepBJspWhLfQVpUD2I1oeLPWw=;
 b=1U+eb/ho9rEuxbvk56fp5Gh04d7YICZxTgx0yKuQv1t4G9zMVCSka8cRZ0IgmR4UzIYhPbPu3XkJSK7BwaCoLVOQjmy0uW4BxOSx2vpuCYyTkAAjsLuoxOZWCLC4ziVocNkfDwpbASiVmSHev18ZPQBxdQz+lPHG7zRrhSH4irs=
Authentication-Results: dkim=none (message not signed)
 header.d=none;dmarc=none action=none header.from=amd.com;
Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11)
 by SN7PR12MB8130.namprd12.prod.outlook.com (2603:10b6:806:32e::12)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.16; Fri, 9 Feb
 2024 15:59:00 +0000
Received: from CH2PR12MB4294.namprd12.prod.outlook.com
 ([fe80::815a:45e6:cf5e:479f]) by CH2PR12MB4294.namprd12.prod.outlook.com
 ([fe80::815a:45e6:cf5e:479f%4]) with mapi id 15.20.7292.009; Fri, 9 Feb 2024
 15:59:00 +0000
Message-ID: <50486980-5a35-48d5-adc6-db29fcf5786a@amd.com>
Date: Fri, 9 Feb 2024 15:58:55 +0000
User-Agent: Mozilla Thunderbird
Subject: Re: [RFC V1 1/1] net: extend VXLAN header to support more extensions
Content-Language: en-US
To: Thomas Monjalon <thomas@monjalon.net>, Gavin Li <gavinl@nvidia.com>,
 orika@nvidia.com, andrew.rybchenko@oktetlabs.ru
Cc: dev@dpdk.org, jiaweiw@nvidia.com
References: <20240130112520.1971315-1-gavinl@nvidia.com>
 <4126957.6PsWsQAL7t@thomas> <eca9b44a-9d10-42f1-99c8-b0f487950f8a@amd.com>
 <27994279.gRfpFWEtPU@thomas>
From: Ferruh Yigit <ferruh.yigit@amd.com>
Autocrypt: addr=ferruh.yigit@amd.com; keydata=
 xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9
 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J
 eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg
 B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9
 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ
 N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ
 vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S
 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum
 Coud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OZSYH2A/PfwjYW0Ss0Gyfywmb2IA990gcQsXxuCLG7pAbWaeYazoYYEQ
 NYmWatZNMAs68ERI2zvrVxdJ/fBWAllIEd0uQ4P05GtAHPdTIDQYp545+TPV7oyF0LfXcsQs
 SFVZE6igdvkjfYmh+QOrHGZvpWXLTmffVf/AQ81wspzbfxJ7sYM4P8Mg5kKOsaoUdyA/2qVe
 cMh1CLUHXF1GlofpGbe1lj4KUJVse5g3qwV7i9VrseA8c4VIZewdIjkzAhmmbxl+8rM/LKBH
 dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk=
In-Reply-To: <27994279.gRfpFWEtPU@thomas>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-ClientProxiedBy: LO3P265CA0033.GBRP265.PROD.OUTLOOK.COM
 (2603:10a6:600:387::16) To CH2PR12MB4294.namprd12.prod.outlook.com
 (2603:10b6:610:a9::11)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|SN7PR12MB8130:EE_
X-MS-Office365-Filtering-Correlation-Id: 4a2a8d77-d173-4465-df8d-08dc298807e7
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: K4T4i8NTOWQhOX9iFeK6/t6WloHtdPpoucLKndMxDQFq2/EfklKmLsdbgBjK9EapObr8W/lQt/vRhU6ViLpyUwo/PWbBwNNnBBt0eHwrx7zmWz1C2//VcoiAbW3wdBXa9BFTFbSVLvRw9IkvmQ+1tUoV6j5ymmYeKLNHSoWV3JXnAhygajzkLoYPcVWbx6yeCZO4XYUNmgUyApke7eBNtac1OpKyOiDzqDgB5amiFguT1Tzjq46sV+S5ACQZLHdjC2+7a1UiFeJKkI35kLsa32CGX04Ab7qpE9mWBwZ5BcNNWBh67KQ1b3Iq4oF47wyz4nm5PanNqmpF8Z7XAFjRxnSPPBGLW0tgbxjZydRIb6h7M/1emItlpl0W2q1vABfLw9iqhe2J4McIRRvng0NYubz4xnGwfL5U1MXLeGkPLhhSSWpv9SbpXX14HOsxDtymrPXdJrikwoD4RZV3Fx9AT/tajAHxadtcwZqvKmSJZgucQ2aes1aQJU2+7iJVaJZs
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(13230031)(396003)(39860400002)(366004)(346002)(136003)(376002)(230922051799003)(451199024)(186009)(1800799012)(64100799003)(2906002)(966005)(86362001)(44832011)(6506007)(110136005)(38100700002)(4326008)(5660300002)(6666004)(8676002)(66946007)(8936002)(316002)(66476007)(2616005)(6512007)(66556008)(478600001)(53546011)(6486002)(31696002)(83380400001)(26005)(36756003)(41300700001)(31686004);
 DIR:OUT; SFP:1101; 
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?V2w2U3k3RFROMWNuTmJCL0JrRnlXcHlDMkFlS2s2bUcxQVhoeDcvVkpPS3pK?=
 =?utf-8?B?MWFzYnREenNOd0JtcExMUHlOOFVzWjZRUDMwZ1J2ZTBzNUM1SGF3ZWxBdGdR?=
 =?utf-8?B?S09TTkFsaHIvS1IycGNmL1pvSGhOYUNVT2dnLzBkVjRlTlNkd1dUQXB2cUhI?=
 =?utf-8?B?MHVUb1poaXlLVW5ibm9aaGZpZzFrSlg4SS9XckFmT3ZxcjJySlJERTFIa3pr?=
 =?utf-8?B?OVpUZ1lUWGxjQXNQYTJjQWNrelEzNzZHeC9GOERQbXpwenhudzl2R21VRFlk?=
 =?utf-8?B?V3VBTGRrR2V2WTEvMmpxTUlkMzVyY2dQd2taWUpFSXU3T3RYd0JNcDFqWno5?=
 =?utf-8?B?bEx2OStGK04yU25SV3N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lNjYyd3p3?=
 =?utf-8?Q?/hW8CmFsPCknjclmXX5lYpmP8?=
X-OriginatorOrg: amd.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 4a2a8d77-d173-4465-df8d-08dc298807e7
X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2024 15:59:00.5770 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: xeORag9rReQq05z5fw7FxqUvPAWImqqv3yC9eyZheMge+RQ8q0d6HhT97Vjii3hS
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB8130
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

On 2/9/2024 3:32 PM, Thomas Monjalon wrote:
> 09/02/2024 15:58, Ferruh Yigit:
>> On 2/9/2024 1:44 PM, Thomas Monjalon wrote:
>>> 09/02/2024 13:11, Ferruh Yigit:
>>>> On 2/9/2024 10:12 AM, Thomas Monjalon wrote:
>>>>> 09/02/2024 00:54, Ferruh Yigit:
>>>>>> On 1/30/2024 11:25 AM, Gavin Li wrote:
>>>>>>> Currently, DPDK supports VXLAN and VXLAN-GPE with similar header
>>>>>>> structures and we are working on adding support for VXLAN-GBP which is
>>>>>>> another extension to VXLAN. More extension of VXLAN may be added in the
>>>>>>> future.
>>>>>>>
>>>>>>> VXLAN and VXLAN-GBP use the same UDP port(4789) while VXLAN-GPE uses a
>>>>>>> different one, 4790. The three protocols have the same header length and
>>>>>>> overall similar header structure as below.
>>>>>>>     0                   1                   2                   3
>>>>>>>     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
>>>>>>>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>>>>>>    |R|R|R|R|I|R|R|R|            Reserved                           |
>>>>>>>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>>>>>>    |                VXLAN Network Identifier (VNI) |   Reserved    |
>>>>>>>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>>>>>>
>>>>>>>                            Figure 1: VXLAN Header
>>>>>>>
>>>>>>>     0                   1                   2                   3
>>>>>>>     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
>>>>>>>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>>>>>>    |R|R|Ver|I|P|B|O|       Reserved                |Next Protocol  |
>>>>>>>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>>>>>>    |                VXLAN Network Identifier (VNI) |   Reserved    |
>>>>>>>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>>>>>>
>>>>>>>                          Figure 2: VXLAN-GPE Header
>>>>>>>
>>>>>>>     0                   1                   2                   3
>>>>>>>     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
>>>>>>>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>>>>>>    |G|R|R|R|I|R|R|R|R|D|R|R|A|R|R|R|        Group Policy ID        |
>>>>>>>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>>>>>>    |          VXLAN Network Identifier (VNI)       |   Reserved    |
>>>>>>>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>>>>>>
>>>>>>>                           Figure 3: VXLAN-GBP Extension
>>>>>>>
>>>>>>> Both VXLAN-GPE and VXLAN-GBP extended VXLAN by redefining its reserved
>>>>>>> bits, which means the packets can be processed with same pattern and most
>>>>>>> of the code can be reused. Instead of adding more new items by
>>>>>>> copying/pasting code for the VXLAN extensions in the future, it’s better
>>>>>>> to use existing VXLAN infrastructure and add support code in it.
>>>>>>>
>>>>>>
>>>>>> Hi Gavin,
>>>>>>
>>>>>> The motivation is to prevent code duplication, and the code mentioned is
>>>>>>  the driver code, right?
>>>>>
>>>>> The motivation is mainly to provide a unified and more explicit API.
>>>>>
>>>>
>>>> From user perspective, I think existing approach is more explicit,
>>>> because it sets VXLAN or VXLAN_GPE flow types.
>>>>
>>>> I am trying to understand the benefit, how unifying flow type in the API
>>>> helps to the user?
>>>>
>>>>>> Overall OK to unify "struct rte_vxlan_hdr" although it makes the struct
>>>>>> a little complex, perhaps we can consider extraction some nested structs
>>>>>> as named struct, no strong opinion.
>>>>>>
>>>>>>
>>>>>> But not sure about removing the flow item types for VXLAN-GPE, or not
>>>>>> adding for VXLAN-GBP.
>>>>>>
>>>>>> Think about a case user adding a rule, which has a item type as VXLAN
>>>>>> and in the protocol header some bits are set, lets say first word, last
>>>>>> byte is set, how driver will know if to take it as GPE "next protocol"
>>>>>> or "group policy id".
>>>>>
>>>>> The driver may decide depending on the UDP port and some distinguishing flags.
>>>>> If you want to match on GBP, you should includes the GBP flag in your pattern,
>>>>> no need to use a separate item.
>>>>>
>>>>
>>>> Why not be more explicit?
>>>> It helps to driver to know more about the pattern to be able to create
>>>> proper flow rule, if there is an obvious way for driver to differentiate
>>>> these protocol extensions, and flow item type is redundant, I can
>>>> understand the proposal, but otherwise I think better to keep flow items
>>>> for extensions.
>>>
>>> In any case we need the simple VXLAN item.
>>> If we have GPE and GBP specialized items,
>>> what means a match on the simple VXLAN?
>>> Does it include packets with other extensions or exclude them?
>>> Matching the bits in the protocol make such decision explicit.
>>>
>>>> When a rule is set in HW, HW may not care about the protocol, as long as
>>>> bits in the rule match with the packet, HW can apply the action.
>>>> But for driver to be able to set the rule properly, it needs more
>>>> explicit information.
>>>
>>> Yes information is in the pattern to match.
>>>
>>>> Lets assume driver API get a pattern with 'RTE_FLOW_ITEM_TYPE_VXLAN'
>>>> type and "struct rte_flow_item_vxlan", at this point driver doesn't know
>>>> if it is VXLAN or any of the extensions.
>>>
>>> Yes it knows because of the matched bits in the pattern.
>>> If the rule specify a match on GBP flag = 1, it is GBP only.
>>> If the rule specify a match on GBP flag = 0, it excludes GBP.
>>> If the rule does not mask GBP flag, it includes GBP.
>>>
>>
>>
>> OK, VXLAN-GBP protocol has a GBP flag that gives a way to differentiate
>> the extension, so flow item for it becomes redundant and we can get rid
>> of it.
> 
> Yes I think so.
> 
>> Is it same for the other extensions?
>> If we use VXLAN flow item and by setting specific field in pattern can
>> we differentiate VXLAN and any other extension?
>> Or in some cases other information, like UDP port, needs to be taken
>> into account to differentiate protocol/extension?
> 
> For VXLAN-GPE, differentiation is on UDP port.
> Remember we have an API to fill some UDP ports:
> rte_eth_dev_udp_tunnel_port_add with RTE_ETH_TUNNEL_TYPE_VXLAN_GPE
> 
> The UDP port value/mask may be part of the flow rule pattern.
> 

So one option is use vxlan extension specific flow item, which is
current case.

Other option is use generic vxlan flow item, and detect the extension
using other fields, which is this proposal.

Both works, but specially if driver needs other protocol information,
like UDP port, to detect the vxlan protocol extension, why not just keep
continue with existing explicit flow item.


OK for merging vxlan struct in net library.
But I am failing to see benefit to change the flow item and structs.
No strong opinion, it can be good to get more comments.


> 
>> I found a spec for VXLAN-GBP, but it shows as sub-header for VXLAN-GPE,
>> different than what this RFC describes:
>> https://datatracker.ietf.org/doc/html/draft-lemon-vxlan-gpe-gbp
>>
>> Can you please share link for VXLAN-GBP Extension spec?
> 
> I will let Gavin explain here, I'm not an expert.
> 
>