public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH v2 00/11] Introduce unified flow table, first steps
@ 2023-11-26 23:33 David Gibson
  2023-11-26 23:33 ` [PATCH v2 01/11] flow, tcp: Generalise connection types David Gibson
                   ` (10 more replies)
  0 siblings, 11 replies; 18+ messages in thread
From: David Gibson @ 2023-11-26 23:33 UTC (permalink / raw)
  To: Stefano Brivio, passt-dev; +Cc: David Gibson

Here's my latest revision of some of the basics of the flow table.  So
far it's basically just a renaming of the existing TCP connection
table, along with some associated helpers.  It's used for some new
logging infrastructure, but otherwise doesn't really function any
differently.

However, this subset of the flow table work no longer bloats
flow/connection entries over a single cache line.  That removes the
most prominent drawback of earlier revisions, meaning I think this
series is ready for merge now.  Doing so will mean the later series
making more substantive changes to the flow behaviour are simpler.

Tested on top of the patch updating shell prompt escape handling, but
should be independent of it.

Changes since v1:
 * Removed a inaccurate stale comment
 * Added doc comment to FLOW() macro
 * Added new patches cleaning up signedness of 'side' variables
 * Added new patches introducing "sidx"s (flow+side indices)

David Gibson (11):
  flow, tcp: Generalise connection types
  flow, tcp: Move TCP connection table to unified flow table
  flow, tcp: Consolidate flow pointer<->index helpers
  util: MAX_FROM_BITS() should be unsigned
  flow: Make unified version of flow table compaction
  flow, tcp: Add logging helpers for connection related messages
  flow: Introduce 'sidx' type to represent one side of one flow
  tcp: Remove unneccessary bounds check in tcp_timer_handler()
  flow,tcp: Generalise TCP epoll_ref to generic flows
  tcp_splice: Use unsigned to represent side
  flow,tcp: Use epoll_ref type including flow and side

 Makefile     |  14 +--
 flow.c       |  84 ++++++++++++++++++
 flow.h       |  73 ++++++++++++++++
 flow_table.h |  86 ++++++++++++++++++
 passt.h      |  13 ++-
 tcp.c        | 243 ++++++++++++++++++++++++---------------------------
 tcp.h        |   5 --
 tcp_conn.h   |  46 +++-------
 tcp_splice.c | 128 ++++++++++++---------------
 tcp_splice.h |   2 +-
 util.h       |   2 +-
 11 files changed, 440 insertions(+), 256 deletions(-)
 create mode 100644 flow.c
 create mode 100644 flow.h
 create mode 100644 flow_table.h

-- 
2.43.0


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

end of thread, other threads:[~2023-12-01  0:11 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-26 23:33 [PATCH v2 00/11] Introduce unified flow table, first steps David Gibson
2023-11-26 23:33 ` [PATCH v2 01/11] flow, tcp: Generalise connection types David Gibson
2023-11-26 23:33 ` [PATCH v2 02/11] flow, tcp: Move TCP connection table to unified flow table David Gibson
2023-11-26 23:33 ` [PATCH v2 03/11] flow, tcp: Consolidate flow pointer<->index helpers David Gibson
2023-11-26 23:33 ` [PATCH v2 04/11] util: MAX_FROM_BITS() should be unsigned David Gibson
2023-11-26 23:33 ` [PATCH v2 05/11] flow: Make unified version of flow table compaction David Gibson
2023-11-26 23:33 ` [PATCH v2 06/11] flow, tcp: Add logging helpers for connection related messages David Gibson
2023-11-26 23:33 ` [PATCH v2 07/11] flow: Introduce 'sidx' type to represent one side of one flow David Gibson
2023-11-29 14:32   ` Stefano Brivio
2023-11-30  0:37     ` David Gibson
2023-11-30  9:21       ` Stefano Brivio
2023-12-01  0:10         ` David Gibson
2023-11-26 23:33 ` [PATCH v2 08/11] tcp: Remove unneccessary bounds check in tcp_timer_handler() David Gibson
2023-11-29 14:32   ` Stefano Brivio
2023-11-30  0:42     ` David Gibson
2023-11-26 23:33 ` [PATCH v2 09/11] flow,tcp: Generalise TCP epoll_ref to generic flows David Gibson
2023-11-26 23:33 ` [PATCH v2 10/11] tcp_splice: Use unsigned to represent side David Gibson
2023-11-26 23:33 ` [PATCH v2 11/11] flow,tcp: Use epoll_ref type including flow and side 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).