]> git.baikalelectronics.ru Git - kernel.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)
commit235eeb952d30234d28665f94a1cfae20923a04db
treef13c60eef4437ee0f0c47c65f76826391770b1d2
parent4562899f4fb1a2591d299d7725cf415a3b07aba1
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