Skip to content

Commit

Permalink
hv_sock: disable SO_RCVLOWAT support
Browse files Browse the repository at this point in the history
For Hyper-V it is quiet difficult to support this socket option,due to
transport internals, so disable it.

Signed-off-by: Arseniy Krasnov <[email protected]>
Reviewed-by: Dexuan Cui <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
  • Loading branch information
Arseniy Krasnov authored and Paolo Abeni committed Aug 23, 2022
1 parent e38f22c commit 24764f8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions net/vmw_vsock/hyperv_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,12 @@ int hvs_notify_send_post_enqueue(struct vsock_sock *vsk, ssize_t written,
return 0;
}

static
int hvs_set_rcvlowat(struct vsock_sock *vsk, int val)
{
return -EOPNOTSUPP;
}

static struct vsock_transport hvs_transport = {
.module = THIS_MODULE,

Expand Down Expand Up @@ -850,6 +856,7 @@ static struct vsock_transport hvs_transport = {
.notify_send_pre_enqueue = hvs_notify_send_pre_enqueue,
.notify_send_post_enqueue = hvs_notify_send_post_enqueue,

.set_rcvlowat = hvs_set_rcvlowat
};

static bool hvs_check_transport(struct vsock_sock *vsk)
Expand Down

0 comments on commit 24764f8

Please sign in to comment.