diff options
author | Marcelo Ricardo Leitner | 2018-04-24 23:17:35 +0200 |
---|---|---|
committer | David S. Miller | 2018-04-25 19:22:07 +0200 |
commit | 51446780fc33e45cb790c05a7fa2c5bf7e8bc53b (patch) | |
tree | 7e19d85f9b7b9bf2aeb2f230e9e7a774b0896146 /net/core | |
parent | sctp: fix const parameter violation in sctp_make_sack (diff) | |
download | kernel-qcow2-linux-51446780fc33e45cb790c05a7fa2c5bf7e8bc53b.tar.gz kernel-qcow2-linux-51446780fc33e45cb790c05a7fa2c5bf7e8bc53b.tar.xz kernel-qcow2-linux-51446780fc33e45cb790c05a7fa2c5bf7e8bc53b.zip |
sctp: fix identification of new acks for SFR-CACC
It's currently written as:
if (!tchunk->tsn_gap_acked) { [1]
tchunk->tsn_gap_acked = 1;
...
}
if (TSN_lte(tsn, sack_ctsn)) {
if (!tchunk->tsn_gap_acked) {
/* SFR-CACC processing */
...
}
}
Which causes the SFR-CACC processing on ack reception to never process,
as tchunk->tsn_gap_acked is always true by then. Block [1] was
moved to that position by the commit marked below.
This patch fixes it by doing SFR-CACC processing earlier, before
tsn_gap_acked is set to true.
Fixes: 31b02e154940 ("sctp: Failover transmitted list on transport delete")
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Reviewed-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions