summaryrefslogtreecommitdiffstats
path: root/net/sctp/output.c
diff options
context:
space:
mode:
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>2018-04-26 21:58:58 +0200
committerDavid S. Miller <davem@davemloft.net>2018-04-27 20:35:23 +0200
commit22d7be267eaa8114dcc28d66c1c347f667d7878a (patch)
tree8fc357f00ed1fe648bfd2cf04f32d5edf9794844 /net/sctp/output.c
parentsctp: introduce sctp_dst_mtu (diff)
downloadlinux-22d7be267eaa8114dcc28d66c1c347f667d7878a.tar.xz
linux-22d7be267eaa8114dcc28d66c1c347f667d7878a.zip
sctp: remove sctp_transport_pmtu_check
We are now keeping the MTU information synced between asoc, transport and dst, which makes the check at sctp_packet_config() not needed anymore. As it was the sole caller to this function, lets remove it. Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/output.c')
-rw-r--r--net/sctp/output.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/sctp/output.c b/net/sctp/output.c
index bf4226c3cc1d..e672dee302c7 100644
--- a/net/sctp/output.c
+++ b/net/sctp/output.c
@@ -118,9 +118,6 @@ void sctp_packet_config(struct sctp_packet *packet, __u32 vtag,
sctp_transport_route(tp, NULL, sp);
if (asoc->param_flags & SPP_PMTUD_ENABLE)
sctp_assoc_sync_pmtu(asoc);
- } else if (!sctp_transport_pmtu_check(tp)) {
- if (asoc->param_flags & SPP_PMTUD_ENABLE)
- sctp_assoc_sync_pmtu(asoc);
}
/* If there a is a prepend chunk stick it on the list before