Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2600107imm; Sun, 30 Sep 2018 00:19:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV638++klPa9JvPPwL/jvjjqcFdgNJDfrYOLt//SbBeLKNyGMA0mfglP2YEbMMVxywnYCb4g1 X-Received: by 2002:a63:ea0e:: with SMTP id c14-v6mr5236813pgi.361.1538291988628; Sun, 30 Sep 2018 00:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538291988; cv=none; d=google.com; s=arc-20160816; b=dXAsk1FfPMLCcnmJyxdzjn8hV54bsWWmLntYa+XveIYVIcnpKIiWpo41q/3ydF1F5a sGsIL7o92WjB+r0n0PcF57xb7VSNRpsDWlI9pV1OPHLrAoMJvV0W7Q9IpJgzxLWNCFWN y5WX0gTn6B4YVSiYYrc7qQsOr1U8HjIz0UtoRvGEEeZDKs53w4xGdfg+mEfEbTPOJOMX ZthDSGKQ0k0bN4Brmef8KtFr4i5DFooalrh+ylZ9TxK/MNHW5CoOxigDPAm/NrsKdi38 Gmy4CCU48IXxtQpWqveB3vksKquhKfs5M66JCeZdVCbw/BP+01Tko58m/JQ5ac0ZpOCU yJlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zRZz6LE0AM8YlH1VXWOC2L2NvmUeWKwPhXA7VsaUORA=; b=IpRnHe/h/vHFQ+8YxBco6K823uR2Cr4QkQI1eEhTY7bhMqfADdNKI9ZH40NC5gp9Jx 7479YG53Btqv7EUNn6F5EuPyG1g+pRrIMHtnakNyXm4qbtGuX5NiMI4bJUFRkcTGVpvK eQCib1mNg6AxrJUBDYyzKjgy4qejUnX2Zdqqx5WyCnB9Opl5dS38f5gCM4QQyNgXC3UR OLvWwIVotW/BSmb7xvwn6XtbYZMex3UiylvSwmySTbEXSv3CHa1SFb+94fRy/kkHvRlY CG3yfDs+SvdPUNLUQsTdegI/aAhS7KeM3rZWEcsqxmtCgMiAoOjZzkELmUPEGg9bNPxG H1VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=UB3TJ8u4; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13-v6si8088948pgi.518.2018.09.30.00.19.05; Sun, 30 Sep 2018 00:19:48 -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=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=UB3TJ8u4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727852AbeI3Nuv (ORCPT + 99 others); Sun, 30 Sep 2018 09:50:51 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43343 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727544AbeI3Nuv (ORCPT ); Sun, 30 Sep 2018 09:50:51 -0400 Received: by mail-wr1-f68.google.com with SMTP id n1-v6so259576wrt.10 for ; Sun, 30 Sep 2018 00:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zRZz6LE0AM8YlH1VXWOC2L2NvmUeWKwPhXA7VsaUORA=; b=UB3TJ8u4FLqTFXJjT4TqV9KgCGx2Q6DYTj3/TRj1+Iswz15397ePvwnJGvhaLl9+wN 60KGnriXteE7sTMQZnCyfzWON2GWqGVdYuc7QyVlK6TY/+60gG7XQ4TAmba1pwgmtzV0 k/WGwCmC79teXbvrB23p7hhH/r/2aEjfcIS8gwuHKBQKUokE6IzPLANdZv05eaKtv3Bs mEKdDC8hm7XHrkIGINa5Cq6I2xHShjw+r+XNjnVOngZFNVJW11KFzEztPv2iG0PmnTqJ 4GsrP44ZrPv3n2vXj5y1ljPpcu0ku9RnIuaQwz7r3djyPkiS/Chm3gbK82J0zYylPmEe ch/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=zRZz6LE0AM8YlH1VXWOC2L2NvmUeWKwPhXA7VsaUORA=; b=RM5dB3Wbkw7+0de2+/UaFNxITnUQJeFTbUgArxEnfTUrCLaU5fa+5Z2LpN4e/zKCub iknQsxOJKM8X/zR8SzqO9aPsip+wyy+UbGMh92TLjdd6UAM5zD0+u0TVqkKYC1b3cSe8 GtWDir0anVpzh3wqJwq4UBwA4ltdOBM0bfxjALls5MNC2Q8ieaCCLCrRTDmzwSgMi0Ys l0h6wwMNZHaY2qWDC1po5SjgYHWqAIcrGrBsamgc9UwG0YQekjvv9NR40EtxMZd62L2m TJOtO9gR3meJ6nXjIvQr8kPrrJBsi7XPyrX4dCujvSfXX3s85yXjLNz2sJ0ZfqvLVtB3 5+OQ== X-Gm-Message-State: ABuFfohFY/ZkqXnCCkTTUot7KwT0xUf5T32o14F19LvC/ypVOce3LHEn /IK9PSHrg/z8bMBg2I/4QT25VQ== X-Received: by 2002:a5d:6692:: with SMTP id l18-v6mr3989837wru.154.1538291940112; Sun, 30 Sep 2018 00:19:00 -0700 (PDT) Received: from localhost (jirka.pirko.cz. [84.16.102.26]) by smtp.gmail.com with ESMTPSA id t4-v6sm5499221wme.3.2018.09.30.00.18.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 30 Sep 2018 00:18:59 -0700 (PDT) Date: Sun, 30 Sep 2018 09:14:14 +0200 From: Jiri Pirko To: Chas Williams <3chas3@gmail.com> Cc: Jan Blunck , LKML , netdev@vger.kernel.org Subject: Re: [PATCH] team: set IFF_SLAVE on team ports Message-ID: <20180930071414.GF2209@nanopsycho.orion> References: <1436435914-8903-1-git-send-email-jblunck@infradead.org> <20150709100727.GE2270@nanopsycho.orion> <20150710064147.GA2204@nanopsycho.orion> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thu, Sep 27, 2018 at 04:04:26PM CEST, 3chas3@gmail.com wrote: > > >On 07/10/15 02:41, Jiri Pirko wrote: >> Thu, Jul 09, 2015 at 05:36:55PM CEST, jblunck@infradead.org wrote: >> > On Thu, Jul 9, 2015 at 12:07 PM, Jiri Pirko wrote: >> > > Thu, Jul 09, 2015 at 11:58:34AM CEST, jblunck@infradead.org wrote: >> > > > The code in net/ipv6/addrconf.c:addrconf_notify() tests for IFF_SLAVE to >> > > > decide if it should start the address configuration. Since team ports >> > > > shouldn't get link-local addresses assigned lets set IFF_SLAVE when linking >> > > > a port to the team master. >> > > >> > > I don't want to use IFF_SLAVE in team. Other master-slave devices are >> > > not using that as well, for example bridge, ovs, etc. >> > > >> > >> > Maybe they need to get fixed too. I've used that flag because it is >> > documented as >> > a "slave of a load balancer" which describes what a team port is. >> > >> > >> > > I think that this should be fixed in addrconf_notify. It should lookup >> > > if there is a master on top and bail out in that case. >> > >> > There are other virtual interfaces that have a master assigned and want to >> > participate in IPv6 address configuration. >> >> Can you give me an example? > >I would like to revisit this patch (yes, I know it has been a while). I >believe the VRF implementation uses master to group the interfaces under >a single interface. > >I don't see a reason not to use IFF_SLAVE since team and bonding are fairly >similar. Again, why do you need team port to have IFF_SLAVE flag? What do you want to achieve? > >> > >> > Unless we want to have a cascade of conditionals testing the priv_flags in >> > addrconf_notify() this is asking for a new net_device_flags flag. >> > Maybe something >> > generic like IFF_L2PORT ? >> > >> > Thanks, >> > Jan >> > >> > [ Jiri, sorry for getting that mail twice ] >> >> >>