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 D29EEA0351; Mon, 10 Jan 2022 12:01:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF2A34013F; Mon, 10 Jan 2022 12:01:33 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 7B9B440041 for ; Mon, 10 Jan 2022 12:01:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641812491; x=1673348491; h=message-id:date:subject:to:references:from:in-reply-to: content-transfer-encoding:mime-version; bh=nJhtgqiVlaOWqZWcEK49Xv/dMh3e1sYwPdWmjN1n+HY=; b=ftNYbjzD+qr3BPpb1k6d4gSNfIL39FAMQ2Lhx09b6X71SRHsVzKzPf9a kKCPAb+otYBHQbVdp2VB0ZfKB3sfSsNCKlr7r+MzRPzLxpdRIm+OrDlCM qHWy7sL2GTctEEhAj9cW9KlOisKItta46mLUG0lSJug6+ZQX3Fr+X7m6q Q3JcUmO3Cye6da1n7BbHdkvS7uMV8qoPLfGboY0ESCMOD6prSNkd18nPt Qg5T7J0TtcdYACx9laNustm/m8ovfF/KH/e3AioQdTKqaLHCn0db+VraQ CncOM0sLd+CE8fmoIRlrzSS5DC7NgY2Msl7cXT4K6z3FaZHPqgBqRt4LS g==; X-IronPort-AV: E=McAfee;i="6200,9189,10222"; a="243154366" X-IronPort-AV: E=Sophos;i="5.88,276,1635231600"; d="scan'208";a="243154366" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2022 03:01:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,276,1635231600"; d="scan'208";a="669422228" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga001.fm.intel.com with ESMTP; 10 Jan 2022 03:01:30 -0800 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Mon, 10 Jan 2022 03:01:29 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Mon, 10 Jan 2022 03:01:29 -0800 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.171) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Mon, 10 Jan 2022 03:01:29 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hhPgH/76nqYTujmOVwMnEzXwvdNa3vlYPBUZeOwkRGsykf2MudyhNWQjX3bWiqo8vnpyEW7UpC47zUacCrVlA0C+Oq2GxE3U8D9Lg6xfiOxBjuRMJfOn0E2lqMFq8v1N/0nPbE+SoW+1EX1bJcVQhKe0ISBFv0ar9NvUONHxxQvg8qfW3AtLxumK4BfsmO3iB3Jo7oRB9GSIgYzXsGXud2B653gUPJJQKH9UPlgsQ03COwMA6jSEiRf+595M8lkE5oh+bA2syngC19byLVFQKoODnW1O+ExnjV08qfSG2qWjRL9mYb2+0qRoNoYjz0ew/5kxK1E3AGLJMrZd4xhrNg== 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=qrBxbJc93Z3pMVO+28ujNasG9QwsZ47lDAfl0aTsugI=; b=gruSvcs7KfFXE6HJQ/qdzpGvR1Ft4KgiMZcM5BGLrJJxR4Lrdqr0GO2nu3M3DjUtStqt7DvrgpUnC0/ExOXT6P6Ai0rC73R3EP1Id9ULSiBWfeXeNJAS711M4pFqMW8hK1d1QYkjwGSE0m25Wbv5gwMOOjUE/yZBtnU05mw7FjgXlEHYiH9E43BqCYYHCgD8YwKVvYB4tqoAYMD1jff8eyrpgEQC+MQwYEM1EH4xpJY9jOIA6OF9ETneloDkq+4JlA81gM5Ji8+6wfhBcBtXfGO3aFO2MW2Ax2BpA9Us2B9ISSI+grVT95G5uOOepItBke77TRXVdu5YqWEBacRmBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from MN2PR11MB4224.namprd11.prod.outlook.com (2603:10b6:208:18f::10) by BL0PR11MB3043.namprd11.prod.outlook.com (2603:10b6:208:33::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4867.7; Mon, 10 Jan 2022 11:01:28 +0000 Received: from MN2PR11MB4224.namprd11.prod.outlook.com ([fe80::d087:b24d:6eb8:a996]) by MN2PR11MB4224.namprd11.prod.outlook.com ([fe80::d087:b24d:6eb8:a996%5]) with mapi id 15.20.4867.012; Mon, 10 Jan 2022 11:01:28 +0000 Message-ID: Date: Mon, 10 Jan 2022 12:01:24 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.4.1 Subject: Re: Rss hash on mellanox 100G card Content-Language: en-US To: Yaron Illouz , "dev@dpdk.org" References: From: "Medvedkin, Vladimir" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0499.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:13b::6) To MN2PR11MB4224.namprd11.prod.outlook.com (2603:10b6:208:18f::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b6b120c1-e44b-41ba-4fec-08d9d4288d1e X-MS-TrafficTypeDiagnostic: BL0PR11MB3043:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aFELXxDKU42gE/aNhcNdq7X1R4iFn3cunl9GryjBVcCA7KLJeHymu97z7eIO3Ff8URlsnSFMmAol7zpUpI2j1Nxtijb8rXIlV1jNNQiDRsKmyTIaM6nnDJtUpFSuLaGnZ3gqHJtLrPllMrD5qkgtP9DCBT6B9VVwCEy6qbkuvd7vMxCvxXQpHmz/KjWuExgv04PvxAfP2k5oGQCYrEFN7qD33ya3s6dmAcxgpuJ47AXX+3r+jwzQ61JqicOulqSM500uR3QdZ5uHTFePvoETEomRAlF69gUH6q6WacGy2568bNtvL1UDlwXhljQHVeUdyCB+btksjCEIHWwwTsVcmAC3iwgeZoerJvUUeVvuEC9kT8IMgukpGWSfeIaVF3JHNUDAb4QdgwYPoVsXWu9hnRoMVUCl7hTEMXT3Cg3M3EHh4l1M580BTYv0bTtnUzbeDhSMK9+iHQdcGtEaLrwoLMxvEbSX3c5nlpSsSboJFjBsYCPWTMh3uE/E50WwLzVtf+p5qL7KqgCMQv/nq1zPRFVGnjWhvyK0y/MeSvotvuxiXwx5Qj8cPsar4kfStz0LzTcDXlSX+/Dqhma/SF5Y1Q186wyXkM089Hx1jvfpYn89JAeTa0mlujRFIp+j7R1st+BIl3faiuo4VloTwqHcql0j2VK7CigC/bS2GKvXXHlkMBkwUn7Ar3AObbOl/3dM2NRx9rjvtpZqT192m9GrgxdtSDXE7AQf2tUdWEX9/rxt07AhVpPuEmbx6r2ApFKl4ZYIzbBgrq8jGOJtOworAgKgavWfsmnO8htD/UANv4tneXOJW5xS0AxrK+ty2ZfbnAVWPaNsEcT86e9oi1NaZQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4224.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(31696002)(508600001)(966005)(36756003)(316002)(86362001)(6666004)(4744005)(82960400001)(5660300002)(53546011)(6506007)(66476007)(66556008)(6486002)(8676002)(110136005)(31686004)(2616005)(8936002)(38100700002)(2906002)(6512007)(66946007)(26005)(186003)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QURMZ216WlB2aVlGcUkrUnovUXJlUDhYOXNqSldVWG1SYXBKbS9oUGJ6dGxB?= =?utf-8?B?dG9tdVBDSmFBWlFReW1hcGgzSm05ZnA3TFd2b09ZSXcyOFNlQkIwSTV3RFBu?= =?utf-8?B?alNBRm9aVk5rT29EUGFWdkxzNzFYSjM3b2QzYVEvTE9kUERTYUVMOW9SMmtU?= =?utf-8?B?cjIzZGsxRkFOYmd4TVlvM09aSVJSZUVaMG4zdVZMSmtRRFFKcFBaeFd4YWs3?= =?utf-8?B?SEVJT2F1aVlVbnpIRkJHQll0WHVIK0VHZ2dzaGQ5RkUrai9YZmQzMjBNUnpL?= =?utf-8?B?TElPcVBMNGdGOEp3dkl0LzJLa2tseGk3Q0NYWDFKNWpaaXhPTy80bTlBS25l?= =?utf-8?B?bnZubFlWR2ZuQlBhSHh0bEtTaFVJRDdidGM1cmgxbm5iNHNZeHRaRVFTZHVw?= =?utf-8?B?Ml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rZ1FhMWZzOW9XNU5zcU8zTXpQT0Vx?= =?utf-8?Q?78b70T+V4tDvaV6/UN1uIvGLio1+4/fH/HBTCVA85U=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: b6b120c1-e44b-41ba-4fec-08d9d4288d1e X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB4224.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2022 11:01:28.3802 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +mzcoD/yoZNU03Xty3EK08RP7YQI5GmNQnv01Rj0VukqX2VX/nIiaBxvfX4GiauFqjsc2riI+hK0C1cjG1d0vZqCsxzJYx8g5o1gc/JNokQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR11MB3043 X-OriginatorOrg: intel.com 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 Hi Yaron, On 09/01/2022 13:20, Yaron Illouz wrote: > I am using Mellanox Technologies MT27800 Family [ConnectX-5], using dpdk > 19 with multi rx queue with rss > port_conf.rx_adv_conf.rss_conf.rss_hf=(ETH_RSS_IP | ETH_RSS_UDP | > ETH_RSS_TCP) > > I analyze traffic and need all packet of same session to arrive to the > same process ( session for now can be ip+port) > > So Packet that have the same ip + port arrive to the same queue. > > But If some packet are ip fragmented, packet arrive to different > process. It is a problem! > > How can i calculate the hash value in the c++ code, like it is done in > the card, so i can reassemble packets and send them to the same process > like the non fragmented packets? > I think you need rte_softrss/rte_thash_gfni() , details could be found here: https://doc.dpdk.org/guides/prog_guide/toeplitz_hash_lib.html Or as an alternative option you can configure your NIC hash function to calculate the hash on L3 fields only. -- Regards, Vladimir