]> Gentwo Git Trees - linux/.git/commit
selftests: drv-net: add HW timestamping tests
authorVadim Fedorenko <vadim.fedorenko@linux.dev>
Tue, 23 Sep 2025 17:33:10 +0000 (17:33 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Sep 2025 01:14:22 +0000 (18:14 -0700)
commitb9c8a2c5670a92f1cb3ad7d88cd8e274160b59d6
tree566aa509b92c0a8bec18cff86cfd055a788128fe
parentbd94c3649b6bf2c1a556d8fa2ffda56ab9d36414
selftests: drv-net: add HW timestamping tests

Add simple tests to validate that the driver sets up timestamping
configuration according to what is reported in capabilities.

For RX timestamping we allow driver to fallback to wider scope for
timestamping if filter is applied. That actually means that driver
can enable ptpv2-event when it reports ptpv2-l4-event is supported,
but not vice versa.

Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/20250923173310.139623-5-vadim.fedorenko@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/Makefile
tools/testing/selftests/drivers/net/hw/nic_timestamp.py [new file with mode: 0755]