-
- Downloads
sock: add SOCK_ZEROCOPY sockopt
The send call ignores unknown flags. Legacy applications may already unwittingly pass MSG_ZEROCOPY. Continue to ignore this flag unless a socket opts in to zerocopy. Introduce socket option SO_ZEROCOPY to enable MSG_ZEROCOPY processing. Processes can also query this socket option to detect kernel support for the feature. Older kernels will return ENOPROTOOPT. Signed-off-by:Willem de Bruijn <willemb@google.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- arch/alpha/include/uapi/asm/socket.h 2 additions, 0 deletionsarch/alpha/include/uapi/asm/socket.h
- arch/frv/include/uapi/asm/socket.h 2 additions, 0 deletionsarch/frv/include/uapi/asm/socket.h
- arch/ia64/include/uapi/asm/socket.h 2 additions, 0 deletionsarch/ia64/include/uapi/asm/socket.h
- arch/m32r/include/uapi/asm/socket.h 2 additions, 0 deletionsarch/m32r/include/uapi/asm/socket.h
- arch/mips/include/uapi/asm/socket.h 2 additions, 0 deletionsarch/mips/include/uapi/asm/socket.h
- arch/mn10300/include/uapi/asm/socket.h 2 additions, 0 deletionsarch/mn10300/include/uapi/asm/socket.h
- arch/parisc/include/uapi/asm/socket.h 2 additions, 0 deletionsarch/parisc/include/uapi/asm/socket.h
- arch/s390/include/uapi/asm/socket.h 2 additions, 0 deletionsarch/s390/include/uapi/asm/socket.h
- arch/sparc/include/uapi/asm/socket.h 2 additions, 0 deletionsarch/sparc/include/uapi/asm/socket.h
- arch/xtensa/include/uapi/asm/socket.h 2 additions, 0 deletionsarch/xtensa/include/uapi/asm/socket.h
- include/uapi/asm-generic/socket.h 2 additions, 0 deletionsinclude/uapi/asm-generic/socket.h
- net/core/skbuff.c 3 additions, 0 deletionsnet/core/skbuff.c
- net/core/sock.c 18 additions, 0 deletionsnet/core/sock.c
Loading
Please register or sign in to comment