From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTP id EAB075A004C for ; Tue, 28 May 2024 19:32:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1716917547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qVwT+sS4l2ITzOHZ/ztJNyirTC/0g5JCJHHGiKApE58=; b=R2ef041lbCkXKt8n+mjGP26FGGDfYoDWB7Fz6qpyPYNHyngtqYlgDeUz8ec/c4KLRrWU+/ zLA1VvhhQ3VxH/1inOtrgqs41llcXzLRunssVR+1YaJP6ConjTiLG32ibpwVLIEuaqHm8D 0mCgd5qqT5mGgZDpYqUk64LAHYlhGwo= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-668-gkVyphZQNU6ewLz476IHGQ-1; Tue, 28 May 2024 13:32:26 -0400 X-MC-Unique: gkVyphZQNU6ewLz476IHGQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id CD6991C0512D for ; Tue, 28 May 2024 17:32:25 +0000 (UTC) Received: from lenovo-t14s.redhat.com (unknown [10.39.192.34]) by smtp.corp.redhat.com (Postfix) with ESMTP id 02242200A381; Tue, 28 May 2024 17:32:24 +0000 (UTC) From: Laurent Vivier To: passt-dev@passt.top Subject: [PATCH v2 0/8] Add vhost-user support to passt (part 2) Date: Tue, 28 May 2024 19:31:44 +0200 Message-ID: <20240528173152.1074623-1-lvivier@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-ID-Hash: PFXDQTOXLVQHF7475YG2UGAMHATFBQ64 X-Message-ID-Hash: PFXDQTOXLVQHF7475YG2UGAMHATFBQ64 X-MailFrom: lvivier@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Laurent Vivier X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Extract buffers management code from tcp.c and move=0D it to tcp_buf.c=0D tcp.c keeps all the generic code and will be also used by=0D the vhost-user functions.=0D =0D Also compare mode to MODE_PASTA, as we will manage vhost-user=0D mode (MODE_VU) like MODE_PASST.=0D =0D v2:=0D - compare to MODE_PASTA in conf_open_files() too=0D - move taph out of udp_update_hdr4()/udp_update_hdr6()=0D =0D Laurent Vivier (8):=0D tcp: inline tcp_l2_buf_fill_headers()=0D tcp: extract buffer management from tcp_send_flag()=0D tcp: extract buffer management from tcp_conn_tap_mss()=0D tcp: move buffers management functions to their own file=0D tap: export pool_flush()/tapX_handler()/packet_add()=0D udp: move udpX_l2_buf_t and udpX_l2_mh_sock out of udp_update_hdrX()=0D udp: rename udp_sock_handler() to udp_buf_sock_handler()=0D vhost-user: compare mode MODE_PASTA and not MODE_PASST=0D =0D Makefile | 5 +-=0D conf.c | 14 +-=0D isolation.c | 10 +-=0D passt.c | 4 +-=0D tap.c | 109 +++++----=0D tap.h | 7 +=0D tcp.c | 603 +++----------------------------------------------=0D tcp_buf.c | 543 ++++++++++++++++++++++++++++++++++++++++++++=0D tcp_buf.h | 17 ++=0D tcp_internal.h | 79 +++++++=0D udp.c | 68 +++---=0D udp.h | 2 +-=0D 12 files changed, 786 insertions(+), 675 deletions(-)=0D create mode 100644 tcp_buf.c=0D create mode 100644 tcp_buf.h=0D create mode 100644 tcp_internal.h=0D =0D --=20=0D 2.44.0=0D =0D