From: Jiri Pirko Subject: [patch net-next 0/3] mlxsw: spectrum_router: Optimize LPM trees Date: Mon, 22 Jan 2018 09:17:39 +0100 Message-ID: <20180122081742.3553-1-jiri@resnulli.us> Cc: davem@davemloft.net, idosch@mellanox.com, mlxsw@mellanox.com To: netdev@vger.kernel.org Return-path: Received: from mail-wr0-f194.google.com ([209.85.128.194]:36288 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750928AbeAVIRo (ORCPT ); Mon, 22 Jan 2018 03:17:44 -0500 Received: by mail-wr0-f194.google.com with SMTP id d9so7597475wre.3 for ; Mon, 22 Jan 2018 00:17:44 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: From: Jiri Pirko Ido says: This set tries to optimize the structure of the LPM trees used for route lookup by avoiding lookups that are guaranteed not to return a result. This is done by making sure only used prefix lengths are present in the tree. First two patches are small preparatory steps towards the actual change in the last patch. Ido Schimmel (3): mlxsw: spectrum_router: Use the nodes list as indication for empty FIB mlxsw: spectrum_router: Pass FIB node to LPM tree unlink function mlxsw: spectrum_router: Remove unnecessary prefix lengths from LPM tree .../net/ethernet/mellanox/mlxsw/spectrum_router.c | 243 +++++++++++---------- 1 file changed, 132 insertions(+), 111 deletions(-) -- 2.14.3