]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
packet: tx timestamping on tpacket ring
authorWillem de Bruijn <willemb@google.com>
Tue, 23 Apr 2013 00:39:28 +0000 (00:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Apr 2013 05:22:22 +0000 (01:22 -0400)
commit2e31396fa14be50a98c5d2b00416ebd74d381c1f
treee01cf0a24659116265e189a68331bd74ebb48d42
parent92dea7c06656f709a3957aacef20574ce3dbe6fc
packet: tx timestamping on tpacket ring

When transmit timestamping is enabled at the socket level, record a
timestamp on packets written to a PACKET_TX_RING. Tx timestamps are
always looped to the application over the socket error queue. Software
timestamps are also written back into the packet frame header in the
packet ring.

Reported-by: Paul Chavent <paul.chavent@onera.fr>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c
net/packet/af_packet.c