From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 627F1A04A2; Tue, 5 Nov 2019 17:02:21 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 080E51BF94; Tue, 5 Nov 2019 17:02:21 +0100 (CET) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20043.outbound.protection.outlook.com [40.107.2.43]) by dpdk.org (Postfix) with ESMTP id 9F54B1BF81 for ; Tue, 5 Nov 2019 17:02:19 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NcSbe28vPAaBVjydzlYhxXnfZZPd+wKTG5IhvZD7sxo4gnsuN99XeZ72uZspqSA8Nf2cgUL7fjfd/DHO2wm/RAHtvTrEp5YFfmG8qWqmrpKxwqKolNLtSuGfXpheQRnC/XpfsLKqeHRyFg06qJdSDfxPoCxTQBWaM8fQvU+FxoFOGDCNRV1T1xPd+2YrTLleQKX4igAX1xhOmkFk6PLShKlMUodqBC8+spDi5pa7jhgiWtowuRjfgTl1UsZ2BEPZKseiljQ1TpZT8IvWdm8MLM+/7zMzAYSnan/VjgITs8HdZqpLeAHdY0OJSRKE+tlgQJPiMkXBV47e7SYY30V9yA== 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-SenderADCheck; bh=zW58Uc35UqqTcuXY5Nh5vk2CHBFMDD5jOK33SbCHdZ0=; b=GKGton4sp8ZKhXh7T6MU0rndDmli0pnzkk0Yv1IU7nXMM+Nwu+RQL11IX8W0nwht0rLfeNmSgh88cxalttic3hWMiASy9AkqDRaYSd098hAv4ZkY5BB4JRgkO/1e7nZiadYBpp8l30P68mCumQ+3YAAKHfOY3IGYdwdSmjeJdH2tfWCQ0CwXPGUcn4XBSe4zBXoakfxXzNFi6XIkV87+s1hp+aqmRHGxlxg9LiWKxAJbAAgYIe1jvsAd4nYRdl1Dz6XVkftQJQ6lIBOWHDBmttsmW+9rhdw3LFxc6Ylt6YYZ3yIqTajk1bEv2X1+MwkZkjYd8LyFjjcWXBSsTiAxKQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zW58Uc35UqqTcuXY5Nh5vk2CHBFMDD5jOK33SbCHdZ0=; b=BSLN5l7s06mii/cn0s/Eb0JPkzavociWweA0Q7jX/QmNj/k1l9/AFoi44e1MH8qoAocnQiTj/zm5N1DOppJseB2FsolbzZqPph4FcEWUbOZh+Q1HY+Qnw8WEnDvENdjumIjIwfe4fRLbe9R/VCHIvy/Z7MOkYD+qEWtuC4jd5JE= Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com (52.134.65.161) by DB3PR0502MB3979.eurprd05.prod.outlook.com (52.134.67.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2408.24; Tue, 5 Nov 2019 16:02:18 +0000 Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::a850:bac9:c90f:f2f5]) by DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::a850:bac9:c90f:f2f5%6]) with mapi id 15.20.2408.024; Tue, 5 Nov 2019 16:02:18 +0000 From: Raslan Darawsheh To: Bing Zhao , Ori Kam , Slava Ovsiienko , "dev@dpdk.org" Thread-Topic: [PATCH] net/mlx5: introduce mlx5 hash list Thread-Index: AQHVk+2hsEM53LuiQUSBk60gZnOTa6d8vNig Date: Tue, 5 Nov 2019 16:02:18 +0000 Message-ID: References: <1572967680-93338-1-git-send-email-bingz@mellanox.com> In-Reply-To: <1572967680-93338-1-git-send-email-bingz@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=rasland@mellanox.com; x-originating-ip: [82.213.2.186] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 32714986-1242-4ee5-57b5-08d7620988a7 x-ms-traffictypediagnostic: DB3PR0502MB3979:|DB3PR0502MB3979: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 0212BDE3BE x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(39860400002)(136003)(346002)(376002)(396003)(189003)(199004)(13464003)(476003)(486006)(316002)(81166006)(81156014)(8936002)(3846002)(8676002)(66476007)(66556008)(64756008)(66446008)(52536014)(76116006)(6436002)(446003)(6116002)(2501003)(256004)(110136005)(102836004)(66066001)(99286004)(26005)(478600001)(2906002)(25786009)(7696005)(14454004)(53546011)(7736002)(186003)(76176011)(11346002)(66946007)(14444005)(6506007)(305945005)(5660300002)(6246003)(71190400001)(71200400001)(86362001)(229853002)(74316002)(33656002)(55016002)(9686003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB3979; H:DB3PR0502MB3964.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: iKIbcisvOjhvgmjzmmczPeGQBUjW46/PPNAEVCljoFqCmpi0SDQfWJ+zWJMxJpm8tZDnJHQ8mFrl/7dPgSRNBmXBhWH9jyvu1JOcL1Vs0IVKDCWGaWoS4QBlVlmCaGoiV9nd7fmDfquxfaNXBbDP9m5VZcgiGFvQsFEwOgVIVxdgL8WCRBc00rUpCeA1ebped653YParzaGOKHOADAHfM7QehynhYYfJBe29fAheGbYPAGF6v9Ib/XYReg0R2KsR6gdXINCMY9mNbx56FGNh/TKfbuipxpiYjbR8C+R1ZE8fK2XniCprtH37wvKjwe0Rsa2lKLCdIU5xaYthT9mZ0YMv5tQxVgBjJSLaX/7SFxG90K+OlCGMWslYIer18BlermYL2zSwrlbYiRKpZ2JwUOQ9Yq5YpenV3dZNenGOoGd1tDLlfHaNt17d56ZF/UJl Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 32714986-1242-4ee5-57b5-08d7620988a7 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Nov 2019 16:02:18.1381 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Sl6g2+/FDrQ5kxvimKnXCUcSP6JkZ0sQM+cRFdLlDyea6CuGmM0dFqBsd97r8bswbYL6b5nYh0SBIoNy6hl8dg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB3979 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: introduce mlx5 hash list X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, > -----Original Message----- > From: Bing Zhao > Sent: Tuesday, November 5, 2019 5:28 PM > To: Ori Kam ; Slava Ovsiienko > ; Raslan Darawsheh ; > dev@dpdk.org > Subject: [PATCH] net/mlx5: introduce mlx5 hash list >=20 > Introduce simple hash list to the mlx5 utilities. User can define its own= data > structure containing the mlx5_hlist_entry and create the hash list table = via > the creation interface. Then the entry will be inserted into the table an= d > linked to the corresponding list head. User should guarantee there is no > collision of the key and provide a callback function to handle all the re= maining > entries in the table when destroying the hash list. User should define a > proper number of the list heads in the table in order to get a better > performance. The LSB of the 'key' is used to calculate the index of the h= ead > in the list heads array. > This implementation is not multi-threads safe right now. >=20 > Signed-off-by: Bing Zhao > --- Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh