selftests: net: bridge: factor out and rename sg state functions
authorNikolay Aleksandrov <nikolay@nvidia.com>
Tue, 3 Nov 2020 17:23:59 +0000 (19:23 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Nov 2020 00:55:47 +0000 (16:55 -0800)
commit95e6f430ebfee51ac174e234388e7c6e8216ff2c
tree952e9d06bdb58ab21ccf17f23e2095819581e1f0
parent450b0b84c6609e7ec1fb0276c8a7e4efa9e78a4c
selftests: net: bridge: factor out and rename sg state functions

Factor out S,G entry state checking functions for existence, forwarding,
blocking and timer to lib.sh so they can be later used by MLDv2 tests.
Add brmcast_ suffix to their name to make the relation to the bridge
explicit.

Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/bridge_igmp.sh
tools/testing/selftests/net/forwarding/lib.sh