rxrpc: Tidy up the rxrpc_call struct a bit
Do a little tidying of the rxrpc_call struct:
(1) in_clientflag is no longer compared against the value that's in the
packet, so keeping it in this form isn't necessary. Use a flag in
flags instead and provide a pair of wrapper functions.
(2) We don't read the epoch value, so that can go.
(3) Move what remains of the data that were used for hashing up in the
struct to be with the channel number.
(4) Get rid of the local pointer. We can get at this via the socket
struct and we only use this in the procfs viewer.
Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
parent
26164e77ca
commit
dabe5a7906
5 changed files with 21 additions and 20 deletions
|
|
@ -61,8 +61,8 @@ static int rxrpc_call_seq_show(struct seq_file *seq, void *v)
|
|||
call = list_entry(v, struct rxrpc_call, link);
|
||||
|
||||
sprintf(lbuff, "%pI4:%u",
|
||||
&call->local->srx.transport.sin.sin_addr,
|
||||
ntohs(call->local->srx.transport.sin.sin_port));
|
||||
&call->socket->local->srx.transport.sin.sin_addr,
|
||||
ntohs(call->socket->local->srx.transport.sin.sin_port));
|
||||
|
||||
conn = call->conn;
|
||||
if (conn)
|
||||
|
|
@ -80,7 +80,7 @@ static int rxrpc_call_seq_show(struct seq_file *seq, void *v)
|
|||
call->service_id,
|
||||
call->cid,
|
||||
call->call_id,
|
||||
call->in_clientflag ? "Svc" : "Clt",
|
||||
rxrpc_is_service_call(call) ? "Svc" : "Clt",
|
||||
atomic_read(&call->usage),
|
||||
rxrpc_call_states[call->state],
|
||||
call->remote_abort ?: call->local_abort,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue