Skip to content

Commit 22e15b6

Browse files
lxindavem330
authored andcommitted
sctp: remove the unused sctp_assoc_is_match function
After Commit 4f00878 ("sctp: apply rhashtable api to send/recv path"), there's no place using sctp_assoc_is_match, so remove it. Signed-off-by: Xin Long <[email protected]> Acked-by: Neil Horman <[email protected]> Acked-by: Marcelo Ricardo Leitner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 81e696b commit 22e15b6

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

include/net/sctp/structs.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2091,10 +2091,6 @@ void sctp_assoc_control_transport(struct sctp_association *asoc,
20912091
enum sctp_transport_cmd command,
20922092
sctp_sn_error_t error);
20932093
struct sctp_transport *sctp_assoc_lookup_tsn(struct sctp_association *, __u32);
2094-
struct sctp_transport *sctp_assoc_is_match(struct sctp_association *,
2095-
struct net *,
2096-
const union sctp_addr *,
2097-
const union sctp_addr *);
20982094
void sctp_assoc_migrate(struct sctp_association *, struct sock *);
20992095
int sctp_assoc_update(struct sctp_association *old,
21002096
struct sctp_association *new);

net/sctp/associola.c

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -988,31 +988,6 @@ struct sctp_transport *sctp_assoc_lookup_tsn(struct sctp_association *asoc,
988988
return match;
989989
}
990990

991-
/* Is this the association we are looking for? */
992-
struct sctp_transport *sctp_assoc_is_match(struct sctp_association *asoc,
993-
struct net *net,
994-
const union sctp_addr *laddr,
995-
const union sctp_addr *paddr)
996-
{
997-
struct sctp_transport *transport;
998-
999-
if ((htons(asoc->base.bind_addr.port) == laddr->v4.sin_port) &&
1000-
(htons(asoc->peer.port) == paddr->v4.sin_port) &&
1001-
net_eq(sock_net(asoc->base.sk), net)) {
1002-
transport = sctp_assoc_lookup_paddr(asoc, paddr);
1003-
if (!transport)
1004-
goto out;
1005-
1006-
if (sctp_bind_addr_match(&asoc->base.bind_addr, laddr,
1007-
sctp_sk(asoc->base.sk)))
1008-
goto out;
1009-
}
1010-
transport = NULL;
1011-
1012-
out:
1013-
return transport;
1014-
}
1015-
1016991
/* Do delayed input processing. This is scheduled by sctp_rcv(). */
1017992
static void sctp_assoc_bh_rcv(struct work_struct *work)
1018993
{

0 commit comments

Comments
 (0)