]> git.itanic.dy.fi Git - linux-stable/commit
selftests: forwarding: ethtool_mm: fall back to aggregate if device does not report...
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 19 Dec 2023 10:57:57 +0000 (12:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Dec 2023 01:01:19 +0000 (01:01 +0000)
commitc8659bd9d1c09300c6a30734d781096c1530c234
tree78c2414db5c2b6ba366ecb960b45acb0136e76b5
parent2491d66ae66cdd761c38563e17940a707d1b5e91
selftests: forwarding: ethtool_mm: fall back to aggregate if device does not report pMAC stats

Some devices do not support individual 'pmac' and 'emac' stats.
For such devices, resort to 'aggregate' stats.

Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Roger Quadros <rogerq@kernel.org>
Signed-off-by: Roger Quadros <rogerq@kernel.org>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/ethtool_mm.sh
tools/testing/selftests/net/forwarding/lib.sh