From: Stefano Brivio <sbrivio@redhat.com>
To: Jon Maloy <jmaloy@redhat.com>
Cc: passt-dev@passt.top, lvivier@redhat.com, dgibson@redhat.com
Subject: Re: [PATCH v2 2/2] tcp: unify l2 TCPv4 and TCPv6 queues and structures
Date: Wed, 18 Sep 2024 00:34:15 +0200 [thread overview]
Message-ID: <20240918003415.08618422@elisabeth> (raw)
In-Reply-To: <20240914003718.2871567-3-jmaloy@redhat.com>
On top of what David already noted, this needs a rebase after commit
5ff5d55291d2 ("tcp: Avoid overlapping memcpy() in DUP_ACK handling").
Similar to v1, I'm still getting a iperf3 hang in the "TCP throughput
over IPv6: host to guest" case of the perf/passt_tcp test. I had a
quick look: the server doesn't seem to be getting any frames, while
both handshakes (control and data) succeed and the client is actually
sending some frames at the beginning.
I guess it's because of this condition:
((v4 && tcp_payload_used + fill_bufs > TCP_FRAMES_MEM))
in tcp_buf_data_from_sock(), also reported by David. If you have IPv6
frames only, you'll never flush the queue, I suppose.
One nit about the commit message:
On Fri, 13 Sep 2024 20:37:18 -0400
Jon Maloy <jmaloy@redhat.com> wrote:
> Following the preparations in the previous commit, we can now remove
> the payload and flag queues dedicated for TCPv6 and TCPv4 and move all
> traffic into common queues handling both protocol types.
>
> Apart from reducing code and memory footprint, this change reduces
...I insist that in a general case this patch doesn't reduce the memory
footprint. If both IPv4 and IPv6 are enabled, then yes, but that's
because it also cuts in half the number of available buffers.
The series looks otherwise good to me.
--
Stefano
next prev parent reply other threads:[~2024-09-17 22:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-14 0:37 [PATCH v2 0/2] tcp: unify IPv4 and IPv6 tap queues Jon Maloy
2024-09-14 0:37 ` [PATCH v2 1/2] tcp: set ip and eth headers in l2 tap queues on the fly Jon Maloy
2024-09-16 1:25 ` David Gibson
2024-09-14 0:37 ` [PATCH v2 2/2] tcp: unify l2 TCPv4 and TCPv6 queues and structures Jon Maloy
2024-09-16 1:57 ` David Gibson
2024-09-17 22:34 ` Stefano Brivio [this message]
2024-09-15 8:25 ` [PATCH v2 0/2] tcp: unify IPv4 and IPv6 tap queues Stefano Brivio
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=20240918003415.08618422@elisabeth \
--to=sbrivio@redhat.com \
--cc=dgibson@redhat.com \
--cc=jmaloy@redhat.com \
--cc=lvivier@redhat.com \
--cc=passt-dev@passt.top \
/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).