From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754167AbcBWQRW (ORCPT ); Tue, 23 Feb 2016 11:17:22 -0500 Received: from mail.savoirfairelinux.com ([208.88.110.44]:41240 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752579AbcBWQRU (ORCPT ); Tue, 23 Feb 2016 11:17:20 -0500 From: Vivien Didelot To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Florian Fainelli , Andrew Lunn Subject: Re: [PATCH net-next 0/4] net: dsa: pass bridge device to drivers In-Reply-To: <1455296981-27998-1-git-send-email-vivien.didelot@savoirfairelinux.com> References: <1455296981-27998-1-git-send-email-vivien.didelot@savoirfairelinux.com> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) Date: Tue, 23 Feb 2016 11:08:26 -0500 Message-ID: <87fuwjcsud.fsf@ketchup.mtl.sfl> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, Vivien Didelot writes: > This patchset simplifies the DSA layer. > > A switch may support multiple bridges with the same hardware VLAN. Thus a check > such as dsa_bridge_check_vlan_range must be moved from the DSA layer to the > concerned driver. > > The first purpose of this patchset is to help moving this check to the > mv88e6xxx driver, which is the only one affected at the moment. > > To do that, pass directly the bridge net_device structure down to the DSA > drivers, instead of calculating a bitmask of bridge members. > > The second purpose is to prepare the replacement of the complex > port_vlan_getnext approach. A second patchset is ready to follow, implementing > port_vlan_dump and thus simplifying the DSA slave code one more time. > > Note that this patchset applies on top of https://lkml.org/lkml/2016/2/5/532. The dependent fix from net is now merged into net-next, which makes this patchset apply well. I'm sending the second patchset right away. Thanks, -v