aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/af_vsock.h
diff options
context:
space:
mode:
authorStefano Garzarella <sgarzare@redhat.com>2019-12-10 11:43:04 +0100
committerDavid S. Miller <davem@davemloft.net>2019-12-11 15:01:23 -0800
commit0e12190578d081d4fe54d41635ec6e5a6eb0d01a (patch)
tree8a623908ac0d76ea62f0c89ceaded664afaa2f8c /include/net/af_vsock.h
parentvsock: add VMADDR_CID_LOCAL definition (diff)
downloadlinux-dev-0e12190578d081d4fe54d41635ec6e5a6eb0d01a.tar.xz
linux-dev-0e12190578d081d4fe54d41635ec6e5a6eb0d01a.zip
vsock: add local transport support in the vsock core
This patch allows to register a transport able to handle local communication (loopback). Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--include/net/af_vsock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/af_vsock.h b/include/net/af_vsock.h
index 4206dc6d813f..b1c717286993 100644
--- a/include/net/af_vsock.h
+++ b/include/net/af_vsock.h
@@ -98,6 +98,8 @@ struct vsock_transport_send_notify_data {
#define VSOCK_TRANSPORT_F_G2H 0x00000002
/* Transport provides DGRAM communication */
#define VSOCK_TRANSPORT_F_DGRAM 0x00000004
+/* Transport provides local (loopback) communication */
+#define VSOCK_TRANSPORT_F_LOCAL 0x00000008
struct vsock_transport {
struct module *module;