diff options
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/af_rxrpc.h | 3 | ||||
-rw-r--r-- | include/net/sctp/sctp.h | 12 |
2 files changed, 14 insertions, 1 deletions
diff --git a/include/net/af_rxrpc.h b/include/net/af_rxrpc.h index de587948042a..1adefe42c0a6 100644 --- a/include/net/af_rxrpc.h +++ b/include/net/af_rxrpc.h | |||
@@ -77,7 +77,8 @@ int rxrpc_kernel_retry_call(struct socket *, struct rxrpc_call *, | |||
77 | struct sockaddr_rxrpc *, struct key *); | 77 | struct sockaddr_rxrpc *, struct key *); |
78 | int rxrpc_kernel_check_call(struct socket *, struct rxrpc_call *, | 78 | int rxrpc_kernel_check_call(struct socket *, struct rxrpc_call *, |
79 | enum rxrpc_call_completion *, u32 *); | 79 | enum rxrpc_call_completion *, u32 *); |
80 | u32 rxrpc_kernel_check_life(struct socket *, struct rxrpc_call *); | 80 | u32 rxrpc_kernel_check_life(const struct socket *, const struct rxrpc_call *); |
81 | void rxrpc_kernel_probe_life(struct socket *, struct rxrpc_call *); | ||
81 | u32 rxrpc_kernel_get_epoch(struct socket *, struct rxrpc_call *); | 82 | u32 rxrpc_kernel_get_epoch(struct socket *, struct rxrpc_call *); |
82 | bool rxrpc_kernel_get_reply_time(struct socket *, struct rxrpc_call *, | 83 | bool rxrpc_kernel_get_reply_time(struct socket *, struct rxrpc_call *, |
83 | ktime_t *); | 84 | ktime_t *); |
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 8c2caa370e0f..ab9242e51d9e 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h | |||
@@ -608,4 +608,16 @@ static inline __u32 sctp_dst_mtu(const struct dst_entry *dst) | |||
608 | SCTP_DEFAULT_MINSEGMENT)); | 608 | SCTP_DEFAULT_MINSEGMENT)); |
609 | } | 609 | } |
610 | 610 | ||
611 | static inline bool sctp_transport_pmtu_check(struct sctp_transport *t) | ||
612 | { | ||
613 | __u32 pmtu = sctp_dst_mtu(t->dst); | ||
614 | |||
615 | if (t->pathmtu == pmtu) | ||
616 | return true; | ||
617 | |||
618 | t->pathmtu = pmtu; | ||
619 | |||
620 | return false; | ||
621 | } | ||
622 | |||
611 | #endif /* __net_sctp_h__ */ | 623 | #endif /* __net_sctp_h__ */ |