]> asedeno.scripts.mit.edu Git - linux.git/commit
net: stmmac: selftests: Add a test for TBS feature
authorJose Abreu <Jose.Abreu@synopsys.com>
Mon, 13 Jan 2020 16:24:16 +0000 (17:24 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 Jan 2020 02:31:49 +0000 (18:31 -0800)
commit28c1cf73c923065d1265ea32b9c1bfc8d63370e9
treef13c60eef4437ee0f0c47c65f76826391770b1d2
parent05373e31baed87c3daafdc6d30dc679f057b5cd0
net: stmmac: selftests: Add a test for TBS feature

Add a new test for TBS feature which is used in ETF scheduler. In this
test, we send a packet with a launch time specified as now + 500ms and
check if the packet was transmitted on that time frame.

Changes from v2:
- Use the TBS bitfield
- Remove debug message

Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c