From: Laurent Vivier <lvivier@redhat.com>
To: passt-dev@passt.top
Cc: Laurent Vivier <lvivier@redhat.com>
Subject: [PATCH v6 0/5] tcp: use csum_iov() in tcp_update_check_tcp[4|6]()
Date: Thu, 3 Oct 2024 16:51:03 +0200 [thread overview]
Message-ID: <20241003145108.2227355-1-lvivier@redhat.com> (raw)
For vhost-user, we will need to spread TCP payload over
several buffers. To re-use tcp_update_check_tcp[4|6](),
provide an iovec rather than a pointer to a buffer.
This series updates also csum_iov() and pcap_iov() to
add an offset of bytes to skip in the iovec array.
It's based on top of "tcp: Use tcp_payload_t rather than tcphdr" that
is added in the series for convenience.
v6: update tcp.c with fix for clang-tidy error and add missing static
Laurent Vivier (5):
tcp: Use tcp_payload_t rather than tcphdr
pcap: Add an offset argument in pcap_iov()
checksum: Add an offset argument in csum_iov()
tcp: Update TCP checksum using an iovec array
udp: Update UDP checksum using an iovec array
checksum.c | 46 +++++++++++-----
checksum.h | 7 +--
iov.c | 1 -
pcap.c | 5 +-
pcap.h | 2 +-
tap.c | 14 +++--
tap.h | 2 +-
tcp.c | 140 +++++++++++++++++++++++++++++++++++++++----------
tcp_buf.c | 29 ----------
tcp_internal.h | 29 ++++++++++
udp.c | 17 ++++--
11 files changed, 206 insertions(+), 86 deletions(-)
--
2.46.0
next reply other threads:[~2024-10-03 14:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-03 14:51 Laurent Vivier [this message]
2024-10-03 14:51 ` [PATCH v6 1/5] tcp: Use tcp_payload_t rather than tcphdr Laurent Vivier
2024-10-03 14:51 ` [PATCH v6 2/5] pcap: Add an offset argument in pcap_iov() Laurent Vivier
2024-10-03 14:51 ` [PATCH v6 3/5] checksum: Add an offset argument in csum_iov() Laurent Vivier
2024-10-03 14:51 ` [PATCH v6 4/5] tcp: Update TCP checksum using an iovec array Laurent Vivier
2024-10-03 14:55 ` Laurent Vivier
2024-10-04 6:56 ` Stefano Brivio
2024-10-03 14:51 ` [PATCH v6 5/5] udp: Update UDP " Laurent Vivier
2024-10-04 13:10 ` [PATCH v6 0/5] tcp: use csum_iov() in tcp_update_check_tcp[4|6]() 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=20241003145108.2227355-1-lvivier@redhat.com \
--to=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).