Revert "Revert "net-timestamp: convert sk->sk_tskey to atomic_t""
This reverts commit 0e189b0893.
It is no longer needed as we can modify the KABI at this point in time.
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I361d61ed4282366eea314224870ff8d02ebb7311
This commit is contained in:
committed by
Todd Kjos
parent
1aeba0549a
commit
acd0c09fbb
@@ -867,9 +867,9 @@ int sock_set_timestamping(struct sock *sk, int optname,
|
||||
if ((1 << sk->sk_state) &
|
||||
(TCPF_CLOSE | TCPF_LISTEN))
|
||||
return -EINVAL;
|
||||
sk->sk_tskey = tcp_sk(sk)->snd_una;
|
||||
atomic_set(&sk->sk_tskey, tcp_sk(sk)->snd_una);
|
||||
} else {
|
||||
sk->sk_tskey = 0;
|
||||
atomic_set(&sk->sk_tskey, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user