]> git.baikalelectronics.ru Git - kernel.git/commit
Enable tx timestamping on loopback and dummy
authorEzequiel Lara Gomez <ezegomez@amazon.com>
Sat, 11 Mar 2017 20:06:54 +0000 (20:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2017 21:40:01 +0000 (14:40 -0700)
commit8ad4fd22e7a5cd68c91a7695a06a9ce72a4618a2
tree6848b5e2947b95b8100ea21a64542730a22340c5
parentb4c1d1137edd074c0a9825564db579691f4b14a6
Enable tx timestamping on loopback and dummy

This enables developing code that uses SOF_TIMESTAMPING_TX_SOFTWARE
by using localhost addresses (without needing to send packets outside),
as well as enabling unit and functional testing of TX timestamping code
without needing hardware support or network access.

It also fulfills the expectation of software network devices supporting
software-based timestamping.

Tested on qemu using txtimestamping.c from the kernel selftests, and
ethtool -T.

Signed-off-by: Ezequiel Lara Gomez <ezegomez@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dummy.c
drivers/net/loopback.c