diff options
author | Chuck Lever <cel@netapp.com> | 2005-08-25 19:25:56 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2005-09-23 12:38:55 -0400 |
commit | 470056c288334eb0b37be26c9ff8aee37ed1cc7a (patch) | |
tree | 8c76a17c31c5dadbd4438a11d64364cdbe164c40 /include/linux/sunrpc/xprt.h | |
parent | 03bf4b707eee06706c9db343dd5c905b7ee47ed2 (diff) |
[PATCH] RPC: rationalize set_buffer_size
In fact, ->set_buffer_size should be completely functionless for non-UDP.
Test-plan:
Check socket buffer size on UDP sockets over time.
Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc/xprt.h')
-rw-r--r-- | include/linux/sunrpc/xprt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index 2543adf18551..99cad3ead81d 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
@@ -100,7 +100,7 @@ struct rpc_rqst { | |||
100 | #define rq_slen rq_snd_buf.len | 100 | #define rq_slen rq_snd_buf.len |
101 | 101 | ||
102 | struct rpc_xprt_ops { | 102 | struct rpc_xprt_ops { |
103 | void (*set_buffer_size)(struct rpc_xprt *xprt); | 103 | void (*set_buffer_size)(struct rpc_xprt *xprt, size_t sndsize, size_t rcvsize); |
104 | int (*reserve_xprt)(struct rpc_task *task); | 104 | int (*reserve_xprt)(struct rpc_task *task); |
105 | void (*release_xprt)(struct rpc_xprt *xprt, struct rpc_task *task); | 105 | void (*release_xprt)(struct rpc_xprt *xprt, struct rpc_task *task); |
106 | void (*connect)(struct rpc_task *task); | 106 | void (*connect)(struct rpc_task *task); |
@@ -124,7 +124,7 @@ struct rpc_xprt { | |||
124 | unsigned long cong; /* current congestion */ | 124 | unsigned long cong; /* current congestion */ |
125 | unsigned long cwnd; /* congestion window */ | 125 | unsigned long cwnd; /* congestion window */ |
126 | 126 | ||
127 | unsigned int rcvsize, /* transport rcv buffer size */ | 127 | size_t rcvsize, /* transport rcv buffer size */ |
128 | sndsize; /* transport send buffer size */ | 128 | sndsize; /* transport send buffer size */ |
129 | 129 | ||
130 | size_t max_payload; /* largest RPC payload size, | 130 | size_t max_payload; /* largest RPC payload size, |