1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /******************************************************************************
4 (c) 2008 NetApp. All Rights Reserved.
7 ******************************************************************************/
10 * Functions and macros used internally by RPC
13 #ifndef _NET_SUNRPC_SUNRPC_H
14 #define _NET_SUNRPC_SUNRPC_H
16 #include <linux/net.h>
19 * Header for dynamically allocated rpc buffers.
26 static inline int sock_is_loopback(struct sock *sk)
28 struct dst_entry *dst;
31 dst = rcu_dereference(sk->sk_dst_cache);
32 if (dst && dst->dev &&
33 (dst->dev->features & NETIF_F_LOOPBACK))
39 int rpc_clients_notifier_register(void);
40 void rpc_clients_notifier_unregister(void);
41 void auth_domain_cleanup(void);
42 #endif /* _NET_SUNRPC_SUNRPC_H */