From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=QNJDD+6b; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id 625DD5A026F for ; Wed, 02 Apr 2025 19:23:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1743614628; 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=4rTMb/vS8SlpUGSXreLihWuzR7olufhZOEUUgbY4jEI=; b=QNJDD+6bXNK047jWA3KFsVgevjQPPS3XJgHP+wnvl9Z5WOvdk8GqI8hjVA+98ZYkGSqgQ8 7CI2MLKGS3P+I1v9aq0GKe9cUVjRrUN72xMsaM+eaZOkzmNbTwC8/3HXgcPzy9ER6qsGCR uUmNaEapzAtRibQ2Ie2X32rvy3qGU2w= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-197-3Ia7Lx2XPjuNbG5uVlZ-iQ-1; Wed, 02 Apr 2025 13:23:47 -0400 X-MC-Unique: 3Ia7Lx2XPjuNbG5uVlZ-iQ-1 X-Mimecast-MFC-AGG-ID: 3Ia7Lx2XPjuNbG5uVlZ-iQ_1743614625 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (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 mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9B2861955DC5 for ; Wed, 2 Apr 2025 17:23:45 +0000 (UTC) Received: from lenovo-t14s.redhat.com (unknown [10.44.33.101]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8B90619560AD; Wed, 2 Apr 2025 17:23:44 +0000 (UTC) From: Laurent Vivier To: passt-dev@passt.top Subject: [PATCH 00/18] Introduce discontiguous frames management Date: Wed, 2 Apr 2025 19:23:25 +0200 Message-ID: <20250402172343.858187-1-lvivier@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: q82YhvO9Ixe7RKzr9jY9_TNpztZb7h5V9LwgnEy6Q5M_1743614625 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-ID-Hash: 3R77JNJPLC34EBFDNMD5CCE7YKRKB3XR X-Message-ID-Hash: 3R77JNJPLC34EBFDNMD5CCE7YKRKB3XR 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: This series introduces iov_tail to convey frame information=0D between functions.=0D =0D This is only an API change, for the moment the memory pool=0D is only able to store contiguous buffer, so, except for=0D vhost-user in a special case, we only play with iovec array=0D with only one entry.=0D =0D Laurent Vivier (18):=0D arp: Don't mix incoming and outgoing buffers=0D iov: Update IOV_REMOVE_HEADER() and IOV_PEEK_HEADER()=0D tap: Use iov_tail with tap_add_packet()=0D packet: Use iov_tail with packet_add()=0D packet: Add packet_base()=0D arp: Convert to iov_tail=0D ndp: Convert to iov_tail=0D icmp: Convert to iov_tail=0D udp: Convert to iov_tail=0D tcp: Convert tcp_tap_handler() to use iov_tail=0D tcp: Convert tcp_data_from_tap() to use iov_tail=0D dhcpv6: Convert to iov_tail=0D dhcpv6: move offset initialization out of dhcpv6_opt()=0D dhcpv6: Use iov_tail in dhcpv6_opt()=0D dhcp: Convert to iov_tail=0D tap: Convert to iov_tail=0D ip: Use iov_tail in ipv6_l4hdr()=0D tap: Convert to iov_tail=0D =0D arp.c | 90 ++++++++++++++++++++++++------------=0D dhcp.c | 38 ++++++++-------=0D dhcpv6.c | 70 +++++++++++++++-------------=0D icmp.c | 38 +++++++++------=0D iov.c | 130 ++++++++++++++++++++++++++++++++++++++++++++++++----=0D iov.h | 54 ++++++++++++++++------=0D ip.c | 27 +++++------=0D ip.h | 3 +-=0D ndp.c | 7 ++-=0D packet.c | 58 ++++++++++-------------=0D packet.h | 19 ++++----=0D pcap.c | 1 +=0D tap.c | 86 ++++++++++++++++++++++------------=0D tap.h | 2 +-=0D tcp.c | 41 +++++++++++------=0D tcp_buf.c | 2 +-=0D udp.c | 37 ++++++++++-----=0D vu_common.c | 25 ++--------=0D 18 files changed, 474 insertions(+), 254 deletions(-)=0D =0D --=20=0D 2.49.0=0D =0D