net-timestamp: no-payload option
Add timestamping option SOF_TIMESTAMPING_OPT_TSONLY. For transmit timestamps, this loops timestamps on top of empty packets. Doing so reduces the pressure on SO_RCVBUF. Payload inspection and cmsg reception (aside from timestamps) are no longer possible. This works together with a follow on patch that allows administrators to only allow tx timestamping if it does not loop payload or metadata. Signed-off-by:Willem de Bruijn <willemb@google.com> ---- Changes (rfc -> v1) - add documentation - remove unnecessary skb->len test (thanks to Richard Cochran) Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- Documentation/networking/timestamping.txt 21 additions, 0 deletionsDocumentation/networking/timestamping.txt
- include/uapi/linux/net_tstamp.h 2 additions, 1 deletioninclude/uapi/linux/net_tstamp.h
- net/core/skbuff.c 14 additions, 5 deletionsnet/core/skbuff.c
- net/ipv4/ip_sockglue.c 4 additions, 3 deletionsnet/ipv4/ip_sockglue.c
- net/ipv6/datagram.c 2 additions, 3 deletionsnet/ipv6/datagram.c
- net/rxrpc/ar-error.c 5 additions, 0 deletionsnet/rxrpc/ar-error.c
Please register or sign in to comment