sctp: out_qlen should be updated when pruning unsent queue
authorXin Long <lucien.xin@gmail.com>
Sat, 18 Mar 2017 12:03:59 +0000 (20:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 01:32:36 +0000 (18:32 -0700)
commit23bb09cfbe04076ef647da3889a5a5ab6cbe6f15
treea3192029dcb3700d2d06c4f219740ec852369bc9
parent1f904495b79003cd3d881de8731377d48fcbc7e3
sctp: out_qlen should be updated when pruning unsent queue

This patch is to fix the issue that sctp_prsctp_prune_sent forgot
to update q->out_qlen when removing a chunk from unsent queue.

Fixes: 8dbdf1f5b09c ("sctp: implement prsctp PRIO policy")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/outqueue.c