diff options
author | Peng Tao <bergwolf@gmail.com> | 2017-03-15 09:32:15 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-21 14:41:46 -0700 |
commit | 16320f363ae128d9b9c70e60f00f2a572f57c23d (patch) | |
tree | 0b2bd4f264282f74d6547bd259d43aef7995629f /include/net | |
parent | 36d277bac8080202684e67162ebb157f16631581 (diff) |
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.h | 3 |
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 *); |