udp: add gso segment cmsg
authorWillem de Bruijn <willemb@google.com>
Thu, 26 Apr 2018 17:42:20 +0000 (13:42 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Apr 2018 19:08:51 +0000 (15:08 -0400)
commit2e8de8576343ab540856082916bfb84d17288b08
tree211c9efb376d6499bfc992065bd925bfb85d571e
parent15e36f5b8e982debe43e425d2e12d34e022d51e9
udp: add gso segment cmsg

Allow specifying segment size in the send call.

The new control message performs the same function as socket option
UDP_SEGMENT while avoiding the extra system call.

[ Export udp_cmsg_send for ipv6. -DaveM ]

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/udp.h
net/ipv4/udp.c
net/ipv6/udp.c