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 8F4CC43AC7; Fri, 9 Feb 2024 15:58:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 29A9742E64; Fri, 9 Feb 2024 15:58:29 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2053.outbound.protection.outlook.com [40.107.243.53]) by mails.dpdk.org (Postfix) with ESMTP id B813440697 for ; Fri, 9 Feb 2024 15:58:26 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I7ZpwLHrGVm2D0z1dDQoxyXLjCR1IJr1R5/iTS4hnfCmDLaZdzhPfgJ/JG3v78kWA32uhAcDpNtOLiADXXU5Z0hMtMctx3wgREeBiCH5jMPi4HZCnqm5ggvXpRyqGMoPU91wCyRMQMXYaBzWtPpj1mhUY3HmdpiHZaA47PQ3tW3lgGsdFoLIJfgVq3ZqGjN87P2jgl7ZpU/QCGGi6B1ZPMV4Wboe8frvRJ+avFKggX3CWOhSHlHsZcK2S31hUjthw43m1/0C4hvJCMeBuy7evo3HNl+0YBLKN/WYd4p5pRiW1ykiPflGQYV63CeSoZP+nmbr687YM+rYBNvkN5EWDg== 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=kC90qMy6U+Yo9PC28LCllM021D6k2ss7jx9f8pNuH+c=; b=g/3JDRw1lq6LI1KniynTfSwKY1dVzAAEuiMI4nLou9a6bkbF2ItJP86iy4fGORlkcw9byjgh9nGJJqPvcbZvvPr4LAnJtgEgjmouw1T9VZmPcSwa6HVlMKUaFgeps2NzD2yskJiQbl9UZJrJMYlNwKq6HGlz8kiYK1gfU7nhoLd/MBDS2+3diYohjhg2fbEr74w7ddqBvDLUIUJIcGPexVZ/WihFSrP3unjrw4glZD+0Vi6Wv/+qDxjfJT+uNZR4Icz183uox9vv9X4qzeRQvo3yC/IlQxwFK/G+WOfle8XeF9JFgouPYJdGKnJY3rIdE4ASoVBrA2aGaV2jv0MWyw== 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=kC90qMy6U+Yo9PC28LCllM021D6k2ss7jx9f8pNuH+c=; b=lbPVRT9p7jG4nV0TJHPI4WpPPIdL1fi4j1UdRjaKgRT1Mn26gOTcB7CUg4OiQIN9VxN3RNTHOGerNia1EdTnYZ7PWf2Hr/4zBPkCgY9dh+h7ucpQQ4Mi1anTDjzEbLJlk1DYO3rKArb2racQDjUXqUZsy/nnHkh9+j5rKPxUHzE= 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 PH7PR12MB6907.namprd12.prod.outlook.com (2603:10b6:510:1b9::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.34; Fri, 9 Feb 2024 14:58:24 +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 14:58:24 +0000 Message-ID: Date: Fri, 9 Feb 2024 14:58:19 +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 , Gavin Li , orika@nvidia.com, andrew.rybchenko@oktetlabs.ru Cc: dev@dpdk.org, jiaweiw@nvidia.com References: <20240130112520.1971315-1-gavinl@nvidia.com> <2384008.yKrmzQ4Hd0@thomas> <59a69287-cde3-4e9e-8174-c454f964fe5e@amd.com> <4126957.6PsWsQAL7t@thomas> From: Ferruh Yigit 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 CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwI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kzAhmmbxl+8rM/LKBH dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <4126957.6PsWsQAL7t@thomas> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO3P123CA0023.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:388::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_|PH7PR12MB6907:EE_ X-MS-Office365-Filtering-Correlation-Id: 6237706c-68b7-45e7-1a61-08dc297f9059 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aKSzfX8JuKvQEfETRl8GmVP0tbTpBB8WToqgD9K8qhfiKrKiX2m8Iu952oH5iwohptX/ra4PaHBubxYByEmUbSWOEYny7nZjMTHlu2Z2RlMOHr3u/oObKl5NLZR4AOhFjwrs3aNxqEj2fFmNoCDG3fV+xv6lI0x3FVfeAvKI7MiCaPRA2SfaUS1jv1RxHNojk6UX9EQGXod0UAhhoTlUuMInTGzYF2CuUnBkQ0uAml2RQcyhLdQtoIS+c7IOunruXjaVV2Iva71XQhZcTdsHl7MCT0EtCbUmvvBXjh+UiDhhJlV3cMOOXbP/kiw7iKv4EbFIOtdVWkZFJCUTHGRjtdZDbjeeXIOE9WnT7bzOy+pKCv3xFbvwI9p5OfvFBlF76zD+F054O+DGPoRhGWvjcoAgpMkLkLUpt/vEvu//CZxB1IV7AxmzOe+tW1VcwN2k7Q58rF00An9whSJ4nLizAzVcHeNEtL4kZjrfBfNVnJpUR29bzg0DfxKl445c4TW95D7kWINUygVRSWsW3Si0qJ2LL0y9x1eViGBxn9AICjw= 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)(136003)(346002)(39860400002)(366004)(376002)(230922051799003)(451199024)(64100799003)(1800799012)(186009)(31686004)(478600001)(966005)(31696002)(83380400001)(6486002)(66476007)(53546011)(6512007)(36756003)(41300700001)(86362001)(26005)(2616005)(4326008)(66946007)(5660300002)(8936002)(6666004)(44832011)(8676002)(2906002)(110136005)(38100700002)(66556008)(316002)(6506007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZXFNUXBGNmd2dDk4eW5TSEtHYTU0dDh5MVRLS0JyWitCT3ZzcVQwQUlaam1G?= =?utf-8?B?bHdSUS9TVXhjaDRic1JlczhReU9QRDFFemI3dmpVMTlUM1MwR3V0R01KSzJ3?= =?utf-8?B?cHFjWmNOS3B3QWpydUIvV3JQelNuQjRtbThrRVEzSDlIZkloRTFJbDZ1QUVj?= =?utf-8?B?aWEycGlxL0JhMm1LYUNUT3FsZitUUG4xcXYwaStneWlZbTYzZVFheVlMY29D?= =?utf-8?B?eDNmUHpxZ09hTjZvd3ZTTzAzaXRVTWtRZGRZamE1Z2xkRk0yRkFNYldxY2Y4?= =?utf-8?B?ZG5lNDk5RFA3bGVsWXRodVFjUFhFeUk1aThxZGFtcWJONXl1dGxieEg5dVBp?= =?utf-8?B?WnhWRjdyUWVsRmVpTktPMUxiVDlVUFVXQ0FOdVZ6aGduVVlpRU9UNjRXcUxP?= =?utf-8?B?SzFUTjdpbmJmOUo3WGNXaERUcFVtcys1QklhM3psOUhHNTJ2THpiQzFWNzdK?= =?utf-8?B?VlpXWjVnczh3TWN3eHNnd25wWXh5TjhPK2NsR3E2ckFYSUVVdU9RcGF4Ujky?= =?utf-8?B?WTBPRnBLbk1Nd25iNm94S3hSWkVlYTJaMWtpcFMwb1JqS1IvUnVyQ2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ITER0UDVnN2lrd2ZrWTRW?= =?utf-8?B?aVUraDMrTWxGd1BIS1loclRVeTNoSmVaODR5Mmx3c2s5MkM5dVZ1ZTU4ZS95?= =?utf-8?B?bXV3N2RsOStMNDFrTEdDS3pQd1RLZENIUnc1cGdHNWlKWlJ1UnlZalF6eTlN?= =?utf-8?B?MHl1QUtBNGgwYUZSc1QveFFBSHZEWXZkQU41aHM4bm5zV0xNTm9UOEFwWjBn?= =?utf-8?B?U1d5bHJaWjNIbWl1ZW50eXB1R1FTMmVYaFBjbUF5alBYSk5Yam1qcDY3aTFL?= =?utf-8?B?cjFTSHBlcjNBSDR3amwyNHNSUzZqK29hZW9qYWhyWThJOEdrYktSVG5iUy94?= =?utf-8?B?cW91UTd1U1FzRzlIREFWZ29ZV0wySytJQkV6OFNrQmI0c2xMcml5dExIVXBT?= =?utf-8?B?aXJOc0h0T3lRY1VyRzQ5VnR1SHBxUm9WV1U4dFV0UUZoOHhSZmgrbTZGUEJh?= =?utf-8?B?TkZSckVIUHpRWUdYUnBDMFBZb0NBbXpmTVJzTkVRYWVwdFI3cU9EWEdZMElo?= =?utf-8?B?TllCcEgxRTU0cUpHSWtOeko5bFdqRkg4ZEREdXNpT1NPZVNWbkhUNElFeXBp?= =?utf-8?B?MVhWVEVLa3N0akVFMGh4REFBN1BPeG9WZFJlMkRRMzE2dlZtZnJENkY4cEoy?= =?utf-8?Q?blx/lrOUGjWm3BDGtZnBdn+wc?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6237706c-68b7-45e7-1a61-08dc297f9059 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2024 14:58:24.1416 (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: T4I3icpSUjFsbAMgFATdOB+RroZu56kHmE2VPcsHUgkRIKU5mUIL+SHOnOQ4PYOG X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6907 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/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. 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? 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?