From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [RFC PATCH net-next 00/12] selftests: forwarding: Add VRF-based tests Date: Thu, 18 Jan 2018 00:11:11 +0100 Message-ID: <20180117231111.GG5894@lunn.ch> References: <20180115191853.26129-1-idosch@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: David Ahern , Ido Schimmel , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, davem@davemloft.net, shuah@kernel.org, nikolay@cumulusnetworks.com, roopa@cumulusnetworks.com, andy@greyhouse.net, jiri@mellanox.com, mlxsw@mellanox.com, saeedm@mellanox.com, tariqt@mellanox.com, jhs@mojatatu.com, lucasb@mojatatu.com, vivien.didelot@savoirfairelinux.com, jakub.kicinski@netronome.com, simon.horman@netronome.com To: Florian Fainelli Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:53403 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753087AbeAQXLQ (ORCPT ); Wed, 17 Jan 2018 18:11:16 -0500 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: > >> However, a similar kind of flexibility can be achieved by using VRFs and > >> by looping the switch ports together. For example: > >> > >> br0 > >> + > >> vrf-h1 | vrf-h2 > >> + +---+----+ + > >> | | | | > >> 192.0.2.1/24 + + + + 192.0.2.2/24 > >> swp1 swp2 swp3 swp4 > >> + + + + > >> | | | | > >> +--------+ +--------+ > >> > Agreed this is really cool! For DSA enabled switches, we usually have a > host that does the test sequencing and then execute commands remotely on > the DUT, but we might be able to get such a similar framework up and > running on the DUT itself without too much hassle. I think the problem we will have is a lack of ports. Most DSA switches have 4 or 5 ports. Given the need for two ports per bridge port, we will be limited to bridges with just two members. That really limits what sort of tests you can do. But for top or rack switches, 16 ports, 8 loopback cables, that does give interesting setups. If i were writing tests for that class of routers, that would be the hardware setup i would define. Andrew