sctp: count data bundling sack chunk for outctrlchunks
authorXin Long <lucien.xin@gmail.com>
Wed, 3 Jul 2019 10:20:20 +0000 (18:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jul 2019 18:41:24 +0000 (11:41 -0700)
commit7af033010214f2c7cff31147d8970484d46cc14c
tree436fefa8124f6fa86ea352fa1adee13b1fb440c7
parent9fae54186c64db6faec85c194812fb2e5e970f77
sctp: count data bundling sack chunk for outctrlchunks

Now all ctrl chunks are counted for asoc stats.octrlchunks and net
SCTP_MIB_OUTCTRLCHUNKS either after queuing up or bundling, other
than the chunk maked and bundled in sctp_packet_bundle_sack, which
caused 'outctrlchunks' not consistent with 'inctrlchunks' in peer.

This issue exists since very beginning, here to fix it by increasing
both net SCTP_MIB_OUTCTRLCHUNKS and asoc stats.octrlchunks when sack
chunk is maked and bundled in sctp_packet_bundle_sack.

Reported-by: Ja Ram Jeon <jajeon@redhat.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/output.c