summaryrefslogtreecommitdiffstats
path: root/include/net/af_vsock.h
diff options
context:
space:
mode:
authorPeng Tao <bergwolf@gmail.com>2017-03-15 02:32:15 +0100
committerDavid S. Miller <davem@davemloft.net>2017-03-21 22:41:46 +0100
commit16320f363ae128d9b9c70e60f00f2a572f57c23d (patch)
tree0b2bd4f264282f74d6547bd259d43aef7995629f /include/net/af_vsock.h
parentvsock: track pkt owner vsock (diff)
downloadlinux-16320f363ae128d9b9c70e60f00f2a572f57c23d.tar.xz
linux-16320f363ae128d9b9c70e60f00f2a572f57c23d.zip
vhost-vsock: add pkt cancel capability
To allow canceling all packets of a connection. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Jorgen Hansen <jhansen@vmware.com> Signed-off-by: Peng Tao <bergwolf@gmail.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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/af_vsock.h b/include/net/af_vsock.h
index f2758964ce6f..f32ed9ac181a 100644
--- a/include/net/af_vsock.h
+++ b/include/net/af_vsock.h
@@ -100,6 +100,9 @@ struct vsock_transport {
void (*destruct)(struct vsock_sock *);
void (*release)(struct vsock_sock *);
+ /* Cancel all pending packets sent on vsock. */
+ int (*cancel_pkt)(struct vsock_sock *vsk);
+
/* Connections. */
int (*connect)(struct vsock_sock *);