Skip to content
Commit 171c3b15 authored by Richard Sanger's avatar Richard Sanger Committed by David S. Miller
Browse files

net: packetmmap: fix only tx timestamp on request



The packetmmap tx ring should only return timestamps if requested via
setsockopt PACKET_TIMESTAMP, as documented. This allows compatibility
with non-timestamp aware user-space code which checks
tp_status == TP_STATUS_AVAILABLE; not expecting additional timestamp
flags to be set in tp_status.

Fixes: b9c32fb2 ("packet: if hw/sw ts enabled in rx/tx ring, report which ts we got")
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Signed-off-by: default avatarRichard Sanger <rsanger@wand.net.nz>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent aa473d6c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment