aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/fib_rules.c
diff options
context:
space:
mode:
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>2018-04-24 18:17:35 -0300
committerDavid S. Miller <davem@davemloft.net>2018-04-25 13:22:07 -0400
commit51446780fc33e45cb790c05a7fa2c5bf7e8bc53b (patch)
tree7e19d85f9b7b9bf2aeb2f230e9e7a774b0896146 /net/core/fib_rules.c
parentsctp: fix const parameter violation in sctp_make_sack (diff)
downloadlinux-dev-51446780fc33e45cb790c05a7fa2c5bf7e8bc53b.tar.xz
linux-dev-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/fib_rules.c')
0 files changed, 0 insertions, 0 deletions