Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sctp: don't break the loop while meeting the active_path so as to find the matched transport

sctp_assoc_lookup_tsn() function searchs which transport a certain TSN
was sent on, if not found in the active_path transport, then go search
all the other transports in the peer's transport_addr_list, however, we
should continue to the next entry rather than break the loop when meet
the active_path transport.

Signed-off-by: Xufeng Zhang <xufeng.zhang@windriver.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Xufeng Zhang and committed by
David S. Miller
2317f449 f2815633

+1 -1
+1 -1
net/sctp/associola.c
··· 1079 1079 transports) { 1080 1080 1081 1081 if (transport == active) 1082 - break; 1082 + continue; 1083 1083 list_for_each_entry(chunk, &transport->transmitted, 1084 1084 transmitted_list) { 1085 1085 if (key == chunk->subh.data_hdr->tsn) {