]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jul 2022 14:35:16 +0000 (16:35 +0200)
commit4226f00f6163dfbd2b00e41941b19c8bf6706cb7
tree92c6f05199546a98a11078cbf381a89690c6c4d0
parentbb48c53baf9d22b8d60d4b26d5d9281c47277ec1
selftests: forwarding: fix learning_test when h1 supports IFF_UNICAST_FLT

[ Upstream commit 96b70f7865fe0f9bea708d9fe3a410c840f97c6d ]

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: fa242965a64a ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/forwarding/lib.sh