From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202512 header.b=AkbpflwE; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 1ABA45A004E for ; Fri, 30 Jan 2026 06:58:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202512; t=1769752694; bh=TvF7ecChIh7uVgkUxRT9C138bsziGYIVAuhtv9qLtrc=; h=From:To:Cc:Subject:Date:From; b=AkbpflwEYYZq9iPRWgXc6i+ahjc9Mc33VGP4B4/j3VADqWDtW+8cSY0/OM+pz0ng7 5FiLn3Jpm6xoaMZ5YNfdm0fxIfOBM+xATvWkFlGOwzbkb4eKFwOX0ns98LI+VSFatx FZrvnzODf3vGMkUlcSN7QKJ5qYoIaCCdX+fwhtsOZFRQ/WNmh9xoX3V/4lE1gQrQhh 0LHeL+LjW8U0rO37qWaFptdhFwrz2/qr9ozgdVcy+CF6OcY3+hyh707vTlqwt5MGqZ 1bbv74XrKgZB8jp+rGnwqW7fGPcU763DuXlUn9kuNfe6LJ26BhXfViMTXyp2DT9y2g MsTGdGNIeVhrg== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4f2QKf01lmz4wCY; Fri, 30 Jan 2026 16:58:13 +1100 (AEDT) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH 0/1] migrate: Eliminate listening_sock field from TCP connection state Date: Fri, 30 Jan 2026 16:58:10 +1100 Message-ID: <20260130055811.2408284-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.52.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: IM2623OLOLHHMY3TNK26P4ZSOY2UL7DD X-Message-ID-Hash: IM2623OLOLHHMY3TNK26P4ZSOY2UL7DD 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: A bunch of the things I'm working on right now are made more difficult by the lack of spare space in the TCP connection structure (without adding an additional cache line). I realised that even the minimal forwarding table implementation we have now allows at least one easy win though: the listening_sock field can be eliminated pretty easily. David Gibson (1): migrate: Use forward table information to close() listening sockets flow.c | 12 ++++++++++++ fwd.c | 21 +++++++++++++++++++++ fwd.h | 1 + tcp.c | 9 --------- tcp_conn.h | 3 --- 5 files changed, 34 insertions(+), 12 deletions(-) -- 2.52.0