sctp: introduce sctp_dst_mtu
[sfrench/cifs-2.6.git] / net / sctp / associola.c
index a29025418b96015dd0240013b0a7c636194da67b..039fdb862b1797686bf7e5e911379b5b47ea58f7 100644 (file)
@@ -1405,11 +1405,9 @@ void sctp_assoc_sync_pmtu(struct sctp_association *asoc)
                return;
 
        /* Get the lowest pmtu of all the transports. */
-       list_for_each_entry(t, &asoc->peer.transport_addr_list,
-                               transports) {
+       list_for_each_entry(t, &asoc->peer.transport_addr_list, transports) {
                if (t->pmtu_pending && t->dst) {
-                       sctp_transport_update_pmtu(
-                                       t, SCTP_TRUNC4(dst_mtu(t->dst)));
+                       sctp_transport_update_pmtu(t, sctp_dst_mtu(t->dst));
                        t->pmtu_pending = 0;
                }
                if (!pmtu || (t->pathmtu < pmtu))