Lines Matching defs:rpc_xprt
187 struct rpc_xprt { struct
189 const struct rpc_xprt_ops *ops; /* transport methods */ argument
190 unsigned int id; /* transport id */
192 const struct rpc_timeout *timeout; /* timeout parms */
193 struct sockaddr_storage addr; /* server address */
194 size_t addrlen; /* size of server address */
195 int prot; /* IP protocol */
197 unsigned long cong; /* current congestion */
198 unsigned long cwnd; /* congestion window */
200 size_t max_payload; /* largest RPC payload size,
203 struct rpc_wait_queue binding; /* requests waiting on rpcbind */
204 struct rpc_wait_queue sending; /* requests waiting to send */
205 struct rpc_wait_queue pending; /* requests in flight */
206 struct rpc_wait_queue backlog; /* waiting for slot */
207 struct list_head free; /* free slots */
208 unsigned int max_reqs; /* max number of slots */
209 unsigned int min_reqs; /* min number of slots */
210 unsigned int num_reqs; /* total slots */
211 unsigned long state; /* transport state */
212 unsigned char resvport : 1, /* use a reserved port */
213 reuseport : 1; /* reuse port on reconnect */
214 atomic_t swapper; /* we're swapping over this
216 unsigned int bind_index; /* bind function index */
221 struct list_head xprt_switch;
226 unsigned long bind_timeout,
227 reestablish_timeout;
228 unsigned int connect_cookie; /* A cookie that gets bumped
235 struct work_struct task_cleanup;
236 struct timer_list timer;
237 unsigned long last_used,
238 idle_timeout,
239 connect_timeout,
240 max_reconnect_timeout;
245 atomic_long_t queuelen;
246 spinlock_t transport_lock; /* lock transport info */
247 spinlock_t reserve_lock; /* lock slot table */
248 spinlock_t queue_lock; /* send/receive queue lock */
249 u32 xid; /* Next XID value to use */
250 struct rpc_task * snd_task; /* Task blocked in send */
252 struct list_head xmit_queue; /* Send queue */
253 atomic_long_t xmit_queuelen;
255 struct svc_xprt *bc_xprt; /* NFSv4.1 backchannel */
257 struct svc_serv *bc_serv; /* The RPC service which will */
259 unsigned int bc_alloc_max;
260 unsigned int bc_alloc_count; /* Total number of preallocs */
261 atomic_t bc_slot_count; /* Number of allocated slots */
262 spinlock_t bc_pa_lock; /* Protects the preallocated
264 struct list_head bc_pa_list; /* List of preallocated
268 struct rb_root recv_queue; /* Receive queue */
270 struct {
284 } stat;
286 struct net *xprt_net;
287 const char *servername;
288 const char *address_strings[RPC_DISPLAY_MAX];
290 struct dentry *debugfs; /* debugfs directory */
292 struct rcu_head rcu;
293 const struct xprt_class *xprt_class;
294 struct rpc_sysfs_xprt *xprt_sysfs;
295 bool main; /*mark if this is the 1st transport */