diff options
author | Xin Long | 2018-11-18 09:14:47 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2018-11-23 08:17:04 +0100 |
commit | 004973021da1e3fb3bb46a246dbec94a61f23cdf (patch) | |
tree | fb269da07999aea4af36a849de3cf620a5ed4b6c /net/sctp | |
parent | net/mlx5e: RX, verify received packet size in Linear Striding RQ (diff) | |
download | kernel-qcow2-linux-004973021da1e3fb3bb46a246dbec94a61f23cdf.tar.gz kernel-qcow2-linux-004973021da1e3fb3bb46a246dbec94a61f23cdf.tar.xz kernel-qcow2-linux-004973021da1e3fb3bb46a246dbec94a61f23cdf.zip |
Revert "sctp: remove sctp_transport_pmtu_check"
[ Upstream commit 69fec325a64383667b8a35df5d48d6ce52fb2782 ]
This reverts commit 22d7be267eaa8114dcc28d66c1c347f667d7878a.
The dst's mtu in transport can be updated by a non sctp place like
in xfrm where the MTU information didn't get synced between asoc,
transport and dst, so it is still needed to do the pmtu check
in sctp_packet_config.
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/output.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/sctp/output.c b/net/sctp/output.c index 67939ad99c01..08601223b0bf 100644 --- a/net/sctp/output.c +++ b/net/sctp/output.c @@ -118,6 +118,9 @@ 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 (asoc->pmtu_pending) { |