Lines Matching defs:rpc_xprt
191 struct rpc_xprt { struct
193 const struct rpc_xprt_ops *ops; /* transport methods */ argument
194 unsigned int id; /* transport id */
196 const struct rpc_timeout *timeout; /* timeout parms */
197 struct sockaddr_storage addr; /* server address */
198 size_t addrlen; /* size of server address */
199 int prot; /* IP protocol */
201 unsigned long cong; /* current congestion */
202 unsigned long cwnd; /* congestion window */
204 size_t max_payload; /* largest RPC payload size,
207 struct rpc_wait_queue binding; /* requests waiting on rpcbind */
208 struct rpc_wait_queue sending; /* requests waiting to send */
209 struct rpc_wait_queue pending; /* requests in flight */
210 struct rpc_wait_queue backlog; /* waiting for slot */
211 struct list_head free; /* free slots */
212 unsigned int max_reqs; /* max number of slots */
213 unsigned int min_reqs; /* min number of slots */
214 unsigned int num_reqs; /* total slots */
215 unsigned long state; /* transport state */
216 unsigned char resvport : 1, /* use a reserved port */
217 reuseport : 1; /* reuse port on reconnect */
218 atomic_t swapper; /* we're swapping over this
220 unsigned int bind_index; /* bind function index */
225 struct list_head xprt_switch;
230 unsigned long bind_timeout,
231 reestablish_timeout;
232 unsigned int connect_cookie; /* A cookie that gets bumped
239 struct work_struct task_cleanup;
240 struct timer_list timer;
241 unsigned long last_used,
242 idle_timeout,
243 connect_timeout,
244 max_reconnect_timeout;
249 atomic_long_t queuelen;
250 spinlock_t transport_lock; /* lock transport info */
251 spinlock_t reserve_lock; /* lock slot table */
252 spinlock_t queue_lock; /* send/receive queue lock */
253 u32 xid; /* Next XID value to use */
254 struct rpc_task * snd_task; /* Task blocked in send */
256 struct list_head xmit_queue; /* Send queue */
257 atomic_long_t xmit_queuelen;
259 struct svc_xprt *bc_xprt; /* NFSv4.1 backchannel */
261 struct svc_serv *bc_serv; /* The RPC service which will */
263 unsigned int bc_alloc_max;
264 unsigned int bc_alloc_count; /* Total number of preallocs */
265 atomic_t bc_slot_count; /* Number of allocated slots */
266 spinlock_t bc_pa_lock; /* Protects the preallocated
268 struct list_head bc_pa_list; /* List of preallocated
272 struct rb_root recv_queue; /* Receive queue */
274 struct {
288 } stat;
290 struct net *xprt_net;
291 netns_tracker ns_tracker;
292 const char *servername;
293 const char *address_strings[RPC_DISPLAY_MAX];
295 struct dentry *debugfs; /* debugfs directory */
297 struct rcu_head rcu;
298 const struct xprt_class *xprt_class;
299 struct rpc_sysfs_xprt *xprt_sysfs;
300 bool main; /*mark if this is the 1st transport */