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 B983B43B08; Tue, 13 Feb 2024 16:46:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A441742DF4; Tue, 13 Feb 2024 16:46:01 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2086.outbound.protection.outlook.com [40.107.243.86]) by mails.dpdk.org (Postfix) with ESMTP id CFFB842DF2 for ; Tue, 13 Feb 2024 16:46:00 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=REAZS8W5uYSnedhohHkEQOxKH7mgbAlF8KK8ONmiSyCmIEP/LXovFVZ9D+LyyAhMxQGVXlMloGymwGssAhe8GQukB2XKnbeVniME0ZFEk8Z7ITRolv29SyN65SHvCv1m+yF5LE+pcxi4a3Joj4fUQ+l37YufNA3K//5tzmv0Etxlj0eZDZUBY8VL3YdPyGrtlyJDYefl62HJd94dfAudREBbcqN/kZ0N7/ky62Z/z/pqoOmpAF9uH0sdJi/Aauyba50YUx9Y4FizWyHwndt1yfXtCMu1Ek5V3BsxwoEPzEDQ62BNXlu7Yhynn1W3cmJnJ1K2jiyWe0j+3cDyVOdutQ== 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=HxPMLcxEmnZuPgBiImE6ycHehXwI5zqFFWX5x8wMpZQ=; b=mJb3PzCCG6x21VHiyZjLPFhSYzM7JHedKG0+yTh5Wt0QsWmnz/e1T3vQRm+h/u04p/hPULS/K1QQoVCTPDTts433OFKyqZiykJyLC2z12IopgDrmwcvOkMGN+oDPH+hWPx08vsRgoxKpvb9mhhWfCF+Nxtx6I1XmA0kfPRI8Wi9rzVPYbDPu9cUuIENAFjZY8IEntzcSp5PesUsakjG3VvDEmX+mzD3L991sXeVwqyEnGMaKe+EvmRtX5qMjwi0Np/eXUOtiR+NfofdgUbi+XY6mSVFSDPpWoPQKEYq+/ECYH+rrKfgT0Cly11Z0jM2GIzaGm2SFS8nHWlnddG0Hng== 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=HxPMLcxEmnZuPgBiImE6ycHehXwI5zqFFWX5x8wMpZQ=; b=qtATq1WMdwSITLfNS0oCKir+RrN/aMISvZIp3g8vdMdSpBzBUnIlGQHFnrf5VzXV5dy/ezVedGygTgAD4RFJ4W7iE78RI5qJhUDtK/o2Cbzq/2pUoYx7DR/3MZPbspphhQhgjI/jnrszsVbPdmSDrjhKrS3P9THckVIQkbpsEuI= 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 PH7PR12MB7872.namprd12.prod.outlook.com (2603:10b6:510:27c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.24; Tue, 13 Feb 2024 15:45:58 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::3ec7:6339:1c14:c529]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::3ec7:6339:1c14:c529%4]) with mapi id 15.20.7292.022; Tue, 13 Feb 2024 15:45:57 +0000 Message-ID: Date: Tue, 13 Feb 2024 15:45:55 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/4] ethdev: introduce encap hash calculation Content-Language: en-US From: Ferruh Yigit To: Ori Kam , dsosnowski@nvidia.com, cristian.dumitrescu@intel.com, andrew.rybchenko@oktetlabs.ru, stephen@networkplumber.org, Thomas Monjalon Cc: dev@dpdk.org, rasland@nvidia.com References: <20240128093943.4461-1-orika@nvidia.com> <20240213141640.19812-1-orika@nvidia.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 CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgAIZARYhBEm7aYjps5XGsPHC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83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LNXP265CA0073.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:76::13) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|PH7PR12MB7872:EE_ X-MS-Office365-Filtering-Correlation-Id: cba8c73b-02e0-432c-d1a7-08dc2caadeaf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +xbpBlayKqoGJppZpFKwTWKv91/+fE83toCx6kmLBoDQvB3LbbGNmyiuTjc8IGdt9MNWZgcq9f/bCle0X+xkNqrY4tgvh8xZ0IjCs8rVQxQ/w7pjlbNWoQ7UFUz5gviO63Y4S+Qjt/t9nuUhsZPFPk8+PMcuW3hOJb1Yn2K26mrS+QzBRCKzGmKODsLIoWhjAGiEs+l5EMvRDWTzCWJQoLys0Kk8glaCHzRO7ANrA7PAIA9GMijl7qWbFLCymtY0bPFUe0oFEOGEAZK/U1El+TYKMHFZdv8yQvqY8+kNq/NZoWpyicG2wT16fmGcq/vAxKlzwVDzqGqLK/ee2hdbLhIZkWeCzC4KhPuSG1Qy9hUER+LmP9M+GacOkJS6BFzlqHLngM0T/Tvy70kH2EyOYSYz6dUxSPV3LMCEWHGwuOKtnaM5Za9CTmLb66nhIxiq5oMxZS9I6uHfAAcKRWmfnCdqHfhNKN62EABmi7WaDTwr4zObZJYiHTdzYqcRPITkb9UbNbB7CCAxZkk4pcMb7EdcxOhNEoESxbHeqzmVrGFissSJ4AimkMC+AnV1kYAl 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)(1800799012)(451199024)(64100799003)(186009)(36756003)(110136005)(4326008)(41300700001)(2616005)(26005)(478600001)(8936002)(66476007)(8676002)(66946007)(66556008)(5660300002)(6506007)(53546011)(86362001)(31696002)(316002)(38100700002)(6486002)(6512007)(2906002)(31686004)(44832011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TERMdjIyOEJGSVN0eGlTQnc0RGJRRkxKNTRQWW9ORmtrSFdySUVpY3VQbGR0?= =?utf-8?B?bmhyb2o3Tm9yc3c1WCtraEVlZzhMTFRiVlphdEhxS1EzdnVlektEWDFJdmtC?= =?utf-8?B?UHgwK3VSVTJxT1Bjc1NDRXdlQW1NcnBzeW1lSGFWWi9nK2FSYTBNU2ZvdThP?= =?utf-8?B?WXhVS1VyMHJaNmpOQ1VLbGZXM2wxeXJwbFl3cUE5cU1iY3dBa2pFTWNmYmpR?= =?utf-8?B?eUZ6NzA0a3pGM0ZOSWtNbEZoMEVZbUdtRHNxYWdPaGRYaUlpOVhHUHpIQWJJ?= =?utf-8?B?ZStZa0lOK3FBb2lUMWpQcXQyb0s2b09tZG9lb0NuMitJclBnazRUa0QyQ3k3?= =?utf-8?B?QnhaSlNKemxDNzFJbVlLQ0o1QWtsUnlTenhJTFhaOGJMUFZLN0d3NklPN05C?= =?utf-8?B?M0JkK3JqMWN5VUxJTHNYVVNmYUdBNWpIRUJGNGp2N2o2UHJySWs3LythalYr?= =?utf-8?B?aUlHZGszOFk5SHVpY251Q2JIdWtGVlE0M0dlc3Iva0tGVk1FeTkwTUFwSGgx?= =?utf-8?B?ai90VVZXbnc4T3RrWVhZaUFkTlFvQVhqeFJ6Nzg1MkxNYUFKRDZ2d01GYTRu?= =?utf-8?B?VFJpNG9LWmVh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?B?YjFwcWxNVWxmOXlBdmlBVVVCaGJqUGdMc1FFNFpSQVVRUFJHMXo2RVBWcjIw?= =?utf-8?B?N1dSM3pEbGtORHkyN04zc2JuTGI0YTBhVUhFNDkwY01saXJMenFlREE1UitC?= =?utf-8?B?R2FFNUdIam9pM2JZYWozM1hFTm1EUGZjdmRQMFJSWmVUcDZZRnI1NnRxa0Fs?= =?utf-8?B?RU9xbWxrNkdqVnVCSHBiTmY2MkZTRWQ1MFJNSlFNSjZLUC9xT2t5dmV2OGNL?= =?utf-8?B?WWliS1Z3b3o4S1lrM1hwbFNDM0FTaHhWUGxzWTlxUm1zbmRuSXFQVTV1cXdQ?= =?utf-8?B?Rm9hdXJsOVdsbmd1QVFSa0dVV1N2SHh2ODV6RU8rK0VYTGR0QmdEYmxQaEp1?= =?utf-8?B?a200Uyt2QlBSYUwrbU9aVVdUUEd6RnNNb3pRTUE1eUk5SlZ1SXM5VEpIbEY1?= =?utf-8?B?bFVMaXR5cDZ6Y2dSS01iblk1U3lqdmsvVGQva252THB5dFhvNkRoVTdvSGRJ?= =?utf-8?B?SDlyVUVOL1FWZFQ1R0t0WnIzbXdJUGluOENZZ1hqMGNnN2lLUjQzKzBycFRW?= =?utf-8?B?dFZEU0Y5Wko2Vjdna21hVzU0dHdYLy9TMVNETk9YM01DS05JeHBQSm9lUlVR?= =?utf-8?Q?Zn3MKb3nSjMazm1eYSZuhxfQL?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: cba8c73b-02e0-432c-d1a7-08dc2caadeaf X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2024 15:45:57.3708 (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: RQ/LgNykwAMH6ThH/Xd/NxmBsdlTCpL7vqDl6AaV/8PX2zmmGDx1KWTUMoSrsQsz X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7872 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/13/2024 3:45 PM, Ferruh Yigit wrote: > On 2/13/2024 2:16 PM, Ori Kam wrote: >> During encapsulation of a packet, it is possible to change some >> outer headers to improve flow destribution. >> For example, from VXLAN RFC: >> "It is recommended that the UDP source port number >> be calculated using a hash of fields from the inner packet -- >> one example being a hash of the inner Ethernet frame's headers. >> This is to enable a level of entropy for the ECMP/load-balancing" >> >> The tunnel protocol defines which outer field should hold this hash, >> but it doesn't define the hash calculation algorithm. >> >> An application that uses flow offloads gets the first few packets >> (exception path) and then decides to offload the flow. >> As a result, there are two >> different paths that a packet from a given flow may take. >> SW for the first few packets or HW for the rest. >> When the packet goes through the SW, the SW encapsulates the packet >> and must use the same hash calculation as the HW will do for >> the rest of the packets in this flow. >> >> the new function rte_flow_calc_encap_hash can query the hash value >> from the driver for a given packet as if the packet was passed >> through the HW. >> >> Signed-off-by: Ori Kam >> Acked-by: Dariusz Sosnowski >> > > Acked-by: Ferruh Yigit > Series applied to dpdk-next-net/main, thanks.