selftests: forwarding: fix learning_test when h1 supports IFF_UNICAST_FLT
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sun, 3 Jul 2022 07:36:25 +0000 (10:36 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 5 Jul 2022 09:52:33 +0000 (11:52 +0200)
commit1a635d3e1c80626237fdae47a5545b6655d8d81c
treee7735e52a77d8a86b18cf68252b99d36aa8c8e06
parentb8e629b05f5d23f9649c901bef09fab8b0c2e4b9
selftests: forwarding: fix learning_test when h1 supports IFF_UNICAST_FLT

The first host interface has by default no interest in receiving packets
MAC DA de:ad:be:ef:13:37, so it might drop them before they hit the tc
filter and this might confuse the selftest.

Enable promiscuous mode such that the filter properly counts received
packets.

Fixes: d4deb01467ec ("selftests: forwarding: Add a test for FDB learning")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/forwarding/lib.sh