Willem de Bruijn 76851d1212 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>
2017-08-03 21:37:29 -07:00
..
2017-08-03 21:37:29 -07:00
2017-07-28 13:29:36 -07:00
2017-07-28 13:29:36 -07:00
2017-07-13 13:37:57 -07:00
2017-08-03 21:37:29 -07:00
2017-08-03 21:37:29 -07:00
2017-08-03 21:37:29 -07:00
2017-08-03 21:37:29 -07:00
2017-08-03 21:37:29 -07:00
2017-08-03 21:37:29 -07:00
2017-07-28 13:36:56 -07:00
2017-08-03 21:37:29 -07:00
2017-07-22 09:00:24 -07:00
2017-08-03 21:37:29 -07:00
2017-08-03 21:37:29 -07:00