mirror of
https://github.com/torvalds/linux
synced 2026-07-22 10:10:47 +09:00
The auth.unix.ip and auth.unix.gid caches live in the sunrpc module, so they cannot use the nfsd generic netlink family. Create a new "sunrpc" generic netlink family with its own "exportd" multicast group to support cache upcall notifications for sunrpc-resident caches. Define a YAML spec (sunrpc_cache.yaml) with a cache-type enum (ip_map, unix_gid), a cache-notify multicast event, and the corresponding uapi header. Implement sunrpc_cache_notify() in cache.c, which checks for listeners on the exportd multicast group, builds and sends a SUNRPC_CMD_CACHE_NOTIFY message with the cache-type attribute. Register/unregister the sunrpc_nl_family in init_sunrpc() and cleanup_sunrpc(). Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
22 lines
657 B
Makefile
22 lines
657 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for Linux kernel SUN RPC
|
|
#
|
|
|
|
|
|
obj-$(CONFIG_SUNRPC) += sunrpc.o
|
|
obj-$(CONFIG_SUNRPC_GSS) += auth_gss/
|
|
obj-$(CONFIG_SUNRPC_XPRT_RDMA) += xprtrdma/
|
|
|
|
sunrpc-y := clnt.o xprt.o socklib.o xprtsock.o sched.o \
|
|
auth.o auth_null.o auth_tls.o auth_unix.o \
|
|
svc.o svcsock.o svcauth.o svcauth_unix.o \
|
|
addr.o rpcb_clnt.o timer.o xdr.o \
|
|
sunrpc_syms.o cache.o rpc_pipe.o sysfs.o \
|
|
svc_xprt.o \
|
|
xprtmultipath.o netlink.o
|
|
sunrpc-$(CONFIG_SUNRPC_DEBUG) += debugfs.o
|
|
sunrpc-$(CONFIG_SUNRPC_BACKCHANNEL) += backchannel_rqst.o
|
|
sunrpc-$(CONFIG_PROC_FS) += stats.o
|
|
sunrpc-$(CONFIG_SYSCTL) += sysctl.o
|