Re: [PATCH v3 net-next 4/4] net: af_unix: implement splice for stream af_unix sockets

2015-11-09 Thread Hannes Frederic Sowa
Hallo, On Tue, Nov 10, 2015, at 02:11, Eric Dumazet wrote: > On Thu, 2015-05-21 at 17:00 +0200, Hannes Frederic Sowa wrote: > > > + > > +static ssize_t skb_unix_socket_splice(struct sock *sk, > > + struct pipe_inode_info *pipe, > > +

Re: [PATCH v3 net-next 4/4] net: af_unix: implement splice for stream af_unix sockets

2015-11-09 Thread Eric Dumazet
On Thu, 2015-05-21 at 17:00 +0200, Hannes Frederic Sowa wrote: > + > +static ssize_t skb_unix_socket_splice(struct sock *sk, > + struct pipe_inode_info *pipe, > + struct splice_pipe_desc *spd) > +{ > + int ret; > + struct

[PATCH v3 net-next 4/4] net: af_unix: implement splice for stream af_unix sockets

2015-05-21 Thread Hannes Frederic Sowa
unix_stream_recvmsg is refactored to unix_stream_read_generic in this patch and enhanced to deal with pipe splicing. The refactoring is inneglible, we mostly have to deal with a non-existing struct msghdr argument. Signed-off-by: Hannes Frederic Sowa --- v2: * checked that CONFIG_UNIX=m still wor