]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: fix the transport error_count check
authorXin Long <lucien.xin@gmail.com>
Mon, 12 Aug 2019 12:49:12 +0000 (20:49 +0800)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 14 Aug 2019 02:08:20 +0000 (19:08 -0700)
commitd3e3db401c023ab5de05eccdea260c52cf9e58c0
treeff3178d4f8cc75cedd6fd51e2f4e7c18e960e83a
parenta7b4062a543982b98b3a3b4d7c422126add48939
sctp: fix the transport error_count check

As the annotation says in sctp_do_8_2_transport_strike():

  "If the transport error count is greater than the pf_retrans
   threshold, and less than pathmaxrtx ..."

It should be transport->error_count checked with pathmaxrxt,
instead of asoc->pf_retrans.

Fixes: ecdfca015bbb ("sctp: Implement quick failover draft from tsvwg")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
net/sctp/sm_sideeffect.c