diff options
author | Willem de Bruijn <willemb@google.com> | 2018-04-26 13:42:20 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-26 15:08:51 -0400 |
commit | 2e8de8576343ab540856082916bfb84d17288b08 (patch) | |
tree | 211c9efb376d6499bfc992065bd925bfb85d571e /include/net/udp.h | |
parent | 15e36f5b8e982debe43e425d2e12d34e022d51e9 (diff) | |
download | linux-2e8de8576343ab540856082916bfb84d17288b08.tar.gz linux-2e8de8576343ab540856082916bfb84d17288b08.tar.bz2 linux-2e8de8576343ab540856082916bfb84d17288b08.zip |
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>
Diffstat (limited to 'include/net/udp.h')
-rw-r--r-- | include/net/udp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/udp.h b/include/net/udp.h index 741d888d0fdb..05990746810e 100644 --- a/include/net/udp.h +++ b/include/net/udp.h @@ -273,6 +273,7 @@ int udp_abort(struct sock *sk, int err); int udp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len); int udp_push_pending_frames(struct sock *sk); void udp_flush_pending_frames(struct sock *sk); +int udp_cmsg_send(struct sock *sk, struct msghdr *msg, u16 *gso_size); void udp4_hwcsum(struct sk_buff *skb, __be32 src, __be32 dst); int udp_rcv(struct sk_buff *skb); int udp_ioctl(struct sock *sk, int cmd, unsigned long arg); |