public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH v2 0/4] tcp: use csum_iov() in tcp_update_check_tcp[4|6]()
@ 2024-09-25  8:11 Laurent Vivier
  2024-09-25  8:11 ` [PATCH v2 1/4] tcp: Use tcp_payload_t rather than tcphdr Laurent Vivier
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Laurent Vivier @ 2024-09-25  8:11 UTC (permalink / raw)
  To: passt-dev; +Cc: Laurent Vivier

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.

Laurent Vivier (4):
  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

 checksum.c     |  17 +++++--
 checksum.h     |   3 +-
 pcap.c         |   5 +-
 pcap.h         |   2 +-
 tcp.c          | 134 ++++++++++++++++++++++++++++++++++++-------------
 tcp_buf.c      |  29 -----------
 tcp_internal.h |  29 +++++++++++
 7 files changed, 147 insertions(+), 72 deletions(-)

-- 
2.46.0



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-09-30  4:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-25  8:11 [PATCH v2 0/4] tcp: use csum_iov() in tcp_update_check_tcp[4|6]() Laurent Vivier
2024-09-25  8:11 ` [PATCH v2 1/4] tcp: Use tcp_payload_t rather than tcphdr Laurent Vivier
2024-09-25  8:11 ` [PATCH v2 2/4] pcap: Add an offset argument in pcap_iov() Laurent Vivier
2024-09-25  8:11 ` [PATCH v2 3/4] checksum: Add an offset argument in csum_iov() Laurent Vivier
2024-09-25 17:39   ` Stefano Brivio
2024-09-26  1:31   ` David Gibson
2024-09-25  8:11 ` [PATCH v2 4/4] tcp: Update TCP checksum using an iovec array Laurent Vivier
2024-09-25 17:39   ` Stefano Brivio
2024-09-26  1:56     ` David Gibson
2024-09-26  3:54       ` Stefano Brivio
2024-09-26  1:45   ` David Gibson
2024-09-27 13:49     ` Laurent Vivier
2024-09-30  2:59       ` David Gibson

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).