提交 24764f8d 编写于 作者: A Arseniy Krasnov 提交者: Paolo Abeni

hv_sock: disable SO_RCVLOWAT support

For Hyper-V it is quiet difficult to support this socket option,due to
transport internals, so disable it.
Signed-off-by: NArseniy Krasnov <AVKrasnov@sberdevices.ru>
Reviewed-by: NDexuan Cui <decui@microsoft.com>
Reviewed-by: NStefano Garzarella <sgarzare@redhat.com>
Signed-off-by: NPaolo Abeni <pabeni@redhat.com>
上级 e38f22c8
...@@ -815,6 +815,12 @@ int hvs_notify_send_post_enqueue(struct vsock_sock *vsk, ssize_t written, ...@@ -815,6 +815,12 @@ int hvs_notify_send_post_enqueue(struct vsock_sock *vsk, ssize_t written,
return 0; return 0;
} }
static
int hvs_set_rcvlowat(struct vsock_sock *vsk, int val)
{
return -EOPNOTSUPP;
}
static struct vsock_transport hvs_transport = { static struct vsock_transport hvs_transport = {
.module = THIS_MODULE, .module = THIS_MODULE,
...@@ -850,6 +856,7 @@ static struct vsock_transport hvs_transport = { ...@@ -850,6 +856,7 @@ static struct vsock_transport hvs_transport = {
.notify_send_pre_enqueue = hvs_notify_send_pre_enqueue, .notify_send_pre_enqueue = hvs_notify_send_pre_enqueue,
.notify_send_post_enqueue = hvs_notify_send_post_enqueue, .notify_send_post_enqueue = hvs_notify_send_post_enqueue,
.set_rcvlowat = hvs_set_rcvlowat
}; };
static bool hvs_check_transport(struct vsock_sock *vsk) static bool hvs_check_transport(struct vsock_sock *vsk)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册