1 From f9e89f9d166d5e7293af01ae6f07dff3d0999b6a Mon Sep 17 00:00:00 2001
2 From: Xufeng Zhang <xufeng.zhang@windriver.com>
3 Date: Thu, 7 Mar 2013 21:39:37 +0000
4 Subject: sctp: don't break the loop while meeting the active_path so as to find the matched transport
7 From: Xufeng Zhang <xufeng.zhang@windriver.com>
9 [ Upstream commit 2317f449af30073cfa6ec8352e4a65a89e357bdd ]
11 sctp_assoc_lookup_tsn() function searchs which transport a certain TSN
12 was sent on, if not found in the active_path transport, then go search
13 all the other transports in the peer's transport_addr_list, however, we
14 should continue to the next entry rather than break the loop when meet
15 the active_path transport.
17 Signed-off-by: Xufeng Zhang <xufeng.zhang@windriver.com>
18 Acked-by: Neil Horman <nhorman@tuxdriver.com>
19 Acked-by: Vlad Yasevich <vyasevich@gmail.com>
20 Signed-off-by: David S. Miller <davem@davemloft.net>
21 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23 net/sctp/associola.c | 2 +-
24 1 file changed, 1 insertion(+), 1 deletion(-)
26 --- a/net/sctp/associola.c
27 +++ b/net/sctp/associola.c
28 @@ -1050,7 +1050,7 @@ struct sctp_transport *sctp_assoc_lookup
31 if (transport == active)
34 list_for_each_entry(chunk, &transport->transmitted,
36 if (key == chunk->subh.data_hdr->tsn) {