From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH net-next v2 6/6] vxlan: allow multiple VXLANs with same VNI for IPv6 link-local addresses Date: Fri, 14 Apr 2017 10:38:30 -0700 Message-ID: <20170414103830.111a24a8@xeon-e3> References: <95533e3ca4958ba2eca3efcc661713638feea220.1492187126.git.mschiffer@universe-factory.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: dev-yBygre7rU0TnMu66kgdUjQ@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, roopa-qUQiAmfTcIp+XZJcv9eMoEEOCMrvLtNR@public.gmane.org, jbenc-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, aduyck-nYU0QVwCCFFWk0Htik3J/w@public.gmane.org, davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Matthias Schiffer Return-path: In-Reply-To: <95533e3ca4958ba2eca3efcc661713638feea220.1492187126.git.mschiffer-Nyw9WiXk/RKXhJHkyCwd5uTW4wlIGRCZ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: ovs-dev-bounces-yBygre7rU0TnMu66kgdUjQ@public.gmane.org Errors-To: ovs-dev-bounces-yBygre7rU0TnMu66kgdUjQ@public.gmane.org List-Id: netdev.vger.kernel.org On Fri, 14 Apr 2017 18:44:46 +0200 Matthias Schiffer wrote: > As link-local addresses are only valid for a single interface, we can allow > to use the same VNI for multiple independent VXLANs, as long as the used > interfaces are distinct. This way, VXLANs can always be used as a drop-in > replacement for VLANs with greater ID space. > > This also extends VNI lookup to respect the ifindex when link-local IPv6 > addresses are used, so using the same VNI on multiple interfaces can > actually work. > > Signed-off-by: Matthias Schiffer Why does this have to be IPv6 specific? What about the case where VXLAN is not bound to an interface? If that is used then that could be a problem.