net: skb_can_coalesce returns a boolean
Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
783c175f90
commit
38ba0a65fa
@@ -848,9 +848,10 @@ static ssize_t do_tcp_sendpages(struct sock *sk, struct page **pages, int poffse
|
||||
while (psize > 0) {
|
||||
struct sk_buff *skb = tcp_write_queue_tail(sk);
|
||||
struct page *page = pages[poffset / PAGE_SIZE];
|
||||
int copy, i, can_coalesce;
|
||||
int copy, i;
|
||||
int offset = poffset % PAGE_SIZE;
|
||||
int size = min_t(size_t, psize, PAGE_SIZE - offset);
|
||||
bool can_coalesce;
|
||||
|
||||
if (!tcp_send_head(sk) || (copy = size_goal - skb->len) <= 0) {
|
||||
new_segment:
|
||||
|
Reference in New Issue
Block a user