diff options
author | Willem de Bruijn <willemb@google.com> | 2014-09-03 18:01:18 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-06 00:02:43 +0200 |
commit | c199105d154e029cd8c94cccd35bd073e64acc45 (patch) | |
tree | b268f9b6beba39274edf9b250ea3cfe22bebe25a /net/ipv6/addrconf.c | |
parent | drivers/net/fddi/skfp/h/skfbi.h: Remove useless PCI_BASE_2ND macros (diff) | |
download | linux-c199105d154e029cd8c94cccd35bd073e64acc45.tar.xz linux-c199105d154e029cd8c94cccd35bd073e64acc45.zip |
net-timestamp: only report sw timestamp if reporting bit is set
The timestamping API has separate bits for generating and reporting
timestamps. A software timestamp should only be reported for a packet
when the packet has the relevant generation flag (SKBTX_..) set
and the socket has reporting bit SOF_TIMESTAMPING_SOFTWARE set.
The second check was accidentally removed. Reinstitute the original
behavior.
Tested:
Without this patch, Documentation/networking/txtimestamp reports
timestamps regardless of whether SOF_TIMESTAMPING_SOFTWARE is set.
After the patch, it only reports them when the flag is set.
Fixes: f24b9be5957b ("net-timestamp: extend SCM_TIMESTAMPING ancillary data struct")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions