]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Separate the connection's protocol service ID from the lookup ID
authorDavid Howells <dhowells@redhat.com>
Mon, 5 Jun 2017 13:30:49 +0000 (14:30 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 5 Jun 2017 13:30:49 +0000 (14:30 +0100)
commitffc1efb3dd600dde7297b8100cc7a8e01179018e
treefe2a180323f93465622820a2b59effbcaec62641
parentf3521427b7d380101cfe1b31525afbb379d904c1
rxrpc: Separate the connection's protocol service ID from the lookup ID

Keep the rxrpc_connection struct's idea of the service ID that is exposed
in the protocol separate from the service ID that's used as a lookup key.

This allows the protocol service ID on a client connection to get upgraded
without making the connection unfindable for other client calls that also
would like to use the upgraded connection.

The connection's actual service ID is then returned through recvmsg() by
way of msg_name.

Whilst we're at it, we get rid of the last_service_id field from each
channel.  The service ID is per-connection, not per-call and an entire
connection is upgraded in one go.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/af_rxrpc.c
net/rxrpc/ar-internal.h
net/rxrpc/conn_client.c
net/rxrpc/conn_event.c
net/rxrpc/conn_object.c
net/rxrpc/conn_service.c
net/rxrpc/proc.c
net/rxrpc/recvmsg.c
net/rxrpc/rxkad.c
net/rxrpc/security.c