4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
22 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
29 #pragma ident "%Z%%M% %I% %E% SMI"
36 * NFSv4 Duplicate Request cache.
38 typedef struct rfs4_drc
{
48 * NFSv4 Duplicate request cache entry.
50 typedef struct rfs4_dupreq
{
51 list_node_t dr_bkt_next
;
57 struct netbuf dr_addr
;
62 * State of rfs4_dupreq.
64 #define NFS4_DUP_ERROR -1
65 #define NFS4_NOT_DUP 0
66 #define NFS4_DUP_NEW 1
67 #define NFS4_DUP_PENDING 2
68 #define NFS4_DUP_FREE 3
70 #define NFS4_DUP_REPLAY 4
71 #define NFS4_DUP_INUSE 5
73 extern rfs4_drc_t
*nfs4_drc
;
74 extern uint32_t nfs4_drc_max
;
75 extern uint32_t nfs4_drc_hash
;
77 rfs4_drc_t
*rfs4_init_drc(uint32_t, uint32_t);
78 void rfs4_fini_drc(rfs4_drc_t
*);
79 void rfs4_dr_chstate(rfs4_dupreq_t
*, int);
80 rfs4_dupreq_t
*rfs4_alloc_dr(rfs4_drc_t
*);
81 int rfs4_find_dr(struct svc_req
*, rfs4_drc_t
*, rfs4_dupreq_t
**);
87 #endif /* _NFS4_DRC_H */