summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorGerard Garcia <ggarcia@deic.uab.cat>2017-04-21 10:10:44 +0100
committerDavid S. Miller <davem@davemloft.net>2017-04-24 12:35:56 -0400
commit531b374834c891ae2abf800693074df35a7d1a36 (patch)
treeffc34ece8edd0c7417db366a1a9ab5d543c1bbcb /include/net
parentac2291ce1f17a99c052378927f2d3bcd6b0045a6 (diff)
downloadlinux-stable-531b374834c891ae2abf800693074df35a7d1a36.tar.gz
linux-stable-531b374834c891ae2abf800693074df35a7d1a36.tar.bz2
linux-stable-531b374834c891ae2abf800693074df35a7d1a36.zip
VSOCK: Add vsockmon tap functions
Add tap functions that can be used by the vsock transports to deliver packets to vsockmon virtual network devices. Signed-off-by: Gerard Garcia <ggarcia@deic.uab.cat> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Jorgen Hansen <jhansen@vmware.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/af_vsock.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/net/af_vsock.h b/include/net/af_vsock.h
index f32ed9ac181a..f9fb566e75cf 100644
--- a/include/net/af_vsock.h
+++ b/include/net/af_vsock.h
@@ -188,4 +188,17 @@ struct sock *vsock_find_connected_socket(struct sockaddr_vm *src,
void vsock_remove_sock(struct vsock_sock *vsk);
void vsock_for_each_connected_socket(void (*fn)(struct sock *sk));
+/**** TAP ****/
+
+struct vsock_tap {
+ struct net_device *dev;
+ struct module *module;
+ struct list_head list;
+};
+
+int vsock_init_tap(void);
+int vsock_add_tap(struct vsock_tap *vt);
+int vsock_remove_tap(struct vsock_tap *vt);
+void vsock_deliver_tap(struct sk_buff *build_skb(void *opaque), void *opaque);
+
#endif /* __AF_VSOCK_H__ */