Commit 82a54d0e authored by Asias He's avatar Asias He Committed by David S. Miller

VSOCK: Move af_vsock.h and vsock_addr.h to include/net

This is useful for other VSOCK transport implemented outside the
net/vmw_vsock/ directory to use these headers.
Signed-off-by: default avatarAsias He <asias@redhat.com>
Acked-by: default avatarAndy King <acking@vmware.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a648ab58
...@@ -96,8 +96,7 @@ ...@@ -96,8 +96,7 @@
#include <linux/wait.h> #include <linux/wait.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <net/sock.h> #include <net/sock.h>
#include <net/af_vsock.h>
#include "af_vsock.h"
static int __vsock_bind(struct sock *sk, struct sockaddr_vm *addr); static int __vsock_bind(struct sock *sk, struct sockaddr_vm *addr);
static void vsock_sk_destruct(struct sock *sk); static void vsock_sk_destruct(struct sock *sk);
......
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
#include <linux/wait.h> #include <linux/wait.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <net/sock.h> #include <net/sock.h>
#include <net/af_vsock.h>
#include "af_vsock.h"
#include "vmci_transport_notify.h" #include "vmci_transport_notify.h"
static int vmci_transport_recv_dgram_cb(void *data, struct vmci_datagram *dg); static int vmci_transport_recv_dgram_cb(void *data, struct vmci_datagram *dg);
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
#include <linux/vmw_vmci_defs.h> #include <linux/vmw_vmci_defs.h>
#include <linux/vmw_vmci_api.h> #include <linux/vmw_vmci_api.h>
#include "vsock_addr.h" #include <net/vsock_addr.h>
#include "af_vsock.h" #include <net/af_vsock.h>
/* If the packet format changes in a release then this should change too. */ /* If the packet format changes in a release then this should change too. */
#define VMCI_TRANSPORT_PACKET_VERSION 1 #define VMCI_TRANSPORT_PACKET_VERSION 1
......
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
#include <linux/socket.h> #include <linux/socket.h>
#include <linux/stddef.h> #include <linux/stddef.h>
#include <net/sock.h> #include <net/sock.h>
#include <net/vsock_addr.h>
#include "vsock_addr.h"
void vsock_addr_init(struct sockaddr_vm *addr, u32 cid, u32 port) void vsock_addr_init(struct sockaddr_vm *addr, u32 cid, u32 port)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment