Lines Matching defs:rpc_xprt
197 struct rpc_xprt { struct
199 const struct rpc_xprt_ops *ops; /* transport methods */ argument
200 unsigned int id; /* transport id */
202 const struct rpc_timeout *timeout; /* timeout parms */
203 struct sockaddr_storage addr; /* server address */
204 size_t addrlen; /* size of server address */
205 int prot; /* IP protocol */
207 unsigned long cong; /* current congestion */
208 unsigned long cwnd; /* congestion window */
210 size_t max_payload; /* largest RPC payload size,
213 struct rpc_wait_queue binding; /* requests waiting on rpcbind */
214 struct rpc_wait_queue sending; /* requests waiting to send */
215 struct rpc_wait_queue pending; /* requests in flight */
216 struct rpc_wait_queue backlog; /* waiting for slot */
217 struct list_head free; /* free slots */
218 unsigned int max_reqs; /* max number of slots */
219 unsigned int min_reqs; /* min number of slots */
220 unsigned int num_reqs; /* total slots */
221 unsigned long state; /* transport state */
222 unsigned char resvport : 1, /* use a reserved port */
223 reuseport : 1; /* reuse port on reconnect */
224 atomic_t swapper; /* we're swapping over this
226 unsigned int bind_index; /* bind function index */
231 struct list_head xprt_switch;
236 unsigned long bind_timeout,
237 reestablish_timeout;
238 struct xprtsec_parms xprtsec;
239 unsigned int connect_cookie; /* A cookie that gets bumped
246 struct work_struct task_cleanup;
247 struct timer_list timer;
248 unsigned long last_used,
249 idle_timeout,
250 connect_timeout,
251 max_reconnect_timeout;
256 atomic_long_t queuelen;
257 spinlock_t transport_lock; /* lock transport info */
258 spinlock_t reserve_lock; /* lock slot table */
259 spinlock_t queue_lock; /* send/receive queue lock */
260 u32 xid; /* Next XID value to use */
261 struct rpc_task * snd_task; /* Task blocked in send */
263 struct list_head xmit_queue; /* Send queue */
264 atomic_long_t xmit_queuelen;
266 struct svc_xprt *bc_xprt; /* NFSv4.1 backchannel */
268 struct svc_serv *bc_serv; /* The RPC service which will */
270 unsigned int bc_alloc_max;
271 unsigned int bc_alloc_count; /* Total number of preallocs */
272 atomic_t bc_slot_count; /* Number of allocated slots */
273 spinlock_t bc_pa_lock; /* Protects the preallocated
275 struct list_head bc_pa_list; /* List of preallocated
279 struct rb_root recv_queue; /* Receive queue */
281 struct {
295 } stat;
297 struct net *xprt_net;
298 netns_tracker ns_tracker;
299 const char *servername;
300 const char *address_strings[RPC_DISPLAY_MAX];
302 struct dentry *debugfs; /* debugfs directory */
304 struct rcu_head rcu;
305 const struct xprt_class *xprt_class;
306 struct rpc_sysfs_xprt *xprt_sysfs;
307 bool main; /*mark if this is the 1st transport */