Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3568014ybg; Mon, 28 Oct 2019 15:06:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPu8hmb/fFZgxi0W55lCrG12qmut8mTMywuztedi64uoKXXvSDTwrZJumUR1tTIb736y+h X-Received: by 2002:a17:906:73d5:: with SMTP id n21mr117777ejl.228.1572300403872; Mon, 28 Oct 2019 15:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572300403; cv=none; d=google.com; s=arc-20160816; b=Wth0ptdAIvEWXyxPBrhz2WLQbdJZupkDtXB5ppaNikjZH54T3ECFtf+DqjQxsHVap8 Lh/wv3lKs5l9DA3NKg563sBkodZDRoFcNalG2IiqDxSgsfMcIm1LbVPamQti9AksiM8G Bt/U1NUpKWoYzBPQajhaHwIrf9J3e307cW0wLQkpoxtjccW5SDuMv+CF43F2T1ondyd9 vveZwX4D2pTxj8F/sBMAr6+AtiicGRXnzK+ZfyCWVvPawsOCv0nYfmg9imIQ2QcYKjvj u8DwDSL2BGrySxDr8X18N24oWiu1krWEAcaJHdHWCW9FHkTq2j54ToGmcjd1BX7chGgl vyag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=gH4y2MFqABtX7zjcmdwe1o93nYkmE33y7ZMgRkG6HKA=; b=CK0x7Zb3RipfZaE0Ed1JKDOLWKDjqkoZx2iPPkMZljbgGCOFiJImkhtettESS+yIGB WhooGILqbD7wsPTo45jihcb0Nwl0TYsloSwcvAXjhuGq9Lb2tq892aJJ9R2+WhR0c1KL 02XVD4K6NDisKxavuYP3ksjS72fwg+BlKyAdfzfoY/ekVvasq825flU7y11L3Z9TALmA cCyNLi2WN0x6/L7D4v5UYPbFI0NUeYUfC7xjO7vlpfNvcvXHxgFg4IW4TNxu6T/Z+bn7 opyCsiMNAfLTy1RnjLyMbcIp7nxCy0go5K+4wJukXXT6mDeuaQ2SZfTuTnW6puLU5HpR VH8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UyMY9isg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 18si3163798ejz.321.2019.10.28.15.06.19; Mon, 28 Oct 2019 15:06:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UyMY9isg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731506AbfJ1Twa (ORCPT + 99 others); Mon, 28 Oct 2019 15:52:30 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:46322 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730286AbfJ1Twa (ORCPT ); Mon, 28 Oct 2019 15:52:30 -0400 Received: by mail-qt1-f195.google.com with SMTP id u22so16381535qtq.13; Mon, 28 Oct 2019 12:52:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gH4y2MFqABtX7zjcmdwe1o93nYkmE33y7ZMgRkG6HKA=; b=UyMY9isgczsRGGj0g1nqEHPUKIFtiw+ehWC7EFwImXQeQBD9BqdyPNl2Wds9pczum2 xO9qxFYd8gPGOKZGaz38YVSemepFNwVA7MDvC3bqefM5DreHWQMguKpGzIBu+Mpje1aM BwE0Dm+WQ9/vRyx9hw0slP6z8jlQ2zHOBYJF5EYWeh3bhUJPFqZODjocfr29EjfUlwdW zUzaz515Iq8IORYd+QiBfvmsGT1Fnnq+l+EzqtjEzdl+OQJqeenwMXfPzU5NGUQXMDTI jOmzYFlii/9bc9WVLyV6ahqI1hFNbuSVzgbxhpEPNo0qbXw7HXm0w0C3jgzrDeYi4AAf iSWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gH4y2MFqABtX7zjcmdwe1o93nYkmE33y7ZMgRkG6HKA=; b=mWfQU0N7y2Qj6Ha6bT4rkAZoEOHHJUL/jzrHdCxsVpFtyZ/3YNvV9rG3Oxt8o7R88e Hf3pfzMrGbw3SyXLO/BazJAkIL8YD8JARflZAq6i89Uxvitf/rZUF2rXJePvyTh8quKc JxjmLGlo5ox9I8855F22/8x5RGj2f/7B3es5owg5LRCOV+9w5S9hrSl2rMhJnMjKSkF2 zKIrpzICR/xg3eVHP4jywkBHSFlhDYk64ZwA2YJHlFMdSI45HSPMq9cDH4hK9nd/QAWh a5Zp2N1zltGgXi/pu5c0nhYH7KvKtkm1UjSJ79EIGrgCogo6WKS2wkPWF7sn1EHMLBOf VrjQ== X-Gm-Message-State: APjAAAWznDYI5wqEU7sfmXj6I5ByVA9RMDEMpZq+K+zezzjnZmcouOeN qgrGHJZ3Kxws7A0LjXz5nqxuY6tH X-Received: by 2002:ac8:2fda:: with SMTP id m26mr213925qta.374.1572292348833; Mon, 28 Oct 2019 12:52:28 -0700 (PDT) Received: from localhost (modemcable249.105-163-184.mc.videotron.ca. [184.163.105.249]) by smtp.gmail.com with ESMTPSA id m72sm3115968qke.5.2019.10.28.12.52.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 12:52:27 -0700 (PDT) From: Vivien Didelot To: "David S. Miller" Cc: linux-kernel@vger.kernel.org, Vivien Didelot , Florian Fainelli , Andrew Lunn , netdev@vger.kernel.org Subject: [PATCH net-next 0/7] net: dsa: replace routing tables with a list Date: Mon, 28 Oct 2019 15:52:13 -0400 Message-Id: <20191028195220.2371843-1-vivien.didelot@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This branch gets rid of the ds->rtable static arrays in favor of a single dst->rtable list. This allows us to move away from the DSA_MAX_SWITCHES limitation and simplify the switch fabric setup. This branch applies on top of Colin's "net: dsa: fix dereference on ds->dev before null check error" commit. Vivien Didelot (7): net: dsa: list DSA links in the fabric net: dsa: remove ds->rtable net: dsa: remove switch routing table setup code net: dsa: remove the dst->ds array net: dsa: remove tree functions related to switches net: dsa: remove limitation of switch index value net: dsa: tag_8021q: clarify index limitation drivers/net/dsa/mv88e6xxx/chip.c | 8 +-- include/net/dsa.h | 39 ++++++---- net/dsa/dsa2.c | 119 +++++++++++++------------------ net/dsa/tag_8021q.c | 5 +- 4 files changed, 83 insertions(+), 88 deletions(-) -- 2.23.0