diff options
author | Richard Sanger <rsanger@wand.net.nz> | 2021-05-12 03:31:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-12 23:00:04 +0200 |
commit | 171c3b151118a2fe0fc1e2a9d1b5a1570cfe82d2 (patch) | |
tree | a5494bf5a8fd4b915b18cb0a233a7920d4f3b108 /block | |
parent | bnxt_en: Fix and improve .ndo_features_check(). (diff) | |
download | linux-171c3b151118a2fe0fc1e2a9d1b5a1570cfe82d2.tar.xz linux-171c3b151118a2fe0fc1e2a9d1b5a1570cfe82d2.zip |
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: b9c32fb27170 ("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: Richard Sanger <rsanger@wand.net.nz>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions