提交 7ae60b3f 编写于 作者: E Eric Dumazet 提交者: David S. Miller

sky2: fix skb truesize underestimation

sky2 allocates a page per skb fragment. We must account
PAGE_SIZE increments on skb->truesize, not the actual frag length.
Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 98a045d7
......@@ -2486,7 +2486,7 @@ static void skb_put_frags(struct sk_buff *skb, unsigned int hdr_space,
frag->size = size;
skb->data_len += size;
skb->truesize += size;
skb->truesize += PAGE_SIZE;
skb->len += size;
length -= size;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册