summaryrefslogtreecommitdiffstats
path: root/net/sctp/input.c
diff options
context:
space:
mode:
authorXin Long2017-04-04 07:39:55 +0200
committerDavid S. Miller2017-04-05 16:20:06 +0200
commit3ebfdf082184d04f6e73b30cd9446613dc7f8c02 (patch)
tree363997b3262abfcec1b85cc1652fca6fbfb2eda7 /net/sctp/input.c
parentMerge tag 'wireless-drivers-for-davem-2017-04-03' of git://git.kernel.org/pub... (diff)
downloadkernel-qcow2-linux-3ebfdf082184d04f6e73b30cd9446613dc7f8c02.tar.gz
kernel-qcow2-linux-3ebfdf082184d04f6e73b30cd9446613dc7f8c02.tar.xz
kernel-qcow2-linux-3ebfdf082184d04f6e73b30cd9446613dc7f8c02.zip
sctp: get sock from transport in sctp_transport_update_pmtu
This patch is almost to revert commit 02f3d4ce9e81 ("sctp: Adjust PMTU updates to accomodate route invalidation."). As t->asoc can't be NULL in sctp_transport_update_pmtu, it could get sk from asoc, and no need to pass sk into that function. It is also to remove some duplicated codes from that function. Signed-off-by: Xin Long <lucien.xin@gmail.com> Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/input.c')
-rw-r--r--net/sctp/input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c
index 2a28ab20487f..0e06a278d2a9 100644
--- a/net/sctp/input.c
+++ b/net/sctp/input.c
@@ -401,10 +401,10 @@ void sctp_icmp_frag_needed(struct sock *sk, struct sctp_association *asoc,
if (t->param_flags & SPP_PMTUD_ENABLE) {
/* Update transports view of the MTU */
- sctp_transport_update_pmtu(sk, t, pmtu);
+ sctp_transport_update_pmtu(t, pmtu);
/* Update association pmtu. */
- sctp_assoc_sync_pmtu(sk, asoc);
+ sctp_assoc_sync_pmtu(asoc);
}
/* Retransmit with the new pmtu setting.