diff options
author | Arseny Krasnov <arseny.krasnov@kaspersky.com> | 2021-06-11 14:10:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-11 13:32:46 -0700 |
commit | fbe70c480796d9052fcc786c76e6b029acb1c7bc (patch) | |
tree | be3134c2af5febff21ffcb05fe1e20b50537c52c /include/net/af_vsock.h | |
parent | 9942c192b256bc11cc903f89f4057bc97434dee9 (diff) | |
download | linux-fbe70c480796d9052fcc786c76e6b029acb1c7bc.tar.gz linux-fbe70c480796d9052fcc786c76e6b029acb1c7bc.tar.bz2 linux-fbe70c480796d9052fcc786c76e6b029acb1c7bc.zip |
af_vsock: implement send logic for SEQPACKET
Update current stream enqueue function for SEQPACKET
support:
1) Call transport's seqpacket enqueue callback.
2) Return value from enqueue function is whole record length or error
for SOCK_SEQPACKET.
Signed-off-by: Arseny Krasnov <arseny.krasnov@kaspersky.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/af_vsock.h')
-rw-r--r-- | include/net/af_vsock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/af_vsock.h b/include/net/af_vsock.h index 4d7cf6b2aca2..d6745d8b8f3e 100644 --- a/include/net/af_vsock.h +++ b/include/net/af_vsock.h @@ -138,6 +138,8 @@ struct vsock_transport { /* SEQ_PACKET. */ ssize_t (*seqpacket_dequeue)(struct vsock_sock *vsk, struct msghdr *msg, int flags); + int (*seqpacket_enqueue)(struct vsock_sock *vsk, struct msghdr *msg, + size_t len); /* Notification. */ int (*notify_poll_in)(struct vsock_sock *, size_t, bool *); |