Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp765843pxb; Fri, 3 Sep 2021 12:57:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw61IZwerpgcR3Otv2p+uuPLjYNGibpTIm6smHilO7repewlVdgm+qoEg/kcVUGWu7QyYMG X-Received: by 2002:a05:6638:4122:: with SMTP id ay34mr617493jab.131.1630699072930; Fri, 03 Sep 2021 12:57:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630699072; cv=none; d=google.com; s=arc-20160816; b=R4huiniMAFzNOEro349Cnlq+8PbLv1eVuMA64wNnxMhNoiGzo+ok3MWgguh1r+PXVu V3fIMsZoHYydwKgyfKqgVExD0bb35JZne7BihZq4gMMpMkf8po7Qbr+KrXu0PMKi48cK qoGtmBl+NCPwkvPhYR0mGpIydoAHMsE4pN6F4KK6TwNIunJNz9qbMQkZjFmx2Cil8iUL shirXE28xS2ULDzRmGToWpIEVU0YiIeQygEbCiFJxi8gA2RHf4BgeJn2RtmmId3Vlkug p4H1DvaICv8fjrEh/aOTNDeshlvTwGV9DCyET5MpYO8P5HcD/RsLzjMezV1iUtnBULiN lSkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HO9XoMvuwbHH8/CXHe0tF2X2C2TJeLj8UMZGt5fiCxU=; b=Jed3TBNfN+3waDB3CGwOVmdSYPxJxajk4Rr3MsLf1Z/qIJk2B2xe7OG6AvflkjqKsN RnR5ccV+6MVi0l1uVXeU+g0TGNmdnz1w/Ex8LMKzGdUwTiZxFqfwSHgjpF9w6KvvWpYc QNsRdZy1QTTXTqB2PpZslInKARgmK+q+BtWWXrm7HeGz7pfa4U3TaNq5egqeQ9uQlvZD g3XwOSPYhP3WgNlvkKEO6A4FXW/kJrnGVJD/NeeOzbKypfvdKKvVzhithTlLIbHkpyBy +U04c3uixiLmw/CEymJZFIsM+png03+3A2Igkq8Thk6TlOuKxxwzwcuRsE9iaBujV9Va 1W0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ubsVN9rx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q186si265772ioq.108.2021.09.03.12.57.40; Fri, 03 Sep 2021 12:57:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=ubsVN9rx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350061AbhICT5F (ORCPT + 99 others); Fri, 3 Sep 2021 15:57:05 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:55464 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234588AbhICT5E (ORCPT ); Fri, 3 Sep 2021 15:57:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=HO9XoMvuwbHH8/CXHe0tF2X2C2TJeLj8UMZGt5fiCxU=; b=ubsVN9rx+OYAid+ONmg8UxSgx+ od95mDe1Wp1rdj5aEkMztftthexgBZBJaQFzRKMakMt4OhXq1t7OmT9tc54hynpZ3Izy/fkrsBc6Q V7NwPIhoMLMklmG2yEywn0ebLn5AYOvY6Phl+L9peqpguB3g2x4tXn5GAVgMWgkt7+q8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mMFI9-005AsI-9E; Fri, 03 Sep 2021 21:56:01 +0200 Date: Fri, 3 Sep 2021 21:56:01 +0200 From: Andrew Lunn To: "Russell King (Oracle)" Cc: Vladimir Oltean , Vladimir Oltean , "netdev@vger.kernel.org" , Vivien Didelot , Florian Fainelli , "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH net-next 0/3] Make the PHY library stop being so greedy when binding the generic PHY driver Message-ID: References: <20210902163144.GH22278@shell.armlinux.org.uk> <20210902171033.4byfnu3g25ptnghg@skbuf> <20210902175043.GK22278@shell.armlinux.org.uk> <20210902190507.shcdmfi3v55l2zuj@skbuf> <20210902200301.GM22278@shell.armlinux.org.uk> <20210902202124.o5lcnukdzjkbft7l@skbuf> <20210902202905.GN22278@shell.armlinux.org.uk> <20210903162253.5utsa45zy6h4v76t@skbuf> <20210903185850.GY22278@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210903185850.GY22278@shell.armlinux.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 03, 2021 at 07:58:50PM +0100, Russell King (Oracle) wrote: > On Fri, Sep 03, 2021 at 07:21:19PM +0200, Andrew Lunn wrote: > > Hi Russell > > > > Do you have > > > > auto brdsl > > > > in your /etc/network/interfaces? > > > > Looking at /lib/udev/bridge-network-interface it seems it will only do > > hotplug of interfaces if auto is set on the bridge interface. Without > > auto, it only does coldplug. So late appearing switch ports won't get > > added. > > I think you're looking at this: > > [ "$BRIDGE_HOTPLUG" = "no" ] && exit 0 > > ? No, i was meaning this bit: for i in $(ifquery --list --allow auto); do ports=$(ifquery $i | sed -n -e's/^bridge[_-]ports: //p') Inside this is the actual adding of the interface to the bridge: brctl addif $i $port && ip link set dev $port up $ /sbin/ifquery --list --allow auto lo eth0 br42 I have various tap interfaces for VMs which get added to br42 when they appear. Andrew