xprtsock.c (d41ecaac903c9f4658a71d4e7a708673cfb5abba) xprtsock.c (480aeb9639d6a077c611b303a22f9b1e5937d081)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * linux/net/sunrpc/xprtsock.c
4 *
5 * Client-side transport implementation for sockets.
6 *
7 * TCP callback races fixes (C) 1998 Red Hat
8 * TCP send fixes (C) 1998 Red Hat

--- 2095 unchanged lines hidden (view full) ---

2104 (xprt->timeout->to_retries + 1);
2105 clear_bit(XPRT_SOCK_UPD_TIMEOUT, &transport->sock_state);
2106 spin_unlock(&xprt->transport_lock);
2107
2108 /* TCP Keepalive options */
2109 sock_set_keepalive(sock->sk);
2110 tcp_sock_set_keepidle(sock->sk, keepidle);
2111 tcp_sock_set_keepintvl(sock->sk, keepidle);
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * linux/net/sunrpc/xprtsock.c
4 *
5 * Client-side transport implementation for sockets.
6 *
7 * TCP callback races fixes (C) 1998 Red Hat
8 * TCP send fixes (C) 1998 Red Hat

--- 2095 unchanged lines hidden (view full) ---

2104 (xprt->timeout->to_retries + 1);
2105 clear_bit(XPRT_SOCK_UPD_TIMEOUT, &transport->sock_state);
2106 spin_unlock(&xprt->transport_lock);
2107
2108 /* TCP Keepalive options */
2109 sock_set_keepalive(sock->sk);
2110 tcp_sock_set_keepidle(sock->sk, keepidle);
2111 tcp_sock_set_keepintvl(sock->sk, keepidle);
2112 kernel_setsockopt(sock, SOL_TCP, TCP_KEEPCNT,
2113 (char *)&keepcnt, sizeof(keepcnt));
2112 tcp_sock_set_keepcnt(sock->sk, keepcnt);
2114
2115 /* TCP user timeout (see RFC5482) */
2116 tcp_sock_set_user_timeout(sock->sk, timeo);
2117}
2118
2119static void xs_tcp_set_connect_timeout(struct rpc_xprt *xprt,
2120 unsigned long connect_timeout,
2121 unsigned long reconnect_timeout)

--- 1069 unchanged lines hidden ---
2113
2114 /* TCP user timeout (see RFC5482) */
2115 tcp_sock_set_user_timeout(sock->sk, timeo);
2116}
2117
2118static void xs_tcp_set_connect_timeout(struct rpc_xprt *xprt,
2119 unsigned long connect_timeout,
2120 unsigned long reconnect_timeout)

--- 1069 unchanged lines hidden ---