Thread (14 messages) 14 messages, 5 authors, 2022-08-03

Re: net: dsa: lantiq_gswip: getting the first selftests to pass

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2022-07-28 22:32:28

On 7/27/22 17:02, Vladimir Oltean wrote:
On Wed, Jul 27, 2022 at 02:07:51PM -0700, Florian Fainelli wrote:
quoted
Since I am in the process of re-designing my test rack at home with
DSA devices, how do you run the selftests out of curiosity? Is there a
nice diagram that explains how to get a physical connection set-up?

I used to have between 2 and 4 Ethernet controllers dedicated to each
port of the switch of the DUT so I could run
bridge/standalone/bandwidth testing but I feel like this is a tad
extreme and am cutting down on the number of Ethernet ports so I can
put NVMe drives in the machine instead.
tools/testing/selftests/net/forwarding/README

                             br0
                              +
               vrf-h1         |           vrf-h2
                 +        +---+----+        +
                 |        |        |        |
    192.0.2.1/24 +        +        +        + 192.0.2.2/24
               swp1     swp2     swp3     swp4
                 +        +        +        +
                 |        |        |        |
                 +--------+        +--------+

Most of the tests assume these 4 ports, otherwise the topology is
mentioned in a drawing for that particular selftest.

The names used by the tests are actually $h1 and $h2 for the host ports
(extreme left and extreme right) - these terminate traffic - and $swp1
and $swp2 (mid left and mid right) - these forward traffic. In the
drawing from the README, I suppose the names "swp1 ... swp4" were used
to illustrate that you can use switch net devices as host ports, and
also as forwarding ports.
Thanks! I will get to that later this week.
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help