Commit 331c4ee7 authored by Committed by David S. MillerBrowse files
[SCTP]: Fix receive buffer accounting.
When doing receiver buffer accounting, we always used skb->truesize. This is problematic when processing bundled DATA chunks because for every DATA chunk that could be small part of one large skb, we would charge the size of the entire skb. The new approach is to store the size of the DATA chunk we are accounting for in the sctp_ulpevent structure and use that stored value for accounting. Signed-off-by: Vlad Yasevich <email@example.com> Signed-off-by: Sridhar Samudrala <firstname.lastname@example.org> Signed-off-by: David S. Miller <email@example.com>