mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
selftests: mlxsw: Add tc action hw_stats tests
Add tests for mlxsw hw_stats types. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
4e145fc6eb
commit
ee4848ac1a
@@ -60,6 +60,15 @@ check_tc_chain_support()
|
||||
fi
|
||||
}
|
||||
|
||||
check_tc_action_hw_stats_support()
|
||||
{
|
||||
tc actions help 2>&1 | grep -q hw_stats
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "SKIP: iproute2 too old; tc is missing action hw_stats support"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
if [[ "$(id -u)" -ne 0 ]]; then
|
||||
echo "SKIP: need root privileges"
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user