Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2688940imm; Sun, 30 Sep 2018 02:40:15 -0700 (PDT) X-Google-Smtp-Source: ACcGV60/4+Okj7oDEYHTI10tbU/102sM2+Wv3jUhzuqWU8qn87TUVWWyXQijVfLeoIn7gHOwsNbl X-Received: by 2002:a17:902:e088:: with SMTP id cb8-v6mr6558381plb.189.1538300415490; Sun, 30 Sep 2018 02:40:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538300415; cv=none; d=google.com; s=arc-20160816; b=RIycLw+h1OgLtGw0qHXJ1GPtZYMEggJDcnJ1nqQDdg19kuK0Y573OAxZg4HJXmTW0O 5gMGUMaVJeRIEvgp+SmcmeOXafYr9gaumKGNVHbc84mIlgS9+kclPXDNnlGP3g7KxLs9 YHrIfap+8ApInsV9OfT2CjaGQi8EsR8PSU4q5pV0grJniqnFeR6P9Qn/6DBK0eXTKOcg H8iU1rXYrDp49yN0AT4KVqtOIyjtv8Zzmw/DMhHvkq0/CYb1OkzascHGjoanQadSAKX4 pPQ9WvLekJbJBzvnI5UoIgsfLI/9xx1N/tjNiFww24kR/xbPCNqn2XXuOHBCziIs7G58 gxRw== 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=njNayWkayFN3pyzEKssYbIn5QgNwMWA4MCahIR2inrw=; b=0BENDbtIg/hS91Q6djkp0WcDoI50TFxeFL+dtVKXv7qqEez1FjixCH4Dazpbcjs20r z4cWcZB+AkR4PLfe8tdgjTFYz09P0F625cNHSGFaxS87EH7dyVZ5lRxTzCxMmJRX+DOF sXWySbJJ7dELQDwd5e5OR8ZRRjCTHTqu4Ha4iC2YWIS8eo74R0eQTw7obsDProHvBnGn /OhLmX0TJobvqImlHYbCAIjE/vbyDv9Y53issHCdv2OOsE0qOHvoaXL63A1rHgz1i0r1 cCmgLfCOdcGzC0/5I33c3SK4XZbU3p0Kf8llbYO4rRP8jH3ngWJXKti8oADGzc1bBfPl fcaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=rP7XzDzs; 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 d5-v6si9714907pla.439.2018.09.30.02.40.01; Sun, 30 Sep 2018 02:40:15 -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=rP7XzDzs; 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 S1728137AbeI3QL4 (ORCPT + 99 others); Sun, 30 Sep 2018 12:11:56 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33052 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727861AbeI3QLz (ORCPT ); Sun, 30 Sep 2018 12:11:55 -0400 Received: by mail-wr1-f66.google.com with SMTP id f10-v6so10629049wrs.0 for ; Sun, 30 Sep 2018 02:39:38 -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=njNayWkayFN3pyzEKssYbIn5QgNwMWA4MCahIR2inrw=; b=rP7XzDzsAzTHZ4qp+Gy/bNdUKbQTSlDtCmwc36h3+ND5umYjp6j+7kpKP5VRZ7hflX nL9ehni2UAtnQmGa3jFDILLxoQ3AXsc0km9GnbdWitJcz6a00OrollPwwyl3BYgNgF+n sy52YkeyKBnZFMNF7tjr5bUI4Itwe+/asNqhiX1iqARwQB3gnEGLurECAcfPDCnOvpr/ VHa/swi6m1bMXo3QofsHSqRoHJjwM5vWYuQC0OA6TcC5FD/saNp9IvW8/IMD2o5K20UN mTrdOawJGyHJesJcLINkaz+j/vWzntl7wbX3tWt5L6WY6DBYuWWVNHuWX6jaRq8bJirS C8QA== 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=njNayWkayFN3pyzEKssYbIn5QgNwMWA4MCahIR2inrw=; b=aMTTHdh2vBog3I7JEvUKMPURI3To+sRUi2/rFi3uWe5Y1892VKZyVD+YHhKS5/cTEI ZvidMeZVYVmWFvva1dTcxuDAh7V5ry6/jDEujmdqlaKA+cxhuBIAvGNrymiG+TFolXPv 4fFIrIcLmY5ZDAiSTTEcLt0WHGwXIhHgE9/O/V6Veu2OR5a4OnGF0085gqyInH5S4plu 4GymHxUcONY98mn6SGeXoou/jRIdAx3tLu/NHeDr5ppKHrWFJA82v7ZifYOxCeaYLL7U Aw3labp2ocC92flsLFSlKt+ZK1B8Ckb2VJz8JmNrKJY/4XbGLinfogRYQp8hBP/4d73A B9Ew== X-Gm-Message-State: ABuFfohdef/Zlj707AW4vZxS9JcZvSoz1aAXgSdd3NrZaXCHHLe5E3Ye drUm5RKMOTtNAmvQMNnXBdgZIQ== X-Received: by 2002:adf:8141:: with SMTP id 59-v6mr3600512wrm.127.1538300377392; Sun, 30 Sep 2018 02:39:37 -0700 (PDT) Received: from localhost (jirka.pirko.cz. [84.16.102.26]) by smtp.gmail.com with ESMTPSA id j46-v6sm17581991wre.91.2018.09.30.02.39.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 30 Sep 2018 02:39:37 -0700 (PDT) Date: Sun, 30 Sep 2018 11:34:52 +0200 From: Jiri Pirko To: Stephen Hemminger Cc: Chas Williams <3chas3@gmail.com>, Jan Blunck , LKML , netdev@vger.kernel.org Subject: Re: [PATCH] team: set IFF_SLAVE on team ports Message-ID: <20180930093452.GG2209@nanopsycho.orion> References: <1436435914-8903-1-git-send-email-jblunck@infradead.org> <20150709100727.GE2270@nanopsycho.orion> <20150710064147.GA2204@nanopsycho.orion> <20180930071414.GF2209@nanopsycho.orion> <20180930113805.3b8e62a1@shemminger-XPS-13-9360> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180930113805.3b8e62a1@shemminger-XPS-13-9360> 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 Sun, Sep 30, 2018 at 11:38:05AM CEST, stephen@networkplumber.org wrote: >On Sun, 30 Sep 2018 09:14:14 +0200 >Jiri Pirko wrote: > >> 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 > >Without setting this flag IPv6 will try and make a link specific address. Why is it not an issue with bridge, ovs, and other master-slave devices?