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 43A0B43B08; Tue, 13 Feb 2024 16:45:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 25CD442DEB; Tue, 13 Feb 2024 16:45:40 +0100 (CET) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2061.outbound.protection.outlook.com [40.107.102.61]) by mails.dpdk.org (Postfix) with ESMTP id B25DD42DEA for ; Tue, 13 Feb 2024 16:45:38 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=atbCSYaBg8kKUgXum5xhrCHU4bKv0WKCk6QAlIO8HOR/6foHeavgkGqqNVVnLQBBZZn35k42GxVTNr7Jx1IS2aSbsAnCzp6s4Bo7NDQfA33r7KbpPtHZNQ2eAP9/UkkSk4F6sOtYH3hrB0vLALuPFWaeVRuWYbItZcKdl2rvLvZ5pxbCRNvLMCCbkAR554JylNoFjJR5pOA38VJtsxn0NhZqNjFnkmKhoqoMhQZqmqexmxN1wV597nkgyKyQMey8f0h/uNyvm2S0bIzV9/m7NliKJop6ELnXdIJqXNKlAmHkPJiidN8IgT8/YPEuVEgYb0178jN9capXBEpNBITtfA== 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=5hOWLQuSzmj5aYNJsB+cVnXyEKbPwqRV8TXKk77gK6M=; b=fLy25NbpsHIYnHdo59SvJV42ZaGsNbDu7CdNblEiH7t8xXhM4XDsfwe16ESsog2Q4GjHLtRxteHfIEWAM7v/Y+SrC6PdilwxRHxvTJ16soD7zmk1a/Tt6Igg9fyMI1dI2xLP4DY6Mnt5a86DlF1UkhplCdaImR6+hrtJLGeBpH2YWgelB2CfemZeoBnwzZRpknkWrmavtXAv2NiEhZAcH5fMrqUNpSrNSjRFhehHVDOgiZ5hfcNV5m1GZ2KClSzcNakEG+zB/TryXdzf+7obC5gI9A8/CaljwQngPwksQvipxvR2LNJH56NL60JoBfro4n2XwIiSFYCLyx9iKjL75A== 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=5hOWLQuSzmj5aYNJsB+cVnXyEKbPwqRV8TXKk77gK6M=; b=UpvdtwKuMyLsBG5jQ2ZApJfRQqabKxSgFj99mMyKe+3OnM4DawghxS097RI0+FOKOT7oCVHZKMk5Hm2JP24FzPgW9APW/KfIZOeePYYDVfCN7JFgPB7fcHNwZ+QQLjNy1qfEu03rwTMtHSqkC5D2G/i9a0XILFdHT6HKqSV/7GM= 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 DM4PR12MB5230.namprd12.prod.outlook.com (2603:10b6:5:399::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25; Tue, 13 Feb 2024 15:45:37 +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:37 +0000 Message-ID: Date: Tue, 13 Feb 2024 15:45:35 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 4/4] app/testpmd: add encap hash calculation Content-Language: en-US To: Ori Kam , dsosnowski@nvidia.com, cristian.dumitrescu@intel.com, andrew.rybchenko@oktetlabs.ru, stephen@networkplumber.org, Aman Singh , Yuying Zhang Cc: dev@dpdk.org, rasland@nvidia.com References: <20240128093943.4461-1-orika@nvidia.com> <20240213141640.19812-1-orika@nvidia.com> <20240213141640.19812-4-orika@nvidia.com> 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 aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIX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M/LKBH dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20240213141640.19812-4-orika@nvidia.com> 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_|DM4PR12MB5230:EE_ X-MS-Office365-Filtering-Correlation-Id: 6ab5d7ff-6eff-430c-4077-08dc2caad283 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tepQe4rD+2aYkpcJ8VztsINCz2P7tX0Cs9SGe9F8R1caRN4tjrstwWM1XpQFE4o+IJ6Jkm4H0nTXiAS6wRliyCqvxHdcLY/EyYvE/n/1Z/FevOpRxEAAHdAAuNIomHbcwq4rfQAyO1LIwA0cT5Qnb6GyN3ixUaHLmkOdGEOGjiDPaAOlgRNqcHOmpfruqGMJoAN/6J/HmJq1aFqS0C/YbVML4xNbIU7+rw7Spgh7WfAiVH8Wfi9Nnre5eKiqL+aMudrFAeVbw2XZGL2cHyYqZZfIBhYL0rFo6SxFk39z8c4bibgwzyfONhCqksOX+wEi9dYZ/8BQm7DdVG73G1DQC4PnOE2RAWToc68S11xnY6De739Py4vEfT3U4XugsQFk+Y3GFWr8YMlm9KIerQNc/l0CI9/ib6dFkySznbZbjBpzTpKW3OFCZYm67ELm3z24nn39uLBs9iJyP1j82Qh/Y64a07Yqbt7h1zE8GA4u/ovxiXUx98yu15El1vQZd10yLmnGZCQkrjwmOoEOEYX+AwyxdcNOhR9IX1AT7KaygGKkvfwEs6v7Z3+IEgcCwYH1 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)(346002)(376002)(396003)(39860400002)(366004)(136003)(230922051799003)(1800799012)(186009)(451199024)(64100799003)(6512007)(6486002)(478600001)(31686004)(41300700001)(110136005)(8676002)(8936002)(4326008)(44832011)(2906002)(4744005)(5660300002)(6506007)(53546011)(66556008)(66946007)(316002)(66476007)(2616005)(86362001)(31696002)(26005)(36756003)(38100700002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?YWdraG4xK1JtTU5mcGVFbVZMai9XcC9sZWtRbTQvYVJxTkpnK3RDdytYMGhS?= =?utf-8?B?MlV6R2M3aS9lbnFWT3NZYm9QTkU5RTdRQUt0NEpMOUVNSXdCT1p6ckxiTkx6?= =?utf-8?B?SG5hSkk0TWVoV0RNM0o1bi9HbGZZUHFkbDc4TXpNbEtyUndiUkhGd3pYekJq?= =?utf-8?B?Qi9FZ2NQK3dEcHY3ZE55VDZDbzRJQUJQWVBEK0lqWWR4YTMyS3FmU2RvQy9T?= =?utf-8?B?SHVjS1hyLzZFbURtWlRuNnJiNXkzbGJGa3d4NmlJQng2RnEzaW9hOElJdlZK?= =?utf-8?B?Z1hrLzV3WVZ2ejZ2TlJVS1JhM2QwckRhWWh0a0FUaWRxL3lXVzlBcEttRzA5?= =?utf-8?B?Ym13Y1B1SWZXRlcvOEFkaitWbDZQNHJhMkJaaVpIVUtxN2N6b0ZOWmNBZjQx?= =?utf-8?B?QTB6bjR6REgzQTIxUXNXL0pxakwvcktoTFpwMVk2cDkxdGdHZjN3T0dJMm1X?= =?utf-8?B?dzhqVUFSY2dNb1dRUFlPN3gyOFN6Z3dPbDg1dlpZcGROR0Eybk1sYkhjTDBC?= =?utf-8?B?bWJhNmtsc0dCblN4U0QzL3Jwekw2cGw2V2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ETWZUUUNKSlZPVk1uVjByRkZwZDRuRW9VeTRnTVQ2a2dr?= =?utf-8?B?cGJ1QndscEVzYVhVQlBOanBOc0psbUVqa1F3dHhaSmRmVVJTVTFTUHRiMGQ5?= =?utf-8?B?Y3hiYnRFWm4weVBYRDJ0MjNyaDZKTnBHaWFWdlpXdi8zd2RlUVkxZXovRkQy?= =?utf-8?B?b0d4NG9NK2pzN3RRNjBHMGtTZXNuMDdlVDlPdDcxTmJMUUtQTkVadTdYMXJL?= =?utf-8?B?RlhqY0Q3b1JLVGVXUnI0ZXJNblE5L1NPY0NkNmpOSXNRRURJcUlEb2c5ejIr?= =?utf-8?B?UTlKRmhXMjJ6eDd5RUZXMXd5NnFSTHY5a2dkRG1JRCtIdk5LeEkrM0ExUjlM?= =?utf-8?B?MDdvZHMzdEphZkRXdkFqU3dMNmNWVGRmNmRzZU5VYk9nbzZhekRWazhWVDNO?= =?utf-8?B?YjQraldzSEtmWnhYOUJwODVWZTlFakJLRVRyVlBwUFlxNlk3cE11dTJIM0ps?= =?utf-8?B?RlVaU25yZ3k4VVJiNTlaY3hIbXhUc0x1N0k5MC9rUG1MVEEvdkR6SWc2dTFI?= =?utf-8?B?NnVyV3VZZFJMS1lMRUpVNDc5NXpKU1VyQTJONTQ5Y0tZeDNUSlRBMG9iUTlu?= =?utf-8?B?WXVaKzRzUHhGUUdRZHUzaHZ0SWVadGVLdzlxRnA0aXA0VWV5d1ZaY1NobHFy?= =?utf-8?Q?/YRsIQ51fEWtYqUOnSai90W1M?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6ab5d7ff-6eff-430c-4077-08dc2caad283 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:36.9811 (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: BsJ6uycsm2rNuWOoTjMFvtk/7aJoHi44hF9KWFoD+RnExr0N3h1cR/EnVg9J+r1U X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5230 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 2:16 PM, Ori Kam wrote: > This commits add support for calculating the encap hash. > > Command structure: > flow hash {port} encap {target field} pattern {item} [/ {item} [...] ] / end > > Example: > calculate hash to be used by VXLAN encapsulation. > flow hash 0 encap hash_field_sport pattern ipv4 dst is 7.7.7.7 src is 8.8.8.8 / udp dst is 5678 src is 1234 / end > > Signed-off-by: Ori Kam > Acked-by: Dariusz Sosnowski > Acked-by: Ferruh Yigit