From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=Ubrw+ZDagpKqchc9nEqG4/IhR0XOEwvwWfaGS8w0bPI=; b=NsUjsj9C9+wZTdQqvrfMMvSP9T3mo7HyPzUPj7Pc14q7FQi0XIR49ZZAkRFHroK/c8 SkbI3OuUO95RJMaffYEbNdAEZQ1c01WHvidP+7cAomt8PYshgHzZTRnrjxHSBHlff9wu LLl0z1uV42OD0u9cRA2u5usRnnZ6cx/JYSFRjqIxIsW8RddRJchhf6bLg4dKyI8bofFI CNoEpz+XllQ1Od5nbo82jD0Q38WF3aWCjpEpjly2tw3jcMQkATztiZbn3lx5yRGvt6L2 i8J+RQpxcU/8YjfYRvWcMjmmiYWr+ePYD7Xu1zwi9JZk7F8+yiLaCOVDA5kNujb4I9p+ THnQ== From: Hans Schultz In-Reply-To: References: <20220222132818.1180786-1-schultz.hans+netdev@gmail.com> <20220222132818.1180786-6-schultz.hans+netdev@gmail.com> Date: Wed, 23 Feb 2022 08:59:37 +0100 Message-ID: <861qzuxbbq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Bridge] [PATCH net-next v4 5/5] selftests: forwarding: tests of locked port feature List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ido Schimmel , Hans Schultz Cc: Petr Machata , Andrew Lunn , Baowen Zheng , Florian Fainelli , Amit Cohen , netdev@vger.kernel.org, David Ahern , bridge@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Vivien Didelot , Ido Schimmel , Stephen Suryaputra , Po-Hsu Lin , Nikolay Aleksandrov , linux-kselftest@vger.kernel.org, Roopa Prabhu , kuba@kernel.org, Vladimir Oltean , Shuah Khan , davem@davemloft.net On tis, feb 22, 2022 at 19:00, Ido Schimmel wrote: > On Tue, Feb 22, 2022 at 02:28:18PM +0100, Hans Schultz wrote: >> diff --git a/tools/testing/selftests/net/forwarding/bridge_locked_port.sh b/tools/testing/selftests/net/forwarding/bridge_locked_port.sh >> new file mode 100755 >> index 000000000000..a8800e531d07 >> --- /dev/null >> +++ b/tools/testing/selftests/net/forwarding/bridge_locked_port.sh >> @@ -0,0 +1,180 @@ >> +#!/bin/bash >> +# SPDX-License-Identifier: GPL-2.0 >> + >> +ALL_TESTS="locked_port_ipv4 locked_port_ipv6 locked_port_vlan" >> +NUM_NETIFS=4 >> +CHECK_TC="no" >> +source lib.sh >> + >> +h1_create() >> +{ >> + simple_if_init $h1 192.0.2.1/24 2001:db8:1::1/64 >> + vrf_create "vrf-vlan-h1" >> + ip link set dev vrf-vlan-h1 up >> + vlan_create $h1 100 vrf-vlan-h1 198.51.100.1/24 ::ffff:c633:6401/64 > > Hi, > > Why did you change it from 2001:db8:3::1/64 to ::ffff:c633:6401/64? It > was actually OK the first time... I used an online converter (https://iplocation.io/ipv4-to-ipv6) to convert 198.51.100.1 into an 'equivalent' ipv6 address even though I know they are of different spaces. > > Anyway, looking at locked_port_vlan() I see that you are only testing > IPv4 so you can just drop this address: > > vlan_create $h1 100 vrf-vlan-h1 198.51.100.1/24 > > Same for $h2 > > LGTM otherwise. Feel free to add my tag to the next version > > >> +}