packet: enable hardware tx timestamping on tpacket ring
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 23 Apr 2013 00:39:29 +0000 (00:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Apr 2013 05:22:22 +0000 (01:22 -0400)
commit7a51384cc9f4145de352d266821b63f1bb0d46ff
treedf7b1de730a738dd537fba17b6e17aec509d812e
parent2e31396fa14be50a98c5d2b00416ebd74d381c1f
packet: enable hardware tx timestamping on tpacket ring

Currently, we only have software timestamping for the TX ring buffer
path, but this limitation stems rather from the implementation. By
just reusing tpacket_get_timestamp(), we can also allow hardware
timestamping just as in the RX path.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c