virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Stefano Garzarella <sgarzare@redhat.com>
Cc: kvm@vger.kernel.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	virtualization@lists.linux-foundation.org,
	Stefan Hajnoczi <stefanha@redhat.com>,
	"David S. Miller" <davem@davemloft.net>
Subject: Re: [PATCH v4 5/5] vsock/virtio: change the maximum packet size allowed
Date: Wed, 17 Jul 2019 10:59:52 -0400	[thread overview]
Message-ID: <20190717105703-mutt-send-email-mst__8942.6228356146$1563375612$gmane$org@kernel.org> (raw)
In-Reply-To: <20190717113030.163499-6-sgarzare@redhat.com>

On Wed, Jul 17, 2019 at 01:30:30PM +0200, Stefano Garzarella wrote:
> 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@redhat.com>


OK so this is kind of like GSO where we are passing
64K packets to the vsock and then split at the
low level.


> ---
>  net/vmw_vsock/virtio_transport_common.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/net/vmw_vsock/virtio_transport_common.c b/net/vmw_vsock/virtio_transport_common.c
> index 56fab3f03d0e..94cc0fa3e848 100644
> --- a/net/vmw_vsock/virtio_transport_common.c
> +++ b/net/vmw_vsock/virtio_transport_common.c
> @@ -181,8 +181,8 @@ static int virtio_transport_send_pkt_info(struct vsock_sock *vsk,
>  	vvs = vsk->trans;
>  
>  	/* we can send less than pkt_len bytes */
> -	if (pkt_len > VIRTIO_VSOCK_DEFAULT_RX_BUF_SIZE)
> -		pkt_len = VIRTIO_VSOCK_DEFAULT_RX_BUF_SIZE;
> +	if (pkt_len > VIRTIO_VSOCK_MAX_PKT_BUF_SIZE)
> +		pkt_len = VIRTIO_VSOCK_MAX_PKT_BUF_SIZE;
>  
>  	/* virtio_transport_get_credit might return less than pkt_len credit */
>  	pkt_len = virtio_transport_get_credit(vvs, pkt_len);
> -- 
> 2.20.1

  parent reply	other threads:[~2019-07-17 14:59 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-17 11:30 [PATCH v4 0/5] vsock/virtio: optimizations to increase the throughput Stefano Garzarella
2019-07-17 11:30 ` [PATCH v4 1/5] vsock/virtio: limit the memory used per-socket Stefano Garzarella
2019-07-17 11:30 ` [PATCH v4 2/5] vsock/virtio: reduce credit update messages Stefano Garzarella
2019-07-17 11:30 ` [PATCH v4 3/5] vsock/virtio: fix locking in virtio_transport_inc_tx_pkt() Stefano Garzarella
2019-07-17 11:30 ` [PATCH v4 4/5] vhost/vsock: split packets to send using multiple buffers Stefano Garzarella
2019-07-17 11:30 ` [PATCH v4 5/5] vsock/virtio: change the maximum packet size allowed Stefano Garzarella
     [not found] ` <20190717113030.163499-4-sgarzare@redhat.com>
2019-07-17 14:51   ` [PATCH v4 3/5] vsock/virtio: fix locking in virtio_transport_inc_tx_pkt() Michael S. Tsirkin
     [not found]   ` <20190717105056-mutt-send-email-mst@kernel.org>
2019-07-18  7:43     ` Stefano Garzarella
2019-07-22  8:53   ` Stefan Hajnoczi
     [not found] ` <20190717113030.163499-6-sgarzare@redhat.com>
2019-07-17 14:59   ` Michael S. Tsirkin [this message]
     [not found]   ` <20190717105703-mutt-send-email-mst@kernel.org>
2019-07-18  7:52     ` [PATCH v4 5/5] vsock/virtio: change the maximum packet size allowed Stefano Garzarella
     [not found]     ` <CAGxU2F5ybg1_8VhS=COMnxSKC4AcW4ZagYwNMi==d6-rNPgzsg@mail.gmail.com>
2019-07-18 12:33       ` Michael S. Tsirkin
     [not found]       ` <20190718083105-mutt-send-email-mst@kernel.org>
2019-07-19  8:29         ` Stefano Garzarella
2019-07-22  9:07   ` Stefan Hajnoczi
     [not found] ` <20190717113030.163499-3-sgarzare@redhat.com>
2019-07-22  8:36   ` [PATCH v4 2/5] vsock/virtio: reduce credit update messages Stefan Hajnoczi
2019-09-03  4:38   ` Michael S. Tsirkin
2019-09-03  7:31     ` Stefano Garzarella
     [not found]     ` <20190903073120.kefllalytkvidcvh@steredhat>
2019-09-03  7:38       ` Michael S. Tsirkin
     [not found] ` <20190717113030.163499-5-sgarzare@redhat.com>
2019-07-17 14:54   ` [PATCH v4 4/5] vhost/vsock: split packets to send using multiple buffers Michael S. Tsirkin
     [not found]   ` <20190717105336-mutt-send-email-mst@kernel.org>
2019-07-18  7:50     ` Stefano Garzarella
     [not found]     ` <CAGxU2F45v40qAOHkm1Hk2E69gCS0UwVgS5NS+tDXXuzdF4EixA@mail.gmail.com>
2019-07-18  8:13       ` Michael S. Tsirkin
     [not found]       ` <20190718041234-mutt-send-email-mst@kernel.org>
2019-07-18  9:37         ` Stefano Garzarella
     [not found]         ` <CAGxU2F6oo7Cou7t9o=gG2=wxHMKX9xYQXNxVtDYeHq5fyEhJWg@mail.gmail.com>
2019-07-18 11:35           ` Michael S. Tsirkin
     [not found]           ` <20190718072741-mutt-send-email-mst@kernel.org>
2019-07-19  8:08             ` Stefano Garzarella
     [not found]             ` <20190719080832.7hoeus23zjyrx3cc@steredhat>
2019-07-19  8:21               ` Jason Wang
     [not found]               ` <fcd19719-e5a9-adad-1e6c-c84487187088@redhat.com>
2019-07-19  8:39                 ` Stefano Garzarella
     [not found]                 ` <20190719083920.67qo2umpthz454be@steredhat>
2019-07-19  8:51                   ` Jason Wang
     [not found]                   ` <53da84b9-184f-1377-0582-ab7cf42ebdb6@redhat.com>
2019-07-19  9:20                     ` Stefano Garzarella
2019-07-22  9:06   ` Stefan Hajnoczi
2019-07-22  9:08 ` [PATCH v4 0/5] vsock/virtio: optimizations to increase the throughput Stefan Hajnoczi
     [not found] ` <20190722090835.GF24934@stefanha-x1.localdomain>
2019-07-22  9:14   ` Stefano Garzarella
     [not found]   ` <20190722091434.tzf7lxw3tvrs5w5v@steredhat>
2019-07-29 13:12     ` Stefan Hajnoczi
2019-07-29 13:59 ` Michael S. Tsirkin
     [not found] ` <20190717113030.163499-2-sgarzare@redhat.com>
2019-07-29 14:04   ` [PATCH v4 1/5] vsock/virtio: limit the memory used per-socket Michael S. Tsirkin
     [not found]   ` <20190729095956-mutt-send-email-mst@kernel.org>
2019-07-29 15:36     ` Stefano Garzarella
     [not found]     ` <20190729153656.zk4q4rob5oi6iq7l@steredhat>
2019-07-29 15:49       ` Michael S. Tsirkin
2019-07-29 16:01       ` Michael S. Tsirkin
     [not found]       ` <20190729114302-mutt-send-email-mst@kernel.org>
2019-07-29 16:19         ` Stefano Garzarella
     [not found]         ` <20190729161903.yhaj5rfcvleexkhc@steredhat>
2019-07-29 16:50           ` Stefano Garzarella
     [not found]           ` <20190729165056.r32uzj6om3o6vfvp@steredhat>
2019-07-29 19:10             ` Michael S. Tsirkin
     [not found]             ` <20190729143622-mutt-send-email-mst@kernel.org>
2019-07-30  9:35               ` Stefano Garzarella
     [not found]               ` <20190730093539.dcksure3vrykir3g@steredhat>
2019-07-30 20:42                 ` Michael S. Tsirkin
     [not found]                 ` <20190730163807-mutt-send-email-mst@kernel.org>
2019-08-01 10:47                   ` Stefano Garzarella
     [not found]                   ` <20190801104754.lb3ju5xjfmnxioii@steredhat>
2019-08-01 13:21                     ` Michael S. Tsirkin
     [not found]                     ` <20190801091106-mutt-send-email-mst@kernel.org>
2019-08-01 13:36                       ` Stefano Garzarella
     [not found]                       ` <20190801133616.sik5drn6ecesukbb@steredhat>
2019-09-01  8:26                         ` Michael S. Tsirkin
2019-09-01 10:17                           ` Michael S. Tsirkin
2019-09-02  9:57                             ` Stefano Garzarella
     [not found]                             ` <20190902095723.6vuvp73fdunmiogo@steredhat>
2019-09-02 15:23                               ` Michael S. Tsirkin
2019-09-03  4:39                               ` Michael S. Tsirkin
2019-09-03  7:45                                 ` Stefano Garzarella
     [not found]                                 ` <20190903074554.mq6spyivftuodahy@steredhat>
2019-09-03  7:52                                   ` Michael S. Tsirkin
     [not found]                                   ` <20190903034747-mutt-send-email-mst@kernel.org>
2019-09-03  8:00                                     ` Stefano Garzarella
     [not found]       ` <20190729115904-mutt-send-email-mst@kernel.org>
2019-07-29 16:41         ` Stefano Garzarella
     [not found]         ` <CAGxU2F5F1KcaFNJ6n7++ApZiYMGnoEWKVRgo3Vc4h5hpxSJEZg@mail.gmail.com>
2019-07-29 19:33           ` Michael S. Tsirkin
2019-08-30  9:40     ` Stefano Garzarella
     [not found]     ` <20190830094059.c7qo5cxrp2nkrncd@steredhat>
2019-09-01  6:56       ` Michael S. Tsirkin
     [not found]       ` <20190901024525-mutt-send-email-mst@kernel.org>
2019-09-02  8:39         ` Stefan Hajnoczi
2019-09-02  8:55           ` Stefano Garzarella
2019-10-11 13:40         ` Stefano Garzarella
     [not found]         ` <CAGxU2F7fA5UtkuMQbOHHy0noOGZUtpepBNKFg5afD81bynMVUQ@mail.gmail.com>
2019-10-11 14:11           ` Michael S. Tsirkin
     [not found]           ` <20191011100826-mutt-send-email-mst@kernel.org>
2019-10-11 14:23             ` Stefano Garzarella
2019-10-14  8:17           ` Stefan Hajnoczi
     [not found]           ` <20191014081724.GD22963@stefanha-x1.localdomain>
2019-10-14  8:21             ` Jason Wang
     [not found]             ` <2398c960-b6d7-8af3-fa25-d75344335db7@redhat.com>
2019-10-14  8:38               ` Stefano Garzarella
     [not found] ` <20190729095743-mutt-send-email-mst@kernel.org>
2019-07-30  9:40   ` [PATCH v4 0/5] vsock/virtio: optimizations to increase the throughput Stefano Garzarella
     [not found]   ` <20190730094013.ruqjllqrjmkdnh5y@steredhat>
2019-07-30 10:03     ` Jason Wang
     [not found]     ` <fc568e3d-7af5-5895-89e8-32e35b0f9af4@redhat.com>
2019-07-30 15:38       ` Stefano Garzarella
2019-09-03  8:02 ` request for stable (was Re: [PATCH v4 0/5] vsock/virtio: optimizations to increase the throughput) Michael S. Tsirkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='20190717105703-mutt-send-email-mst__8942.6228356146$1563375612$gmane$org@kernel.org' \
    --to=mst@redhat.com \
    --cc=davem@davemloft.net \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=sgarzare@redhat.com \
    --cc=stefanha@redhat.com \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).