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 0682FA04A2; Wed, 6 Nov 2019 09:14:15 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C34111C024; Wed, 6 Nov 2019 09:14:15 +0100 (CET) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50075.outbound.protection.outlook.com [40.107.5.75]) by dpdk.org (Postfix) with ESMTP id 9D1101C01F for ; Wed, 6 Nov 2019 09:14:13 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nJIaP5Qm4Q8x4LJjG+/tgSuhHjxG0XL7A8Sp7t1D3yWFjJiMA2pCMCelc55y2gSVie9N3BfdhSaL4M4EYzPLak3eSHfZPS8N0ithZ1vLb+qEIRlgbh1B82RQJrZquCF+0pKSGgqLaCnWbOsqGm3IvcLDDpysP6QqEI405nELqauMveC+j4m1k4qc6tvWN51K3jlQdM6nD2XdfGsPyt78c+PNtmicenFJEp29rDL60nprCjCYZhzjcV/gvP1yBeXyblWZb32LBV8F6CElfSqBkZfO7YkCBBXEr4pYpRDGJl4knPSB9RGFWA4vdFUKrfGfqowJXS/Cei8xt3e2SGFTpg== 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=84/cbKahRXEEefsaoV1AS/ySTAtaoLSOh+rDZFhKCuA=; b=ZTeW0UWYgOfLcubfgsWncxHF3cAFZJ/7EJDzrFLYuaKe/kVywD/HY23BwWOYUBD5jk7KypXZRH1OCVO/Y+v90mTiwgP8H7PBJs0Xk0m7idpctJaqkcnmYVWiNCRGELEVrTsEdBBAn4L2zNRgEMVjbenqkQCb877y7zhdubuv3ynzNTGBG4nuFcnE0tO7/+BSlgk0ABDpkGb9OcOsM6MepQIUCA2QI1Vsxvxqmd+Kvx9tBm11xSN5dwgxlGQCyvK2J2bXgX9CVgVRqCSlXUnoN7rRlDdEIWTl9kp1hooZcnex8IH5e8/sn1xrcD0eB3kWSd1zmBXRJ3ba0YiGBq/MRQ== 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=84/cbKahRXEEefsaoV1AS/ySTAtaoLSOh+rDZFhKCuA=; b=HufagMSrHMOutEk4NDn7KUHRm82EBVZXUfxv09MnBnH/9h1tcPFHJlsywe8Y2k8ajG/GEOqWSYyXoNZfoEpI0kbS30NGdftWjuKpyFGZzIyezLqBl/XgZueGC7cYHLi9/VD19/DQp6tMstisabT+kxbasR4ryhHasaliEiLJmY4= Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com (52.134.65.161) by DB3PR0502MB3980.eurprd05.prod.outlook.com (52.134.72.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.20; Wed, 6 Nov 2019 08:14:12 +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; Wed, 6 Nov 2019 08:14:12 +0000 From: Raslan Darawsheh To: Stephen Hemminger CC: Bing Zhao , Ori Kam , Slava Ovsiienko , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] net/mlx5: introduce mlx5 hash list Thread-Index: AQHVk+2hsEM53LuiQUSBk60gZnOTa6d8vNiggAAXnwCAAPfOUA== Date: Wed, 6 Nov 2019 08:14:12 +0000 Message-ID: References: <1572967680-93338-1-git-send-email-bingz@mellanox.com> <20191105092630.7d01b2b6@hermes.lan> In-Reply-To: <20191105092630.7d01b2b6@hermes.lan> 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: d3f93202-948d-4558-65aa-08d762914e8c x-ms-traffictypediagnostic: DB3PR0502MB3980:|DB3PR0502MB3980: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 02135EB356 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(346002)(136003)(39860400002)(396003)(366004)(13464003)(199004)(189003)(71200400001)(6916009)(476003)(71190400001)(74316002)(305945005)(486006)(2906002)(7736002)(6246003)(4326008)(25786009)(5660300002)(256004)(14444005)(446003)(26005)(52536014)(186003)(81156014)(81166006)(478600001)(8676002)(8936002)(33656002)(14454004)(76176011)(6506007)(11346002)(102836004)(53546011)(7696005)(86362001)(229853002)(54906003)(66946007)(99286004)(316002)(66446008)(64756008)(66556008)(66476007)(76116006)(66066001)(6116002)(6436002)(3846002)(55016002)(9686003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB3980; H:DB3PR0502MB3964.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: ODnMWYP5tR5YsguQ1iCMH/IaFnk5cDKIk9wN/iu+pdBdYYNJoPIUje0PjOJ7lW+N1sR33AHM3uhew/Nw9UdAAaU31mce8wWFC2x/c2VFRUlngbGDfn5r48cdnVOhmpwXFEAymYl43uCCgI/zo2zyVSgmXnUmfTwoDRhZJfVKETvZThgKegCyjXZC9AubfhlzhUIFTff/tdBDaemjYAtCRJClWqaHs27KxBBGAxWoxMVPb0e8+SzLofROzcBt+y/fop+C8Is7WpEa3Pha4yi++/jPZmNGiaBJD1Zx5PJNGKfHBlNU6hcgDBquehW6/xosfmkDlcaH3LNplXkKZwW89C5s0x7OWuQ27wojC/OlXCRPURhASzeLGz2zJcnGicyp+GS0BvXTJnPjvZNCZIzx7yNdRTKPnZ0SUlS2GVnXW39mDtMQsFBppmMtNhoP6Rnr 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: d3f93202-948d-4558-65aa-08d762914e8c X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Nov 2019 08:14:12.2099 (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: er7GMylu1P/0hfJRmlsRVU3iWJm/D44EydJEH8rItFKt8Oz1e3FmVS9uvfrYMKSDlMNToz4ip+FjgqZ4Z8IT1Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB3980 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 Stephen, You are totally right about it, but, I needed this patch for some testing. = So Will remove it from next-net-mlx for now, and will be waiting for some f= inal version to be sent. Kindest regards, Raslan Darawsheh > -----Original Message----- > From: Stephen Hemminger > Sent: Tuesday, November 5, 2019 7:27 PM > To: Raslan Darawsheh > Cc: Bing Zhao ; Ori Kam ; > Slava Ovsiienko ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] net/mlx5: introduce mlx5 hash list >=20 > On Tue, 5 Nov 2019 16:02:18 +0000 > Raslan Darawsheh wrote: >=20 > > 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 > > > > > > 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 and 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 remaining 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 t= he > head in the list heads array. > > > This implementation is not multi-threads safe right now. > > > > > > Signed-off-by: Bing Zhao > > > --- > > > > Patch applied to next-net-mlx, >=20 > Please don't apply so fast! Not allowing a few days for review means that= it is > just getting rubber stamped and not allowing for any feedback.