diff options
author | Christoph Hellwig <hch@lst.de> | 2020-05-28 07:12:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-28 20:11:44 +0200 |
commit | 783da70e83967efeacf3c02c9dcfdc2b17bd62eb (patch) | |
tree | b49f61f2855996d8eba63ca6b25cbc5a14b11ab5 /include/net/sock.h | |
parent | net: add sock_bindtoindex (diff) | |
download | linux-783da70e83967efeacf3c02c9dcfdc2b17bd62eb.tar.xz linux-783da70e83967efeacf3c02c9dcfdc2b17bd62eb.zip |
net: add sock_enable_timestamps
Add a helper to directly enable timestamps instead of setting the
SO_TIMESTAMP* sockopts from kernel space and going through a fake
uaccess.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index cdec7bc055d5..99ef43508d2b 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -2689,6 +2689,7 @@ static inline bool sk_dev_equal_l3scope(struct sock *sk, int dif) void sock_def_readable(struct sock *sk); int sock_bindtoindex(struct sock *sk, int ifindex); +void sock_enable_timestamps(struct sock *sk); void sock_no_linger(struct sock *sk); void sock_set_priority(struct sock *sk, u32 priority); void sock_set_reuseaddr(struct sock *sk); |