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 78456A04AB; Fri, 8 Nov 2019 09:15:56 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2DB051BF8D; Fri, 8 Nov 2019 09:15:56 +0100 (CET) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00043.outbound.protection.outlook.com [40.107.0.43]) by dpdk.org (Postfix) with ESMTP id 878321BF7B for ; Fri, 8 Nov 2019 09:15:54 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W9HIKTDAJ2cF1M6ufBks71psaLpbSVAYpDxTgfqyf7W3o1RriH0rSLja5g20Mg0p6Fosk8GyD8M3A/ftFaulDn0Y1Y99/cNISadQd5oP/sobsITu7UNOyrFs4TPzTed7YFLsAI12hj8W1NiPs91g7WiJ+zq/yXZz2duqzU8NUct9Rxinbgn8BGQJrPktBqBAE4eLrbsLz4TBLeUmoQBj/q48Cx3VaNXQ1dNLlZphk75TwOGT8gl2hgWTq0S2t3RaK7u3N6f4LR9fHAT2wsgS9smp6xAqmI4GYHsQxtd6vao/L5N5+NR8qAaumIm/9/mNtzNUlRD8jIOsTlK7sHCwSA== 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=xWP3Hf8HvFokSMXlAoWweXWHrcdBVdJ85ibr1PVB29I=; b=Cnpep+knzEyep0yfHRdl9/nLwVg5SaOfJF/q3sZc6EJYrIwtCQlRg2PTD/SLZ6einl/bDThoUugFgpq3xkpF0M+i6oNx25PA2yC2Aii989W5tWQ8vVVmLTX0ozZ+q+zYp5f3i9NGOpDXAdwiauxzfgK63RNg2i/lph3M+Z658nnc41PbR+sHzqCwUUJYLy4/alObJOdea+PZf3kSne1DwxNn3KInz3jee8WI2uK0dzNVZLEHaTkh+4mjO1VNLSOis83lo/iwJ0XQ7mV8dIv9YEOgEcz04g5ijLnQlLqqnqEclh3tz/VGF0G4DPuTsIUqvybKNWzkCuT1/z2W7BQVoQ== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xWP3Hf8HvFokSMXlAoWweXWHrcdBVdJ85ibr1PVB29I=; b=H/wrMNfoI5ckV/8bovYOVT1zf9kyIg3kLIE1CVVqwPqRGjms7sktHOKY3IvBEirUm1pDk3+ecwmOTpMuE50JdqXW/LBrEGazwdT4sWwcTyBa9gDZhOiLcGQtzFvlpDLFW9n5VlNMpM3ZWtlkR6+qoGSeJVaYxecerXpnNFjXYEs= Received: from AM4PR05MB3265.eurprd05.prod.outlook.com (10.171.188.154) by AM4PR05MB3395.eurprd05.prod.outlook.com (10.171.188.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.22; Fri, 8 Nov 2019 08:15:48 +0000 Received: from AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::9940:94f2:db23:aa2c]) by AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::9940:94f2:db23:aa2c%4]) with mapi id 15.20.2430.023; Fri, 8 Nov 2019 08:15:48 +0000 From: Slava Ovsiienko To: Bing Zhao CC: Ori Kam , Raslan Darawsheh , "dev@dpdk.org" Thread-Topic: [PATCH 1/3] net/mlx5: reorganize flow tables with hash list Thread-Index: AQHVle9Rn97V0IJukkKOWCjYBQ5W9qeA7X5w Date: Fri, 8 Nov 2019 08:15:48 +0000 Message-ID: References: <1573188297-51428-1-git-send-email-bingz@mellanox.com> <1573188297-51428-2-git-send-email-bingz@mellanox.com> In-Reply-To: <1573188297-51428-2-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=viacheslavo@mellanox.com; x-originating-ip: [95.164.10.10] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: e525501b-b03a-49c4-816a-08d76423dcc9 x-ms-traffictypediagnostic: AM4PR05MB3395:|AM4PR05MB3395: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-forefront-prvs: 0215D7173F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(366004)(396003)(346002)(376002)(136003)(13464003)(199004)(189003)(7696005)(486006)(99286004)(6116002)(8676002)(6862004)(66066001)(4744005)(53546011)(6506007)(6636002)(8936002)(6246003)(81156014)(81166006)(305945005)(2906002)(3846002)(55016002)(76176011)(52536014)(7736002)(54906003)(186003)(102836004)(76116006)(66446008)(64756008)(66556008)(5660300002)(14444005)(74316002)(4326008)(446003)(6436002)(316002)(229853002)(33656002)(9686003)(71200400001)(256004)(11346002)(66946007)(476003)(71190400001)(66476007)(25786009)(478600001)(26005)(14454004)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3395; H:AM4PR05MB3265.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: KTMyqZMPRFD18Vg7tanQ4/hW/z/25bpsyxg9pZtrpkbFsfp2KrpCYCJs3m6gMkCcb0bpCZhHcuur2l9HQ0cOn6IsjVk7t2v44GUCKE47s1mh6KVybY+vM36G8Qeoc0k4wYj4sutE52aqi4fK0R58aY9yi9oLCUpLD3+qpFeQz1PW1bmN9RC8qoTNzSKx8ZCH1IM4wsxElJoUvs/5fgeVe1ZgmxASbS7LyGKPcqaGPaadrn38y1mPOPmrTbCGjVRxDR8jQZR4POJX0bUEnvbtkmH9Y0mk8eCJGPJl4WO585uXb/8x2o2tMW1CGmQHYV27RQEdKkPuhnigAgcoKDfI+QAGkoBAZDBl6qdAgUOzveYrIt9yoXdiRKEicuN2N8Soj1fNWCZTV+ZsOgaKqqpTO1W3jl5VBmPJ51gH/gD6nbmQ5E4M6PJgY0OESJCj1MW/ 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: e525501b-b03a-49c4-816a-08d76423dcc9 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Nov 2019 08:15:48.6121 (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: CbCWk+XqBespky2e+0blaGOg2PEX5jaslA0KR8GdBt20fPrMcjpsIXbxSxeMu+3bE4DpQOXhq1gWH8q3s0cEJIFQXmT2NEvCUoscaHAA+0c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3395 Subject: Re: [dpdk-dev] [PATCH 1/3] net/mlx5: reorganize flow tables with 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" > -----Original Message----- > From: Bing Zhao > Sent: Friday, November 8, 2019 6:45 > To: Slava Ovsiienko > Cc: Ori Kam ; Raslan Darawsheh > ; dev@dpdk.org > Subject: [PATCH 1/3] net/mlx5: reorganize flow tables with hash list >=20 > In the current flow tables organization, arrays are used. This is fast fo= r > searching, creating related object that will be used in flow creation. Bu= t it > introduces some limitation to the table index. > Then we can reorganize the flow tables information with hash list. > When using hash list, there is no need to maintain three arrays for NIC T= X, RX > and FDB tables object information. > This attribute could be used together with the table ID to generate a 64-= bits > key that is unique for the hash list insertion, lookup and deletion. >=20 > Signed-off-by: Bing Zhao Acked-by: Viacheslav Ovsiienko