net: Add a new socket option for a future transmit time.
This patch introduces SO_TXTIME. User space enables this option in order to pass a desired future transmit time in a CMSG when calling sendmsg(2). The argument to this socket option is a 8-bytes long struct provided by the uapi header net_tstamp.h defined as: struct sock_txtime { clockid_t clockid; u32 flags; }; Note that new fields were added to struct sock by filling a 2-bytes hole found in the struct. For that reason, neither the struct size or number of cachelines were altered. Signed-off-by:Richard Cochran <rcochran@linutronix.de> Signed-off-by:
Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- arch/alpha/include/uapi/asm/socket.h 3 additions, 0 deletionsarch/alpha/include/uapi/asm/socket.h
- arch/ia64/include/uapi/asm/socket.h 3 additions, 0 deletionsarch/ia64/include/uapi/asm/socket.h
- arch/mips/include/uapi/asm/socket.h 3 additions, 0 deletionsarch/mips/include/uapi/asm/socket.h
- arch/parisc/include/uapi/asm/socket.h 3 additions, 0 deletionsarch/parisc/include/uapi/asm/socket.h
- arch/s390/include/uapi/asm/socket.h 3 additions, 0 deletionsarch/s390/include/uapi/asm/socket.h
- arch/sparc/include/uapi/asm/socket.h 3 additions, 0 deletionsarch/sparc/include/uapi/asm/socket.h
- arch/xtensa/include/uapi/asm/socket.h 3 additions, 0 deletionsarch/xtensa/include/uapi/asm/socket.h
- include/net/sock.h 10 additions, 0 deletionsinclude/net/sock.h
- include/uapi/asm-generic/socket.h 3 additions, 0 deletionsinclude/uapi/asm-generic/socket.h
- include/uapi/linux/net_tstamp.h 15 additions, 0 deletionsinclude/uapi/linux/net_tstamp.h
- net/core/sock.c 35 additions, 0 deletionsnet/core/sock.c
Loading
Please register or sign in to comment