mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
net-timestamp: extend SOF_TIMESTAMPING_OPT_ID to HW timestamps
[ Upstream commit 8ca5a5790b9a1ce147484d2a2c4e66d2553f3d6c ] 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]> Stable-dep-of: 7f6ca95d16b9 ("net: Implement missing getsockopt(SO_TIMESTAMPING_NEW)") Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
2cdb650848
commit
c1556217ff
2 changed files with 2 additions and 2 deletions
|
|
@ -993,7 +993,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 = sk->sk_tskey++;
|
||||
|
||||
|
|
|
|||
|
|
@ -1425,7 +1425,7 @@ static int __ip6_append_data(struct sock *sk,
|
|||
mtu = cork->gso_size ? IP6_MAX_MTU : cork->fragsize;
|
||||
orig_mtu = mtu;
|
||||
|
||||
if (cork->tx_flags & SKBTX_ANY_SW_TSTAMP &&
|
||||
if (cork->tx_flags & SKBTX_ANY_TSTAMP &&
|
||||
sk->sk_tsflags & SOF_TIMESTAMPING_OPT_ID)
|
||||
tskey = sk->sk_tskey++;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue