aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_fastopen.c
diff options
context:
space:
mode:
authorXin Long <[email protected]>2021-07-21 18:45:54 +0000
committerDavid S. Miller <[email protected]>2021-07-21 21:17:58 +0000
commit02dc2ee7c7476dd831df63d2b10cc0a162a531f1 (patch)
treecf16b67c5599314cd1873615f56815475ca457cf /net/ipv4/tcp_fastopen.c
parentnet: ixp46x: fix ptp build failure (diff)
downloadkernel-02dc2ee7c7476dd831df63d2b10cc0a162a531f1.tar.gz
kernel-02dc2ee7c7476dd831df63d2b10cc0a162a531f1.zip
sctp: do not update transport pathmtu if SPP_PMTUD_ENABLE is not set
Currently, in sctp_packet_config(), sctp_transport_pmtu_check() is called to update transport pathmtu with dst's mtu when dst's mtu has been changed by non sctp stack like xfrm. However, this should only happen when SPP_PMTUD_ENABLE is set, no matter where dst's mtu changed. This patch is to fix by checking SPP_PMTUD_ENABLE flag before calling sctp_transport_pmtu_check(). Thanks Jacek for reporting and looking into this issue. v1->v2: - add the missing "{" to fix the build error. Fixes: 69fec325a643 ('Revert "sctp: remove sctp_transport_pmtu_check"') Reported-by: Jacek Szafraniec <[email protected]> Tested-by: Jacek Szafraniec <[email protected]> Signed-off-by: Xin Long <[email protected]> Acked-by: Marcelo Ricardo Leitner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_fastopen.c')
0 files changed, 0 insertions, 0 deletions