Skip to content

Commit 10eb56c

Browse files
lxindavem330
authored andcommitted
sctp: use transport pf_retrans in sctp_do_8_2_transport_strike
Transport should use its own pf_retrans to do the error_count check, instead of asoc's. Otherwise, it's meaningless to make pf_retrans per transport. Fixes: 5aa93bc ("sctp: Implement quick failover draft from tsvwg") Signed-off-by: Xin Long <[email protected]> Acked-by: Marcelo Ricardo Leitner <[email protected]> Acked-by: Neil Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5913289 commit 10eb56c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sctp/sm_sideeffect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ static void sctp_do_8_2_transport_strike(struct sctp_cmd_seq *commands,
547547
if (net->sctp.pf_enable &&
548548
(transport->state == SCTP_ACTIVE) &&
549549
(transport->error_count < transport->pathmaxrxt) &&
550-
(transport->error_count > asoc->pf_retrans)) {
550+
(transport->error_count > transport->pf_retrans)) {
551551

552552
sctp_assoc_control_transport(asoc, transport,
553553
SCTP_TRANSPORT_PF,

0 commit comments

Comments
 (0)