diff options
author | Stefano Stabellini <sstabellini@kernel.org> | 2017-07-06 21:01:06 +0300 |
---|---|---|
committer | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2017-08-31 16:45:55 +0300 |
commit | 5db4d286a8ef88a04247a005df9cdd4bce3c7673 (patch) | |
tree | 770bd3fe65e1f840f94948c84f68c58c4ae4e6c5 /drivers/connector | |
parent | fb0298754ab79f0aca1a8162f9aeb5b097c0a1b1 (diff) | |
download | linux-5db4d286a8ef88a04247a005df9cdd4bce3c7673.tar.xz |
xen/pvcalls: implement connect command
Allocate a socket. Keep track of socket <-> ring mappings with a new data
structure, called sock_mapping. Implement the connect command by calling
inet_stream_connect, and mapping the new indexes page and data ring.
Allocate a workqueue and a work_struct, called ioworker, to perform
reads and writes to the socket.
When an active socket is closed (sk_state_change), set in_error to
-ENOTCONN and notify the other end, as specified by the protocol.
sk_data_ready and pvcalls_back_ioworker will be implemented later.
[ boris: fixed whitespaces ]
Signed-off-by: Stefano Stabellini <stefano@aporeto.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
CC: boris.ostrovsky@oracle.com
CC: jgross@suse.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'drivers/connector')
0 files changed, 0 insertions, 0 deletions