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.129.124]) by passt.top (Postfix) with ESMTP id 0A5575A026D for ; Tue, 7 Nov 2023 13:45:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699361138; 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: in-reply-to:in-reply-to:references:references; bh=tgVNoItp4sAoDofJHSUA7Bz2FQ6gf2jhKvQ3a5mCuYo=; b=AYGhjGGqqQdVTIOu8l9wzL+ODNgCBub/2DpmEtCD6YIKPx74T2pHeOaIQf6zwJNXkCDa3f w9LDOm9nEVZiJFnzbmCzajh33Bn1cEnGUenQ+xsYmijrJxYua0ynMCK84AR2uCfklqSfZ2 D0Av831rgqBxmkA2Tx5mvEJwDwIpEbY= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-631-FaAD43A0PPSX8YYBi363Aw-1; Tue, 07 Nov 2023 07:45:14 -0500 X-MC-Unique: FaAD43A0PPSX8YYBi363Aw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (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 9EF80101A550; Tue, 7 Nov 2023 12:45:14 +0000 (UTC) Received: from elisabeth (unknown [10.39.208.12]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C95D52026D66; Tue, 7 Nov 2023 12:45:13 +0000 (UTC) Date: Tue, 7 Nov 2023 13:45:11 +0100 From: Stefano Brivio To: David Gibson Subject: Re: [PATCH v2 0/4] Passt Interface Identifiers Message-ID: <20231107134511.4e4c8e93@elisabeth> In-Reply-To: <20231107014016.1927410-1-david@gibson.dropbear.id.au> References: <20231107014016.1927410-1-david@gibson.dropbear.id.au> Organization: Red Hat MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: HPN74RPBF6HIGOV2RYSZL3CJ5NOZDS34 X-Message-ID-Hash: HPN74RPBF6HIGOV2RYSZL3CJ5NOZDS34 X-MailFrom: sbrivio@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: passt-dev@passt.top 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: On Tue, 7 Nov 2023 12:40:12 +1100 David Gibson wrote: > 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. > > Based on the automatic port forwarding cleanup series > > Changes since v1: > * Don't use a type alias for pif ids, just use bare uint8_t > > 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 Applied. -- Stefano