search for: vsock_stream_sendmsg

Displaying 20 results from an estimated 28 matches for "vsock_stream_sendmsg".

2018 Nov 15
3
[RFC] Discuss about an new idea "Vsock over Virtio-net"
...+------------+ >> | >> | >> +------------------------------------------------------------------+ >> |VSOCK Core Module | >> |ops->sendmsg; (vsock_stream_sendmsg) | >> | -> alloc_skb; /* it will packet a skb buffer, and include vsock | >> | * hdr and payload */ | >> | -> dev_queue_xmit(); /* it will call start_xmit(virtio-net.c) */| >> |vsock hdr and pay...
2018 Nov 15
3
[RFC] Discuss about an new idea "Vsock over Virtio-net"
...+------------+ >> | >> | >> +------------------------------------------------------------------+ >> |VSOCK Core Module | >> |ops->sendmsg; (vsock_stream_sendmsg) | >> | -> alloc_skb; /* it will packet a skb buffer, and include vsock | >> | * hdr and payload */ | >> | -> dev_queue_xmit(); /* it will call start_xmit(virtio-net.c) */| >> |vsock hdr and pay...
2018 Nov 15
7
[RFC] Discuss about an new idea "Vsock over Virtio-net"
...| Client | +------------+ | | +------------------------------------------------------------------+ |VSOCK Core Module | |ops->sendmsg; (vsock_stream_sendmsg) | | -> alloc_skb; /* it will packet a skb buffer, and include vsock | | * hdr and payload */ | | -> dev_queue_xmit(); /* it will call start_xmit(virtio-net.c) */| |vsock hdr and payload, and then call...
2018 Nov 15
7
[RFC] Discuss about an new idea "Vsock over Virtio-net"
...| Client | +------------+ | | +------------------------------------------------------------------+ |VSOCK Core Module | |ops->sendmsg; (vsock_stream_sendmsg) | | -> alloc_skb; /* it will packet a skb buffer, and include vsock | | * hdr and payload */ | | -> dev_queue_xmit(); /* it will call start_xmit(virtio-net.c) */| |vsock hdr and payload, and then call...
2018 Nov 15
2
[RFC] Discuss about an new idea "Vsock over Virtio-net"
...| >>>> | >>>> +------------------------------------------------------------------+ >>>> |VSOCK Core Module | >>>> |ops->sendmsg; (vsock_stream_sendmsg) | >>>> | -> alloc_skb; /* it will packet a skb buffer, and include vsock | >>>> | * hdr and payload */ | >>>> | -> dev_queue_xmit(); /* it will call start_xmit(virtio-net.c) */| &gt...
2018 Nov 15
2
[RFC] Discuss about an new idea "Vsock over Virtio-net"
...| >>>> | >>>> +------------------------------------------------------------------+ >>>> |VSOCK Core Module | >>>> |ops->sendmsg; (vsock_stream_sendmsg) | >>>> | -> alloc_skb; /* it will packet a skb buffer, and include vsock | >>>> | * hdr and payload */ | >>>> | -> dev_queue_xmit(); /* it will call start_xmit(virtio-net.c) */| &gt...
2019 Apr 05
2
[PATCH RFC 3/4] vsock/virtio: change the maximum packet size allowed
...we can limit the packets sent from the guest. 2. When the host send packets, it help us to increase the parallelism (especially if the guest has 64 KB RX buffers) because the user thread will split packets, calling multiple times transport->stream_enqueue() in net/vmw_vsock/af_vsock.c:vsock_stream_sendmsg() while the vhost_transport_send_pkt_work() send them to the guest. Do you think make sense? Thanks, Stefano
2019 Apr 05
2
[PATCH RFC 3/4] vsock/virtio: change the maximum packet size allowed
...we can limit the packets sent from the guest. 2. When the host send packets, it help us to increase the parallelism (especially if the guest has 64 KB RX buffers) because the user thread will split packets, calling multiple times transport->stream_enqueue() in net/vmw_vsock/af_vsock.c:vsock_stream_sendmsg() while the vhost_transport_send_pkt_work() send them to the guest. Do you think make sense? Thanks, Stefano
2018 Nov 15
0
[RFC] Discuss about an new idea "Vsock over Virtio-net"
...+ >>> | >>> | >>> +------------------------------------------------------------------+ >>> |VSOCK Core Module | >>> |ops->sendmsg; (vsock_stream_sendmsg) | >>> | -> alloc_skb; /* it will packet a skb buffer, and include vsock | >>> | * hdr and payload */ | >>> | -> dev_queue_xmit(); /* it will call start_xmit(virtio-net.c) */| >>> |v...
2018 Nov 15
0
[RFC] Discuss about an new idea "Vsock over Virtio-net"
...| >>>>> | >>>>> +------------------------------------------------------------------+ >>>>> |VSOCK Core Module | >>>>> |ops->sendmsg; (vsock_stream_sendmsg) | >>>>> | -> alloc_skb; /* it will packet a skb buffer, and include vsock | >>>>> | * hdr and payload */ | >>>>> | -> dev_queue_xmit(); /* it will call start_xmit(virtio-ne...
2019 Sep 27
0
[RFC PATCH 04/13] vsock: add 'transport' member in the struct vsock_sock
...nsport; u64 val; if (level != AF_VSOCK) @@ -1457,6 +1472,7 @@ static int vsock_stream_getsockopt(struct socket *sock, err = 0; sk = sock->sk; vsk = vsock_sk(sk); + transport = vsk->transport; switch (optname) { case SO_VM_SOCKETS_BUFFER_SIZE: @@ -1501,6 +1517,7 @@ static int vsock_stream_sendmsg(struct socket *sock, struct msghdr *msg, { struct sock *sk; struct vsock_sock *vsk; + const struct vsock_transport *transport; ssize_t total_written; long timeout; int err; @@ -1509,6 +1526,7 @@ static int vsock_stream_sendmsg(struct socket *sock, struct msghdr *msg, sk = sock->sk...
2019 Oct 23
0
[PATCH net-next 04/14] vsock: add 'transport' member in the struct vsock_sock
...nsport; u64 val; if (level != AF_VSOCK) @@ -1465,6 +1480,7 @@ static int vsock_stream_getsockopt(struct socket *sock, err = 0; sk = sock->sk; vsk = vsock_sk(sk); + transport = vsk->transport; switch (optname) { case SO_VM_SOCKETS_BUFFER_SIZE: @@ -1509,6 +1525,7 @@ static int vsock_stream_sendmsg(struct socket *sock, struct msghdr *msg, { struct sock *sk; struct vsock_sock *vsk; + const struct vsock_transport *transport; ssize_t total_written; long timeout; int err; @@ -1517,6 +1534,7 @@ static int vsock_stream_sendmsg(struct socket *sock, struct msghdr *msg, sk = sock->sk...
2018 Nov 16
1
[RFC] Discuss about an new idea "Vsock over Virtio-net"
...| >>>>>> | >>>>>> +------------------------------------------------------------------+ >>>>>> |VSOCK Core Module | >>>>>> |ops->sendmsg; (vsock_stream_sendmsg) | >>>>>> | -> alloc_skb; /* it will packet a skb buffer, and include vsock | >>>>>> | * hdr and payload */ | >>>>>> | -> dev_queue_xmit(); /* it will call start_xm...
2019 Apr 04
1
[PATCH RFC 3/4] vsock/virtio: change the maximum packet size allowed
Since now we are able to split packets, we can avoid limiting their sizes to VIRTIO_VSOCK_DEFAULT_RX_BUF_SIZE. Instead, we can use VIRTIO_VSOCK_MAX_PKT_BUF_SIZE as the max packet size. Signed-off-by: Stefano Garzarella <sgarzare at redhat.com> --- net/vmw_vsock/virtio_transport_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git
2018 Nov 15
0
[RFC] Discuss about an new idea "Vsock over Virtio-net"
...> +------------+ > | > | > +------------------------------------------------------------------+ > |VSOCK Core Module | > |ops->sendmsg; (vsock_stream_sendmsg) | > | -> alloc_skb; /* it will packet a skb buffer, and include vsock | > | * hdr and payload */ | > | -> dev_queue_xmit(); /* it will call start_xmit(virtio-net.c) */| > |vsock hdr and payload, and then c...
2019 Apr 08
0
[PATCH RFC 3/4] vsock/virtio: change the maximum packet size allowed
...t leave the limit for now. > 2. When the host send packets, it help us to increase the parallelism > (especially if the guest has 64 KB RX buffers) because the user thread > will split packets, calling multiple times transport->stream_enqueue() > in net/vmw_vsock/af_vsock.c:vsock_stream_sendmsg() while the > vhost_transport_send_pkt_work() send them to the guest. Sorry, I don't understand the reasoning. Overall this creates more work. Are you saying the benefit is that vhost_transport_send_pkt_work() can run "early" and notify the guest of partial rx data before all...
2018 Nov 15
0
[RFC] Discuss about an new idea "Vsock over Virtio-net"
...+------------+ > | > | > +------------------------------------------------------------------+ > |VSOCK Core Module | > |ops->sendmsg; (vsock_stream_sendmsg) | > | -> alloc_skb; /* it will packet a skb buffer, and include vsock | > | * hdr and payload */ | > | -> dev_queue_xmit(); /* it will call start_xmit(virtio-net.c) */| > |vsock hdr and payload, and then c...
2019 Apr 08
2
[PATCH RFC 3/4] vsock/virtio: change the maximum packet size allowed
...> > > 2. When the host send packets, it help us to increase the parallelism > > (especially if the guest has 64 KB RX buffers) because the user thread > > will split packets, calling multiple times transport->stream_enqueue() > > in net/vmw_vsock/af_vsock.c:vsock_stream_sendmsg() while the > > vhost_transport_send_pkt_work() send them to the guest. > > Sorry, I don't understand the reasoning. Overall this creates more > work. Are you saying the benefit is that > vhost_transport_send_pkt_work() can run "early" and notify the guest of &...
2019 Apr 08
2
[PATCH RFC 3/4] vsock/virtio: change the maximum packet size allowed
...> > > 2. When the host send packets, it help us to increase the parallelism > > (especially if the guest has 64 KB RX buffers) because the user thread > > will split packets, calling multiple times transport->stream_enqueue() > > in net/vmw_vsock/af_vsock.c:vsock_stream_sendmsg() while the > > vhost_transport_send_pkt_work() send them to the guest. > > Sorry, I don't understand the reasoning. Overall this creates more > work. Are you saying the benefit is that > vhost_transport_send_pkt_work() can run "early" and notify the guest of &...
2019 Oct 23
0
[PATCH net-next 11/14] vsock: add multi-transports support
...t;svm_port)) { err = -ENETUNREACH; goto out; } - /* Set the remote address that we are connecting to. */ - memcpy(&vsk->remote_addr, remote_addr, - sizeof(vsk->remote_addr)); - err = vsock_auto_bind(vsk); if (err) goto out; @@ -1586,7 +1651,7 @@ static int vsock_stream_sendmsg(struct socket *sock, struct msghdr *msg, goto out; } - if (sk->sk_state != TCP_ESTABLISHED || + if (!transport || sk->sk_state != TCP_ESTABLISHED || !vsock_addr_bound(&vsk->local_addr)) { err = -ENOTCONN; goto out; @@ -1712,7 +1777,7 @@ vsock_stream_recvmsg(struct so...