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
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,
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
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,
> +