Skip to content

Commit 22d7be2

Browse files
marceloleitnerdavem330
authored andcommitted
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>
1 parent 6ff0f87 commit 22d7be2

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

include/net/sctp/sctp.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -606,16 +606,4 @@ static inline __u32 sctp_dst_mtu(const struct dst_entry *dst)
606606
SCTP_DEFAULT_MINSEGMENT));
607607
}
608608

609-
static inline bool sctp_transport_pmtu_check(struct sctp_transport *t)
610-
{
611-
__u32 pmtu = sctp_dst_mtu(t->dst);
612-
613-
if (t->pathmtu == pmtu)
614-
return true;
615-
616-
t->pathmtu = pmtu;
617-
618-
return false;
619-
}
620-
621609
#endif /* __net_sctp_h__ */

net/sctp/output.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,6 @@ void sctp_packet_config(struct sctp_packet *packet, __u32 vtag,
118118
sctp_transport_route(tp, NULL, sp);
119119
if (asoc->param_flags & SPP_PMTUD_ENABLE)
120120
sctp_assoc_sync_pmtu(asoc);
121-
} else if (!sctp_transport_pmtu_check(tp)) {
122-
if (asoc->param_flags & SPP_PMTUD_ENABLE)
123-
sctp_assoc_sync_pmtu(asoc);
124121
}
125122

126123
/* If there a is a prepend chunk stick it on the list before

0 commit comments

Comments
 (0)