Re: [PATCH net-next v3 06/13] sock: MSG_ZEROCOPY notification coalescing

2017-06-22 Thread David Miller
From: Willem de Bruijn Date: Wed, 21 Jun 2017 17:18:09 -0400 > +static bool skb_zerocopy_notify_extend(struct sk_buff *skb, u32 lo, u16 len) > +{ > + struct sock_exterr_skb *serr = SKB_EXT_ERR(skb); > + u64 sum_len; > + u32 old_lo, old_hi; Reverse christmas tree. > void sock_zeroco

[PATCH net-next v3 06/13] sock: MSG_ZEROCOPY notification coalescing

2017-06-21 Thread Willem de Bruijn
From: Willem de Bruijn In the simple case, each sendmsg() call generates data and eventually a zerocopy ready notification N, where N indicates the Nth successful invocation of sendmsg() with the MSG_ZEROCOPY flag on this socket. TCP and corked sockets can cause send() calls to append new data t