blob: 49b719dfef95a95cef4937d1d9ca5e7c6bc49078 [file] [log] [blame]
J. Bruce Fields06b332a2013-04-09 11:34:36 -04001#define NFS4_MAXTAGLEN 20
2
3#define NFS4_enc_cb_null_sz 0
4#define NFS4_dec_cb_null_sz 0
5#define cb_compound_enc_hdr_sz 4
6#define cb_compound_dec_hdr_sz (3 + (NFS4_MAXTAGLEN >> 2))
7#define sessionid_sz (NFS4_MAX_SESSIONID_LEN >> 2)
8#define cb_sequence_enc_sz (sessionid_sz + 4 + \
9 1 /* no referring calls list yet */)
10#define cb_sequence_dec_sz (op_dec_sz + sessionid_sz + 4)
11
12#define op_enc_sz 1
13#define op_dec_sz 2
14#define enc_nfs4_fh_sz (1 + (NFS4_FHSIZE >> 2))
15#define enc_stateid_sz (NFS4_STATEID_SIZE >> 2)
16#define NFS4_enc_cb_recall_sz (cb_compound_enc_hdr_sz + \
17 cb_sequence_enc_sz + \
18 1 + enc_stateid_sz + \
19 enc_nfs4_fh_sz)
20
21#define NFS4_dec_cb_recall_sz (cb_compound_dec_hdr_sz + \
22 cb_sequence_dec_sz + \
23 op_dec_sz)
Christoph Hellwigc5c707f2014-09-23 12:38:48 +020024#define NFS4_enc_cb_layout_sz (cb_compound_enc_hdr_sz + \
25 cb_sequence_enc_sz + \
26 1 + 3 + \
27 enc_nfs4_fh_sz + 4)
28#define NFS4_dec_cb_layout_sz (cb_compound_dec_hdr_sz + \
29 cb_sequence_dec_sz + \
30 op_dec_sz)
Jeff Laytona188620e2016-09-16 16:28:23 -040031
32#define NFS4_enc_cb_notify_lock_sz (cb_compound_enc_hdr_sz + \
33 cb_sequence_enc_sz + \
34 2 + 1 + \
35 XDR_QUADLEN(NFS4_OPAQUE_LIMIT) + \
36 enc_nfs4_fh_sz)
37#define NFS4_dec_cb_notify_lock_sz (cb_compound_dec_hdr_sz + \
38 cb_sequence_dec_sz + \
39 op_dec_sz)