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 D6E0F436FE; Fri, 15 Dec 2023 14:44:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 786184326E; Fri, 15 Dec 2023 14:44:14 +0100 (CET) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2056.outbound.protection.outlook.com [40.107.212.56]) by mails.dpdk.org (Postfix) with ESMTP id 3534440299 for ; Fri, 15 Dec 2023 14:44:12 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SH4rFIfFehpdCAFiz/2scTHDn386R2aFZ5Zz0XDLc9WZaDznGjuSiO+GFnuSUpIKhGsCP4Q4zMheRx5zyMynYv4XB820bM+mIW+1v71fn+1N6GDAP2eDv5b2Hs8OLbRhy04ITSc50ywmIJbqXua82eTbE0zJV5N0PWphTVV4kYHfqS+URFn5a4fIFvgaM10zMZbxPUzeYed1ceud4huxYQjBRCCtbGSpiRrriZyT2TKSAepvJH0MHOmKGQDH2qneJZRMXA9ndx4KZ7fXpQ6N7iQo9OwNCdc0+axScNFnzFmVb27CIC6qwq0MZQJ5nR+absD91gR/0MpQCg3ihLgrGA== 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=SPxr1Re4Zb70hr0azI7ZQZRc2n8LdTy72FBVaqy0L+8=; b=Ny5JEAvc5CYzXFVE5P3B9Ji0sycx+oGcK3ajlcLHjxGSn33Qp1SayLzx2uitOg9LYgli9FJ1dwGKEKW4hpl3PnC+ZVfwHhFZUzRrqHjDPmTla2T/OTEAWIopD72LU9bwTBXDsZRYsT4divJmTO47nSOe3LDF9e8z0PfWB3msM8r5WURnLbeTYjSz/DutPXPqxgH20J2E9p7oe9IWV62rRHMAFb1ldqda0qk78GAt5tB6DzCIZvM2KQCEGwpuXRoCJ4iQtO+ogJb05XaM72xH2/+//9UvDOpDP83U7TY7x/YFIuszyob6jaYXhGKHyW0tR8/duh9AdiSszaiRg8bxcA== 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=SPxr1Re4Zb70hr0azI7ZQZRc2n8LdTy72FBVaqy0L+8=; b=KLKkm+Wc/nrAKlLjiL/0Sw6Ayoplpxodj6tGCyygTtIJ6W7J2LRFZjglXlf/8KxT11SKX62cA/AyCInUHNhUfyXl5bWoHQbhN9mW8UBMdAbmqhYCbDoBTICZ/eMx9iqp5S5XZorbIuTds0wuDjd5kTgPEZc0YV1vZhRL9gb3MVk= 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 DM4PR12MB5309.namprd12.prod.outlook.com (2603:10b6:5:390::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.32; Fri, 15 Dec 2023 13:44:10 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::2569:edb2:670f:816f]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::2569:edb2:670f:816f%6]) with mapi id 15.20.7091.030; Fri, 15 Dec 2023 13:44:10 +0000 Message-ID: <09acf24d-fc48-44cd-aa4c-9e810bd96f85@amd.com> Date: Fri, 15 Dec 2023 13:44:02 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [RFC] ethdev: introduce entropy calculation Content-Language: en-US To: Stephen Hemminger , Ori Kam Cc: "Dumitrescu, Cristian" , Dariusz Sosnowski , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , Andrew Rybchenko , "dev@dpdk.org" , Raslan Darawsheh References: <20231210083100.7893-1-orika@nvidia.com> <7ec96599-6235-4ef5-9bba-6a037815d358@amd.com> <20231214092609.1b109278@hermes.local> 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 aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAw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9VrseA8c4VIZewdIjkzAhmmbxl+8rM/LKBH dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20231214092609.1b109278@hermes.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: FR2P281CA0078.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9a::20) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|DM4PR12MB5309:EE_ X-MS-Office365-Filtering-Correlation-Id: 2e61d0e1-e65e-4cb0-b396-08dbfd73ea7b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OMxKvPseFTPxhg0OlFT3G1K6Z9vBOMVPvXo/Cz6hdKrx3pusFURGSfV7yQWcCaFAOp91MV2+G7+Ys31OVlzRK1b+FDYBwbnN/zEkAOGMUC5gITndG7/0qiiXQWQKZocnpqtjJYcx1hLW170rh8OHqsgK3pWqJhwe2TruckPPAsP+I0Im75tRx5Whyu6L7zOt0YhHaW7wBUtgXz6HkN0LloAt6M0AkwHQ63xHqixi7KrgBjv4EdvXo4WC6d1PJwQYcvw4KS/5gJcbzGwtl1CAR+Vq/WjqwC+hetAT7xaZvzeBNfvUdvx2wnlAQspeHCfU0uGym8yFUl5NZuPMxpBPgLVPNS98NGB+n/dbY8466FnWleuPG/ESyxb5HwOA/pXNZm3sEeVoi4MQSrQ+abbbbNdixJRRP4zC2lFC0xtHAVchEnF16ACLVRkTW8W4g+AHzHOq9K+BTX6yEF6W5UTNw8jDVIKhuQVn6BQ9he2RcvWWSjcM9RIYb2GczmfwYltUyHkfxxpohhecWwxInvFyl5QhbqMHAeI4iMjJWhjvAu9SQNu5bQfbpzpifhixGImLZILYVaHoLkkjk8wfzqFD4PawnSF5RNCnqNPjkUotagrHvdivoRKG5LgcwOwxGyvGpFDJIpQClh8elryxgDevzQ== 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)(39860400002)(396003)(376002)(366004)(346002)(136003)(230922051799003)(1800799012)(186009)(64100799003)(451199024)(31686004)(2906002)(36756003)(5660300002)(53546011)(6666004)(6506007)(38100700002)(26005)(2616005)(6512007)(478600001)(54906003)(66476007)(66556008)(66946007)(6486002)(41300700001)(86362001)(110136005)(4326008)(8676002)(8936002)(31696002)(316002)(44832011)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VUR4WW1RVllYSEdPUmN6ZjhXTHlheklYSkxMckhXMk8rZFpqQ0pxZEs2bkFl?= =?utf-8?B?Uk12d25oenRjSnJNbE4rUTdYR01BRysyVlhGVDNaNFc3QjVvcUJjMjR3Nk9W?= =?utf-8?B?N2ozTnFQenRIZitURGNMTXE2WldOcitJS3YrK2pTbzYxSFZRdFZlelJLN0xk?= =?utf-8?B?ampjRjVnci9yNHI5VkNnbkhxdzYrR041Ui8wdFJzc1k0WHhjWjV3dlI2dUl4?= =?utf-8?B?TkNFcjF3RkoxTjA4YjhIVWgzRXU2dks4UkREazBPd0VVamxvcGc0OW80WG1v?= =?utf-8?B?QjhrYVpzdW0zVHVrTFVzMEQwenhDR081cDQzSzc3amk3SFV6Q21hNWdmcGk1?= =?utf-8?B?QzhhWTZuSXdUbUg4dmI1Y3JIa0grT0pwdzIvNGY0QUIvcE1ITFB1L01JQnhj?= =?utf-8?B?VmhRUTMvRDhWb3Nza0krRTQ2YXNCWGJJUlBxMHpHazZwc205WmhCUW5TQ1BP?= =?utf-8?B?WG9KM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f-8?B?Q0t2TEp4MHNwaWRndjBjK3BDeURhRlkrQTZBS1p6c04vUnVSckFFZ3NoT0k3?= =?utf-8?B?OGpkUzViTk15Z3J6MkV3cDgzRmlrVXFpVk1BMmN3aHQ3eWhUNHdvSGt2K3Jo?= =?utf-8?B?NGZ4cXFYbWMxUElucVFyaEV6WkxOalJ0UUlnY2VyeDVMN3ZFbGRrMHgvTHMy?= =?utf-8?B?MFpvemVDTVI2SnRiMXhwZ2ROMkdKM3ZjZGQ4TFlaekNvS2hTbDgwRFRQdlRG?= =?utf-8?B?S0lUcmJCaFZDbEpXSFkxUHFDeW1FUnlCaUU1OTdwcGZrMWNZeWM2M3FueXZU?= =?utf-8?B?SThiS0l1bkpUQVllRHRrNkFJbTBQSTBDMzlVZFZoaGpVK1lTOXB5c215NDNY?= =?utf-8?B?WlFlVVRyOHAyOThRVHhGL3J2eU5qc0ppQ3laNUsxcThibHZZNUR6ZnRGNlpR?= =?utf-8?B?TkZNUUhuczlTMG9qanJuWVRDellsc1hhZENJOUg3QWVYNWpNeG14a0g2MGlI?= =?utf-8?B?em4yQjgyZlJtY2I0eW4wTi9EVVhxNE1SVGU5RjduNUhyYjBjV2t4Z0xIbWFV?= =?utf-8?B?aWxhTUdlRFc4WUJ1RHA0aGdhYTR0YXovc0hQOUJIVW9EQnRqcnJoMWlWa3F2?= =?utf-8?B?MHFHSW4zWHNsMkY0ZTI3MDl2bG9GWjBNUXpqc0NPVU5UZG5qMFlDZTRqL2tH?= =?utf-8?B?Mjl2Mlk3WWpGeDNKbWM1MUp6eXBKZ21jTE1BM2NFeW44dWREZFBVdE1tVWJN?= =?utf-8?Q?oxVY=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2e61d0e1-e65e-4cb0-b396-08dbfd73ea7b X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2023 13:44:10.3033 (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: SEt1emUOeC9N/5isepjfI5e1U/WRPECPpf4skLKN60CAuzstyF11m5KS4z1dvblm X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5309 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 12/14/2023 5:26 PM, Stephen Hemminger wrote: > On Thu, 14 Dec 2023 17:18:25 +0000 > Ori Kam wrote: > >>>> Since encap groups number of different 5 tuples together, if HW doesn’t know >>>> how to RSS >>>> based on the inner application will not be able to get any distribution of >>> packets. >>>> >>>> This value is used to reflect the inner packet on the outer header, so >>> distribution >>>> will be possible. >>>> >>>> The main use case is, if application does full offload and implements the encap >>> on >>>> the RX. >>>> For example: >>>> Ingress/FDB match on 5 tuple encap send to hairpin / different port in case of >>>> switch. >>>> >>> >>> Smart idea! So basically the user is able to get an idea on how good the RSS >>> distribution is, correct? >>> >> >> Not exactly, this simply allows the distribution. >> Maybe entropy is a bad name, this is the name they use in the protocol, but in reality >> this is some hash calculated on the packet header before the encap and set in the encap header. >> Using this hash results in entropy for the packets. Which can be used for load balancing. >> >> Maybe better name would be: >> Rte_flow_calc_entropy_hash? >> >> or maybe rte_flow_calc_encap_hash (I like it less since it looks like we calculate the hash on the encap data and not the inner part) >> >> what do you think? > > Entropy has meaning in crypto and random numbers generators that is different from > this usage. So entropy is bad name to use. Maybe rte_flow_hash_distribution? > Hi Ori, Thank you for the description, it is more clear now. And unless this is specifically defined as 'entropy' in spec, I am too for rename. At least in VXLAN spec, it is mentioned that this field is to "enable a level of entropy", but not exactly names it as entropy.