diff options
Diffstat (limited to 'include/linux/sunrpc/xprt.h')
-rw-r--r-- | include/linux/sunrpc/xprt.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index 84122559fa17..8372ab8fc9b5 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
@@ -51,6 +51,14 @@ struct rpc_timeout { | |||
51 | unsigned char to_exponential; | 51 | unsigned char to_exponential; |
52 | }; | 52 | }; |
53 | 53 | ||
54 | enum rpc_display_format_t { | ||
55 | RPC_DISPLAY_ADDR = 0, | ||
56 | RPC_DISPLAY_PORT, | ||
57 | RPC_DISPLAY_PROTO, | ||
58 | RPC_DISPLAY_ALL, | ||
59 | RPC_DISPLAY_MAX, | ||
60 | }; | ||
61 | |||
54 | struct rpc_task; | 62 | struct rpc_task; |
55 | struct rpc_xprt; | 63 | struct rpc_xprt; |
56 | struct seq_file; | 64 | struct seq_file; |
@@ -103,6 +111,7 @@ struct rpc_rqst { | |||
103 | 111 | ||
104 | struct rpc_xprt_ops { | 112 | struct rpc_xprt_ops { |
105 | void (*set_buffer_size)(struct rpc_xprt *xprt, size_t sndsize, size_t rcvsize); | 113 | void (*set_buffer_size)(struct rpc_xprt *xprt, size_t sndsize, size_t rcvsize); |
114 | char * (*print_addr)(struct rpc_xprt *xprt, enum rpc_display_format_t format); | ||
106 | int (*reserve_xprt)(struct rpc_task *task); | 115 | int (*reserve_xprt)(struct rpc_task *task); |
107 | void (*release_xprt)(struct rpc_xprt *xprt, struct rpc_task *task); | 116 | void (*release_xprt)(struct rpc_xprt *xprt, struct rpc_task *task); |
108 | void (*rpcbind)(struct rpc_task *task); | 117 | void (*rpcbind)(struct rpc_task *task); |
@@ -207,6 +216,8 @@ struct rpc_xprt { | |||
207 | void (*old_data_ready)(struct sock *, int); | 216 | void (*old_data_ready)(struct sock *, int); |
208 | void (*old_state_change)(struct sock *); | 217 | void (*old_state_change)(struct sock *); |
209 | void (*old_write_space)(struct sock *); | 218 | void (*old_write_space)(struct sock *); |
219 | |||
220 | char * address_strings[RPC_DISPLAY_MAX]; | ||
210 | }; | 221 | }; |
211 | 222 | ||
212 | #define XPRT_LAST_FRAG (1 << 0) | 223 | #define XPRT_LAST_FRAG (1 << 0) |