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 EC0194293D for ; Fri, 14 Apr 2023 08:16:07 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B696A410F6; Fri, 14 Apr 2023 08:16:07 +0200 (CEST) Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2062.outbound.protection.outlook.com [40.107.117.62]) by mails.dpdk.org (Postfix) with ESMTP id 9F0DD400D5 for ; Fri, 14 Apr 2023 08:16:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tatacommunications.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HF9tAviIJelu3PGmHjfMEvFyhTku/kTI5KkkS1CRqEs=; b=Tvun5Nmr4vubPb981SnU49u6j5fUx8vZ9L1hdEpKzKGWOnfEGKNzTjffvs19sDYYvqSBSe6HAoVd131RTvinuvRCQl41hWDusLP3siVS52Ywgff2QRaNrH8A9ud2jWURf6wAQESWMMmulceE61v+YsrJtodHgjDGeNDmN3jumhokboF01ghX74Q6dYDtSzPltSsHczjtUGraBOnp2wTMgbciROkgUxHGBtUhK3COf8P3aZxGMvGxKDRbadnZcKp2XUOtwNxEStJr7ki1JZ/3ENCdlPxHzDrZwzf5BrnbqZFwq9NLZDcbi2R9Y5Okhq3evuWeN/2+A4q2MmnKLhfZ6g== Received: from SG2PR04CA0187.apcprd04.prod.outlook.com (2603:1096:4:14::25) by PUZPR04MB6183.apcprd04.prod.outlook.com (2603:1096:301:ef::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.30; Fri, 14 Apr 2023 06:16:03 +0000 Received: from SG2APC01FT0049.eop-APC01.prod.protection.outlook.com (2603:1096:4:14:cafe::2a) by SG2PR04CA0187.outlook.office365.com (2603:1096:4:14::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.34 via Frontend Transport; Fri, 14 Apr 2023 06:16:02 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 52.62.169.21) smtp.mailfrom=tatacommunications.com; dkim=pass (signature was verified) header.d=tatacommunications.com;dmarc=pass action=none header.from=tatacommunications.com; Received-SPF: Pass (protection.outlook.com: domain of tatacommunications.com designates 52.62.169.21 as permitted sender) receiver=protection.outlook.com; client-ip=52.62.169.21; helo=sydapipop-haraka-inline00.vpc-a3a96cc4.ase2.shn; pr=C Received: from sydapipop-haraka-inline00.vpc-a3a96cc4.ase2.shn (52.62.169.21) by SG2APC01FT0049.mail.protection.outlook.com (10.13.36.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.32 via Frontend Transport; Fri, 14 Apr 2023 06:16:02 +0000 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01lp2046.outbound.protection.outlook.com [104.47.110.46]) by sydapipop-haraka-inline00.vpc-a3a96cc4.ase2.shn (Haraka/2.8.24) with ESMTPS id F1C04454-DCF4-46E1-B650-1794F575E0B5.1 envelope-from (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Fri, 14 Apr 2023 06:15:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RkebEa+pdPjr9NAs4mHOO3KyYtHGqt7rcoj/kFp+4IpLc8ZoVonjpO3cS60vl8C97yuVepYt62LViJnoaHVLS9+GO5Mg7ISXOU4qL8zyyqYji41Wjt4js7B4PFQiurlSUBQdzCidsDTPh2OeisQ4gVMDvH/JE2vuX2u5V1nbviUtec+EJx/LvYIAmzzal71L1ChTXwwe6Udizy08JJZnPH4yPuFr9tGLHDrOTFqC8qIE8IuEw9hYJRwkCvR2QZv7nHdTcyfNtpnLOXVUtczQcoiLyCcyxbnd/HGSmv50XhSY66+yfysZbstJBO12NTBcYNLB+dINxMUeZAo+Xc1s7Q== 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=HF9tAviIJelu3PGmHjfMEvFyhTku/kTI5KkkS1CRqEs=; b=e8rzkr1gqmiBaD+saXbO9Hy5GB/HuBY+8ZJ0TBczPAsjKv0MaKtKzdx4/wqh9OYRgaaIVrdeod6H78vuW+eTzx6xiZvSj8asZENUuITtR7+sIgKu6FU9AAXMB5HXExFy/13iBflqsWe2Zb54BFm3SxQsvSyGB4qUZMKM6TmXnHD6F3XY0p7SYfhRf0CB2oKLXQubNSrHxbW6jgjGe5RYHLGR0lBOlVJ6QgxHRN54DyEFr1IJQROTm3aakLtgZz0yeVbytCclhd65eXh/n3ZR/K9fIkS+1usL/wtBgR+/Oj5vEdWSLjebypjjwP4WGC7DwKJje7i7vDvFzOU9koFD8g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=tatacommunications.com; dmarc=pass action=none header.from=tatacommunications.com; dkim=pass header.d=tatacommunications.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tatacommunications.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HF9tAviIJelu3PGmHjfMEvFyhTku/kTI5KkkS1CRqEs=; b=Tvun5Nmr4vubPb981SnU49u6j5fUx8vZ9L1hdEpKzKGWOnfEGKNzTjffvs19sDYYvqSBSe6HAoVd131RTvinuvRCQl41hWDusLP3siVS52Ywgff2QRaNrH8A9ud2jWURf6wAQESWMMmulceE61v+YsrJtodHgjDGeNDmN3jumhokboF01ghX74Q6dYDtSzPltSsHczjtUGraBOnp2wTMgbciROkgUxHGBtUhK3COf8P3aZxGMvGxKDRbadnZcKp2XUOtwNxEStJr7ki1JZ/3ENCdlPxHzDrZwzf5BrnbqZFwq9NLZDcbi2R9Y5Okhq3evuWeN/2+A4q2MmnKLhfZ6g== Received: from PSAPR04MB5516.apcprd04.prod.outlook.com (2603:1096:301:5c::9) by PUZPR04MB6843.apcprd04.prod.outlook.com (2603:1096:301:107::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.44; Fri, 14 Apr 2023 06:15:57 +0000 Received: from PSAPR04MB5516.apcprd04.prod.outlook.com ([fe80::78ee:66ab:d192:9962]) by PSAPR04MB5516.apcprd04.prod.outlook.com ([fe80::78ee:66ab:d192:9962%5]) with mapi id 15.20.6298.030; Fri, 14 Apr 2023 06:15:56 +0000 From: Balakrishnan K To: "users@dpdk.org" Subject: rte_hash_table lookup failed Thread-Topic: rte_hash_table lookup failed Thread-Index: AdlumFmhXd19NoQMTxqX6NFVreqxLQ== Date: Fri, 14 Apr 2023 06:15:56 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_5cbf6393-50e2-4904-bc3e-1804619f2b03_ActionId=cca28a94-c965-4a3b-b540-f23fefe2e5c7; MSIP_Label_5cbf6393-50e2-4904-bc3e-1804619f2b03_ContentBits=0; MSIP_Label_5cbf6393-50e2-4904-bc3e-1804619f2b03_Enabled=true; MSIP_Label_5cbf6393-50e2-4904-bc3e-1804619f2b03_Method=Privileged; MSIP_Label_5cbf6393-50e2-4904-bc3e-1804619f2b03_Name=General-Test; MSIP_Label_5cbf6393-50e2-4904-bc3e-1804619f2b03_SetDate=2023-04-14T06:15:54Z; MSIP_Label_5cbf6393-50e2-4904-bc3e-1804619f2b03_SiteId=20210462-2c5e-4ec8-b3e2-0be950f292ca; Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=tatacommunications.com; x-ms-traffictypediagnostic: PSAPR04MB5516:EE_|PUZPR04MB6843:EE_|SG2APC01FT0049:EE_|PUZPR04MB6183:EE_ X-MS-Office365-Filtering-Correlation-Id: ac788e59-1d87-4185-232c-08db3cafb91a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: JyV8EDUAZjsEOjrZfiMNfB2d08w8b3EaBba+028809X08jUu3loTMAhW5FdPPPXV300yz7llUBfDaH9wqyY51jPK1oEXvfph8+AnIhabHN53EQuDMRAR50ECzo0e3uRTn03Vt+R4FL+LqpEjmNl5RnPE2BHg4G2I5A4MEkBBh0YXf/P6ZK136SuuM2Ja53teBQJ30VPmUG49UgKtxNEMhNpoeww3hQ12X2Gjm3h34dDzwgile6YXmCzR3+So1AJcNbNtDA2sjKf6L984kY8Nhms4YlsziWDxt1l1ZI4Qh5bqd/r1zSvCoa8oMgjqCFtftxwC5jwYB0XhtyzlzARpPp3RXQBe5UhGJmp4FpeElc/ToYtuqM1Sp2aZUETsVe4cWHd017HRfbBqOhVnI1Ear2J59odNqP2cAXaCPU6NI827zLF+Y50vT3vbwrzF+mw34hYOyeGTmN4sIHPOuqi5yhj+KdNVbB8+dO6RiHMGqvprLd9mB1BHKAqtMNm+md7LROpnlwQi/8WkaXVgaH9/snv6aLp8mjypdBxwgPGlmwOVno/8vnSnjCv3je4Ys0mIDbrNUFOIHGRdB3EsrRMPnB3un78tGbo22jHrN87Umcqh0sruzVDZyCI8QjiHS3HU X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PSAPR04MB5516.apcprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(346002)(136003)(396003)(39860400002)(366004)(376002)(451199021)(478600001)(8936002)(9326002)(55016003)(8676002)(71200400001)(86362001)(122000001)(9686003)(6506007)(38100700002)(316002)(7696005)(66946007)(76116006)(186003)(41300700001)(66556008)(6916009)(66476007)(64756008)(66446008)(33656002)(5660300002)(38070700005)(2906002)(52536014)(7116003); DIR:OUT; SFP:1101; Content-Type: multipart/alternative; boundary="_000_PSAPR04MB5516D31EAFB69B06625CF81AD6999PSAPR04MB5516apcp_" MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR04MB6843 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=tatacommunications.com; X-SHN-DLP-SCAN: success X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: SG2APC01FT0049.eop-APC01.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 85a77f08-536e-462a-ca15-08db3cafb5ae X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QG3C0QLxzZQym0KPdHYvEKO+c22bm4GYdozqyw+DTWtqWSkJEhq12xakKhHvX3PT8WB9stalNALEYHCo5nJ4bWZZj9yOQz2D1Zho2lm4jVhKGCSnnoXdEN1vj8O5zP8kV0P03N5cSsXXzbU8QzC40eITe6Eij+uWRpnIZgOhkRNH1kZqQS/JZxQCU7boowwfCWckhNQRrRs6JuOOgzfDzSyIXQJslVHIKtUQgnnZPn0pkppn188ns2bwtt2f7txlDT5CCyVKw0XXIhhiiTXtVP9q8PXw8JSxWpESQT7/KgwQNEX30U5ZzdfQwx8STAzXjHlEZ/TL/THUw3HhYELuqRJ0mWjxe7Wd0qFDr64m30S7BFqC2fO5jPDWuYOaIf7M5qWzPOTMpUmci32FJK/zokq95AoTiiJ9VPTeHjwyxLc/PR9fU84XB8PM5+v6t8pFr1qj61mG4IrX640BsEMtgo/LyhJwOrVpxlDhALdZGrvo7BSR7TTwZ2tFIHnPDwwupEo1K7HPfOgNKDvWXLWN9emgHynfwK3REW3r7Le7wPbJ3jZMYfpeJ8FgtVFFukKegck0P3kpyh1PKY3cpe+lNXlBaVnvRewJYOSBN/n+UMP72+/d+iEByUNDNeQsVCz2OwX8L9ZtfEsCUbxznHY+FnuSmv67BZKhIcfM2ihskiPFUc2DeG9P/CwppYpaS3CNuRFYuv1J3Nmxv8xEaBjSag== X-Forefront-Antispam-Report: CIP:52.62.169.21; CTRY:AU; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:sydapipop-haraka-inline00.vpc-a3a96cc4.ase2.shn; PTR:send2.mail-inline.syd-pop.i-shn.net; CAT:NONE; SFS:(13230028)(4636009)(346002)(396003)(136003)(39860400002)(376002)(451199021)(40470700004)(36840700001)(46966006)(336012)(26005)(40480700001)(70586007)(70206006)(55016003)(6506007)(9686003)(2906002)(82310400005)(47076005)(7696005)(186003)(36860700001)(6916009)(40460700003)(86362001)(5660300002)(7116003)(52536014)(8936002)(8676002)(33656002)(81166007)(316002)(356005)(478600001)(9326002)(41300700001)(82740400003); DIR:OUT; SFP:1101; X-OriginatorOrg: tatacommunications.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2023 06:16:02.1748 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ac788e59-1d87-4185-232c-08db3cafb91a X-MS-Exchange-CrossTenant-Id: 20210462-2c5e-4ec8-b3e2-0be950f292ca X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=20210462-2c5e-4ec8-b3e2-0be950f292ca; Ip=[52.62.169.21]; Helo=[sydapipop-haraka-inline00.vpc-a3a96cc4.ase2.shn] X-MS-Exchange-CrossTenant-AuthSource: SG2APC01FT0049.eop-APC01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR04MB6183 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --_000_PSAPR04MB5516D31EAFB69B06625CF81AD6999PSAPR04MB5516apcp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, Need inputs on using rte_hash_table. Created hash table to store the mbuf as data and the key is sequence number= . Hashtable size is 8096 I have stored the 200packets which was received. There is no error in during insert. While I am trying to do lookup using loop (rte_hash_lookup_data) it is only= working for first 63 entries . For 64th time lookup failed to return data for the given key. This is happen exactly for the 64th entry not for the particular key value = . Whatever keys stored after 63rd I am not able fetch using rte_hash_lookup_d= ata. If I do the rte_hash_iterate() , I able to get the all the entries stored i= n the hash table. Could any please tell me why the lookup not returning data even though the = data and key is present in the table. Hash table details: #define MAX_INNER_ENTRIES 8096 mempool MEMPOOL3 buffer 2304 pool 4096k cache 128 cpu 0 (create using comma= nd line) struct rte_hash_parameters mbuf_hash_params =3D { .name =3D NULL, .entries =3D MAX_INNER_ENTRIES, .key_len =3D sizeof(uint32_t), .hash_func =3D rte_hash_crc, .hash_func_init_val =3D 0, .extra_flag =3D RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD | RTE_HASH_EX= TRA_FLAGS_RW_CONCURRENCY, }; --_000_PSAPR04MB5516D31EAFB69B06625CF81AD6999PSAPR04MB5516apcp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi All,

   Need inputs on usi= ng rte_hash_table.

Created hash table to store the= mbuf as data and the key is sequence number.

Hashtable size is 8096 I have s= tored the 200packets which was received.

There is no error in during ins= ert.

While I am trying to do lookup = using loop (rte_hash_lookup_data) it is only working for first 63 entries .=

For 64th time lookup= failed to return data for the given key.

This is happen exactly for the = 64th entry not for the particular key value .<= /p>

Whatever keys stored after 63rd I am not able fetch using rte_hash_lookup_data.

 

If I do the rte_hash_iterate() = , I able to get the all the entries stored in the hash table.

Could any please tell me why th= e lookup not returning data even though the data and key is present in the = table.

 

 

Hash table details:<= /span>

#define MAX_INNER_ENTRIES 80= 96

mempool MEMPOOL3 buffer 2304= pool 4096k cache 128 cpu 0 (create using command line)

 =

struct rte_hash_parameters mbuf= _hash_params =3D {

     &= nbsp;  .name =3D NULL,

     &= nbsp;  .entries =3D MAX_INNER_ENTRIES,

     &= nbsp;  .key_len =3D sizeof(uint32_t),

     &= nbsp;  .hash_func =3D rte_hash_crc,

     &= nbsp;  .hash_func_init_val =3D 0,

     &= nbsp;  .extra_flag =3D RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD | RTE_HAS= H_EXTRA_FLAGS_RW_CONCURRENCY,

};

 

--_000_PSAPR04MB5516D31EAFB69B06625CF81AD6999PSAPR04MB5516apcp_--