]> 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)
commitf2c5aa8e82f07c5b9f046bbd2aab0e5cf2b887dc
tree6848b5e2947b95b8100ea21a64542730a22340c5
parent6e30a5f58fe9770a0c31a9704ec6d043e06d4923
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