From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id F31715A0271 for ; Mon, 9 Oct 2023 10:30:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=201602; t=1696840216; bh=o/8JCmQlrQzqSeMVx4luJ5VogN5DCbn2UZ0JC5YdoDE=; h=From:To:Cc:Subject:Date:From; b=ji8+JtZjt+ppPcpkwrNULalUVzdW4c4ydmJQSqDpTa1eJILmBP556Hfako0HAmggM t5RhO0/6/ezCFNjxoKqFhqVMlvMBTE7DwCQ4eN3G02Wlp3QkxpvNg6c8e4OepJFiY8 oQSnCLwYa6GYQQL1oO77L3KRy7QLZ9y5xPKFCgsg= Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4S3sfc3dWFz4xWR; Mon, 9 Oct 2023 19:30:16 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 0/4] Passt Interface Identifiers Date: Mon, 9 Oct 2023 19:30:09 +1100 Message-ID: <20231009083013.2837178-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.41.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: A3H7WIQGMLHOWNFQUZVK43SK3MNUOOYZ X-Message-ID-Hash: A3H7WIQGMLHOWNFQUZVK43SK3MNUOOYZ X-MailFrom: dgibson@gandalf.ozlabs.org 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: David Gibson 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: For the generalisations to forwarding we want to accomplish with the flow table, we will need a more formalised notion of passt "interfaces" - that is way that passt communicates with network, whether that be over L4 sockets (as on the host) or via an L2 tunnel. This series makes a small start on this, by introducing a type to identify passt interfaces. We don't use it for a whole lot yet, but it will become more useful in future. David Gibson (4): udp: Clean up ref initialisation in udp_sock_init() pif: Introduce notion of passt/pasta interface pif: Record originating pif in listening socket refs pif: Pass originating pif to tap handler functions Makefile | 2 +- icmp.c | 4 +++- icmp.h | 4 ++-- passt.h | 1 + pif.h | 36 ++++++++++++++++++++++++++++++++++++ tap.c | 26 ++++++++++++++++---------- tcp.c | 11 ++++++++--- tcp.h | 7 ++++--- tcp_splice.c | 10 ++++++---- udp.c | 35 ++++++++++++++++++----------------- udp.h | 11 ++++++----- 11 files changed, 101 insertions(+), 46 deletions(-) create mode 100644 pif.h -- 2.41.0