diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2025-04-26 17:48:58 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-04-30 00:44:34 +0300 |
commit | 4eb9da050f005fbbb7d301e8e99cfdb6e4771a0d (patch) | |
tree | ea760162e09865b0285fb57fb2fd93a9d4e5738e /drivers/platform/surface/aggregator/ssh_parser.c | |
parent | f52fe6efd61f54c5cb0e19ef1fde96cf23048a70 (diff) | |
download | linux-4eb9da050f005fbbb7d301e8e99cfdb6e4771a0d.tar.xz |
selftests: net: tc_taprio: new test
Add a forwarding path test for tc-taprio, based on isochron. This is
specifically intended for NICs with an offloaded data path (switchdev/DSA)
and requires taprio 'flags 2'. Also, $h1 and $h2 must support hardware
timestamping, and $h1 tc-etf offload, for isochron to work.
Packets received by a switch while the egress port has a taprio schedule
with an open gate for the traffic class must be sent right away.
Packets received by the switch while the traffic class gate must be
delayed until it opens.
Packets received by the switch must be dropped if the gate for the
traffic class never opens.
Packets should pass if the maximum SDU for the traffic class allows it,
and should be dropped otherwise.
The schedule should auto-update itself if clock jumps take place while
taprio is installed. Repeat most of the above tests after forcing two
clock jumps, one backwards (in Jan 1970) and one back into the present.
Symlink it from tools/testing/selftests/drivers/net/dsa, because usually
DSA ports have the same MAC address, and we need STABLE_MAC_ADDRS=yes
from its forwarding.config for the test to run successfully.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20250426144859.3128352-5-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_parser.c')
0 files changed, 0 insertions, 0 deletions