summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_output.c
diff options
context:
space:
mode:
authorVadim Fedorenko <vadfed@meta.com>2023-03-06 08:07:38 -0800
committerDavid S. Miller <davem@davemloft.net>2023-03-08 09:27:14 +0000
commit8ca5a5790b9a1ce147484d2a2c4e66d2553f3d6c (patch)
tree8f1c21edcca8a48416c86a9a6832cfb7b84d4f84 /net/ipv4/ip_output.c
parent2549347972a8e94a9261c125e494955d873b1a9f (diff)
downloadlinux-stable-8ca5a5790b9a1ce147484d2a2c4e66d2553f3d6c.tar.gz
linux-stable-8ca5a5790b9a1ce147484d2a2c4e66d2553f3d6c.tar.bz2
linux-stable-8ca5a5790b9a1ce147484d2a2c4e66d2553f3d6c.zip
net-timestamp: extend SOF_TIMESTAMPING_OPT_ID to HW timestamps
When the feature was added it was enabled for SW timestamps only but with current hardware the same out-of-order timestamps can be seen. Let's expand the area for the feature to all types of timestamps. Signed-off-by: Vadim Fedorenko <vadfed@meta.com> Reviewed-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_output.c')
-rw-r--r--net/ipv4/ip_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 4e4e308c3230..e7bef36ce26f 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -990,7 +990,7 @@ static int __ip_append_data(struct sock *sk,
mtu = cork->gso_size ? IP_MAX_MTU : cork->fragsize;
paged = !!cork->gso_size;
- if (cork->tx_flags & SKBTX_ANY_SW_TSTAMP &&
+ if (cork->tx_flags & SKBTX_ANY_TSTAMP &&
sk->sk_tsflags & SOF_TIMESTAMPING_OPT_ID)
tskey = atomic_inc_return(&sk->sk_tskey) - 1;