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

2015-05-20 Thread Hannes Frederic Sowa
On Thu, May 21, 2015, at 01:50, Eric Dumazet wrote: > On Wed, 2015-05-20 at 17:35 +0200, Hannes Frederic Sowa wrote: > > > + > > +static int unix_stream_splice_actor(struct sk_buff *skb, > > + int skip, int chunk, > > + struct unix_stream

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

2015-05-20 Thread Eric Dumazet
On Wed, 2015-05-20 at 17:35 +0200, Hannes Frederic Sowa wrote: > + > +static int unix_stream_splice_actor(struct sk_buff *skb, > + int skip, int chunk, > + struct unix_stream_read_state *state) > +{ > + return skb_splice_bits(skb,

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

2015-05-20 Thread Hannes Frederic Sowa
Hi Cong, On Wed, May 20, 2015, at 22:59, Cong Wang wrote: > On Wed, May 20, 2015 at 8:35 AM, Hannes Frederic Sowa > wrote: > > > > -static int unix_stream_recvmsg(struct socket *sock, struct msghdr *msg, > > - size_t size, int flags) > > +struct unix_stream_read_state

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

2015-05-20 Thread Cong Wang
On Wed, May 20, 2015 at 8:35 AM, Hannes Frederic Sowa wrote: > > -static int unix_stream_recvmsg(struct socket *sock, struct msghdr *msg, > - size_t size, int flags) > +struct unix_stream_read_state { > + int (*recv_actor)(struct sk_buff *, int, int, > +