diff options
author | David Howells | 2016-06-10 00:02:51 +0200 |
---|---|---|
committer | David S. Miller | 2016-06-10 08:30:12 +0200 |
commit | 2341e0775747864b684abe8627f3d45b167f2940 (patch) | |
tree | 7fd06d4a7946097c545af86a53bae9fed3e59744 /net/ipv6 | |
parent | net/netlink/af_netlink.h: Remove unused structure. (diff) | |
download | kernel-qcow2-linux-2341e0775747864b684abe8627f3d45b167f2940.tar.gz kernel-qcow2-linux-2341e0775747864b684abe8627f3d45b167f2940.tar.xz kernel-qcow2-linux-2341e0775747864b684abe8627f3d45b167f2940.zip |
rxrpc: Simplify connect() implementation and simplify sendmsg() op
Simplify the RxRPC connect() implementation. It will just note the
destination address it is given, and if a sendmsg() comes along with no
address, this will be assigned as the address. No transport struct will be
held internally, which will allow us to remove this later.
Simplify sendmsg() also. Whilst a call is active, userspace refers to it
by a private unique user ID specified in a control message. When sendmsg()
sees a user ID that doesn't map to an extant call, it creates a new call
for that user ID and attempts to add it. If, when we try to add it, the
user ID is now registered, we now reject the message with -EEXIST. We
should never see this situation unless two threads are racing, trying to
create a call with the same ID - which would be an error.
It also isn't required to provide sendmsg() with an address - provided the
control message data holds a user ID that maps to a currently active call.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions