Re: [PATCH net-next 02/14] selftests: forwarding: Add a test for FDB learning

2018-02-26 Thread Ido Schimmel
On Mon, Feb 26, 2018 at 06:31:49PM +0200, Petr Machata wrote: > Ido Schimmel writes: > > > +learning_test() > > +{ > > + local mac=de:ad:be:ef:13:37 > > + local ageing_time > > + local br_port1=$2 # Connected to `host1_if`. > > + local host1_if=$3 > > + local host2_if=$4 > > + l

Re: [PATCH net-next 02/14] selftests: forwarding: Add a test for FDB learning

2018-02-26 Thread Petr Machata
Ido Schimmel writes: > +learning_test() > +{ > + local mac=de:ad:be:ef:13:37 > + local ageing_time > + local br_port1=$2 # Connected to `host1_if`. > + local host1_if=$3 > + local host2_if=$4 > + local bridge=$1 I don't think applying RXT in Bash is appropriate. The

[PATCH net-next 02/14] selftests: forwarding: Add a test for FDB learning

2018-02-26 Thread Ido Schimmel
Send a packet with a specific destination MAC, make sure it was learned on the ingress port and then aged-out. Signed-off-by: Ido Schimmel --- .../selftests/net/forwarding/bridge_vlan_aware.sh | 5 +- tools/testing/selftests/net/forwarding/lib.sh | 92 ++ 2 files chang