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)
commit6df014cffbe335ea7f41ee5324d8ba2047d3f0d0
tree6848b5e2947b95b8100ea21a64542730a22340c5
parent406910a8ba0f0d4d36d1106f3106c47d6c86a33d
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