public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Laurent Vivier <lvivier@redhat.com>
To: Stefano Brivio <sbrivio@redhat.com>
Cc: passt-dev@passt.top
Subject: Re: [PATCH v12 00/10] Add vhost-user support to passt. (part 3)
Date: Mon, 18 Nov 2024 17:46:53 +0100	[thread overview]
Message-ID: <128f391c-22ef-4c78-915c-2679ef320979@redhat.com> (raw)
In-Reply-To: <20241115152540.6b63ac3e@elisabeth>

On 15/11/2024 15:25, Stefano Brivio wrote:
> On Fri, 15 Nov 2024 14:58:38 +0100
> Laurent Vivier <lvivier@redhat.com> wrote:
> 
>> v12:
>>   - rebase
>>   - address comments from Stefano
> 
> ...including SO_PEEK_OFF fixes? Should I test that part already? :)
> 

There are several bugs, the first one is the IP header checksum is wrong for the last 
frame, the following change fixes the problem:

diff --git a/tcp_vu.c b/tcp_vu.c
index 14093f502ba6..3f3c001c4e8e 100644
--- a/tcp_vu.c
+++ b/tcp_vu.c
@@ -459,7 +459,7 @@ int tcp_vu_data_from_sock(const struct ctx *c, struct tcp_p)

                 if (frame_size >= mss || len == 0 ||
                     i + 1 == iov_cnt || !vu_has_feature(vdev, VIRTIO_NET_F_MRGX{
-                       if (i + 1 == iov_cnt)
+                       if (i + 1 == iov_cnt || len == 0)
                                 check = NULL;

                         /* restore first iovec base: point to vnet header */

Now, it doesn't hang but the transfer is truncated. I'm hunting the next one.

Thanks,
Laurent


      parent reply	other threads:[~2024-11-18 16:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-15 13:58 [PATCH v12 00/10] Add vhost-user support to passt. (part 3) Laurent Vivier
2024-11-15 13:58 ` [PATCH v12 01/10] packet: replace struct desc by struct iovec Laurent Vivier
2024-11-15 13:58 ` [PATCH v12 02/10] vhost-user: introduce virtio API Laurent Vivier
2024-11-15 13:58 ` [PATCH v12 03/10] vhost-user: introduce vhost-user API Laurent Vivier
2024-11-15 13:58 ` [PATCH v12 04/10] udp: Prepare udp.c to be shared with vhost-user Laurent Vivier
2024-11-15 13:58 ` [PATCH v12 05/10] tcp: Export headers functions Laurent Vivier
2024-11-15 13:58 ` [PATCH v12 06/10] passt: rename tap_sock_init() to tap_backend_init() Laurent Vivier
2024-11-15 13:58 ` [PATCH v12 07/10] vhost-user: add vhost-user Laurent Vivier
2024-11-15 13:58 ` [PATCH v12 08/10] test: Add tests for passt in vhost-user mode Laurent Vivier
2024-11-15 13:58 ` [PATCH v12 09/10] tcp_vu: Share more header construction between IPv4 and IPv6 paths Laurent Vivier
2024-11-15 13:58 ` [PATCH v12 10/10] tcp: Move tcp_l2_buf_fill_headers() to tcp_buf.c Laurent Vivier
2024-11-15 14:25 ` [PATCH v12 00/10] Add vhost-user support to passt. (part 3) Stefano Brivio
2024-11-15 15:46   ` Laurent Vivier
2024-11-18 16:46   ` Laurent Vivier [this message]

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=128f391c-22ef-4c78-915c-2679ef320979@redhat.com \
    --to=lvivier@redhat.com \
    --cc=passt-dev@passt.top \
    --cc=sbrivio@redhat.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

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 IMAP folder(s).