sctp: sctp_diag should fill RMEM_ALLOC with asoc->rmem_alloc when rcvbuf_policy is set
authorXin Long <lucien.xin@gmail.com>
Sun, 24 Apr 2016 15:21:22 +0000 (23:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Apr 2016 19:18:48 +0000 (15:18 -0400)
commitf052f20a825a80c4662dafd3899dddafd4c8f036
treec9bb524f2ab289bf5411b844e3e1406d6c2e0e96
parente96c37f185529d1db4ebc021e4f56822d43945bb
sctp: sctp_diag should fill RMEM_ALLOC with asoc->rmem_alloc when rcvbuf_policy is set

For sctp assoc, when rcvbuf_policy is set, it will has it's own
rmem_alloc, when we dump asoc info in sctp_diag, we should use that
value on RMEM_ALLOC as well, just like WMEM_ALLOC.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sctp_diag.c