selftests: forwarding: multiple instances in tcpdump helper
authorJoachim Wiberg <troglobit@gmail.com>
Fri, 22 Apr 2022 10:14:59 +0000 (13:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Apr 2022 11:18:16 +0000 (12:18 +0100)
commit6182c5c5098f350fd394df818b99acd075e37189
tree5d3ba846354b825e2025d050f25911e6f0ee8550
parentfe32dffdcd33d34bc9bab267a55a8726074b0010
selftests: forwarding: multiple instances in tcpdump helper

Extend tcpdump_start() & C:o to handle multiple instances.  Useful when
observing bridge operation, e.g., unicast learning/flooding, and any
case of multicast distribution (to these ports but not that one ...).

This means the interface argument is now a mandatory argument to all
tcpdump_*() functions, hence the changes to the ocelot flower test.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/ocelot/tc_flower_chains.sh
tools/testing/selftests/net/forwarding/lib.sh