Re: [RFC PATCH v3 net-next 1/3] tcp: Make use of MSG_EOR in tcp_sendmsg and tcp_sendpage

2016-04-20 Thread Eric Dumazet
On Tue, 2016-04-19 at 23:24 -0700, Martin KaFai Lau wrote: > This patch adds an eor bit to the TCP_SKB_CB. When MSG_EOR > is passed to tcp_sendmsg/tcp_sendpage, the eor bit will > be set at the skb containing the last byte of the userland's > msg. The eor bit will prevent data from appending to t

[RFC PATCH v3 net-next 1/3] tcp: Make use of MSG_EOR in tcp_sendmsg and tcp_sendpage

2016-04-19 Thread Martin KaFai Lau
This patch adds an eor bit to the TCP_SKB_CB. When MSG_EOR is passed to tcp_sendmsg/tcp_sendpage, the eor bit will be set at the skb containing the last byte of the userland's msg. The eor bit will prevent data from appending to that skb in the future. This patch handles the tcp_sendmsg and tcp_