net: add sock_enable_timestamps
authorChristoph Hellwig <hch@lst.de>
Thu, 28 May 2020 05:12:14 +0000 (07:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 18:11:44 +0000 (11:11 -0700)
commit783da70e83967efeacf3c02c9dcfdc2b17bd62eb
treeb49f61f2855996d8eba63ca6b25cbc5a14b11ab5
parent7594888c782e735f8a7b110094307a4dbe7b3f03
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>
include/net/sock.h
net/core/sock.c
net/rxrpc/local_object.c