summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorPeng Tao <bergwolf@gmail.com>2017-03-15 09:32:15 +0800
committerDavid S. Miller <davem@davemloft.net>2017-03-21 14:41:46 -0700
commit16320f363ae128d9b9c70e60f00f2a572f57c23d (patch)
tree0b2bd4f264282f74d6547bd259d43aef7995629f /include/net
parent36d277bac8080202684e67162ebb157f16631581 (diff)
downloadop-kernel-dev-16320f363ae128d9b9c70e60f00f2a572f57c23d.zip
op-kernel-dev-16320f363ae128d9b9c70e60f00f2a572f57c23d.tar.gz
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')
-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 f275896..f32ed9a 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 *);
OpenPOWER on IntegriCloud