Skip to content

Commit 8ca5a57

Browse files
vvfedorenkodavem330
authored andcommitted
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 <[email protected]> Reviewed-by: Willem de Bruijn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2549347 commit 8ca5a57

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

net/ipv4/ip_output.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ static int __ip_append_data(struct sock *sk,
990990
mtu = cork->gso_size ? IP_MAX_MTU : cork->fragsize;
991991
paged = !!cork->gso_size;
992992

993-
if (cork->tx_flags & SKBTX_ANY_SW_TSTAMP &&
993+
if (cork->tx_flags & SKBTX_ANY_TSTAMP &&
994994
sk->sk_tsflags & SOF_TIMESTAMPING_OPT_ID)
995995
tskey = atomic_inc_return(&sk->sk_tskey) - 1;
996996

net/ipv6/ip6_output.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ static int __ip6_append_data(struct sock *sk,
15001500
mtu = cork->gso_size ? IP6_MAX_MTU : cork->fragsize;
15011501
orig_mtu = mtu;
15021502

1503-
if (cork->tx_flags & SKBTX_ANY_SW_TSTAMP &&
1503+
if (cork->tx_flags & SKBTX_ANY_TSTAMP &&
15041504
sk->sk_tsflags & SOF_TIMESTAMPING_OPT_ID)
15051505
tskey = atomic_inc_return(&sk->sk_tskey) - 1;
15061506

0 commit comments

Comments
 (0)