]> git.baikalelectronics.ru Git - kernel.git/commit
[SCTP]: Fix receive buffer accounting.
authorVlad Yasevich <vladislav.yasevich@hp.com>
Tue, 10 Oct 2006 04:34:04 +0000 (21:34 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 12 Oct 2006 06:59:44 +0000 (23:59 -0700)
commitd1732af93b9d8669227e2daa00f296b231f36fc9
treec5bbae21fd17f7948ab2506cad4d6f2ecba911ee
parent0db2c698eb8c56d9863c9f4f052f8e691d503ab7
[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 <vladislav.yasevich@hp.com>
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/sctp.h
include/net/sctp/ulpevent.h
net/sctp/socket.c
net/sctp/ulpevent.c
net/sctp/ulpqueue.c