[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170622.130621.2195651628293833337.davem@davemloft.net>
Date: Thu, 22 Jun 2017 13:06:21 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: willemdebruijn.kernel@...il.com
Cc: netdev@...r.kernel.org, linux-api@...r.kernel.org,
willemb@...gle.com
Subject: Re: [PATCH net-next v3 03/13] sock: add MSG_ZEROCOPY
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
Date: Wed, 21 Jun 2017 17:18:06 -0400
> +struct ubuf_info *sock_zerocopy_alloc(struct sock *sk, size_t size)
> +{
> + struct sk_buff *skb;
> + struct ubuf_info *uarg;
Reverse christmas tree.
> +void sock_zerocopy_callback(struct ubuf_info *uarg, bool success)
> +{
> + struct sock_exterr_skb *serr;
> + struct sk_buff *skb = skb_from_uarg(uarg);
> + struct sock *sk = skb->sk;
> + u16 id = uarg->desc;
Likewise.
Powered by blists - more mailing lists