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=202408 header.b=hjGwm4+8; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id E8CC05A026E for ; Tue, 03 Sep 2024 14:02:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202408; t=1725364957; bh=Eh8oIrB57blJ162vK3GkM2hrJHDC4oWxJ8DygJ8/8zU=; h=From:To:Cc:Subject:Date:From; b=hjGwm4+8znoxZEh53LBPzteB2BkWbtMeDmeSdHpUHk1btrc21w5jm3YVPv/saOtn4 kGANh9fDcqAHIqN9REy+DwCXLJvb3ran575fcyOWinbesgRQjR6e6+h40u5TM0DTWR ydijEdMXN9wnT7ag0c+H0rFnTQjUJmMgeyDZr0go8wGq+zASlH518nNWPw/SKUiQgE qbERSSCCisnUc5KngMm2vmNbG92CNPBYKqAyPdQw7gl6SLziWa8buHrU/uwK2VlbB7 ObUl2nzOC7nsHqQ7Myx1+N232qiebTeGZWA9gT8nFyKD0SKVwo6WMwyeWLzfFrvlZS eye1Nsl035RpA== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4WyklK5FTPz4x8C; Tue, 3 Sep 2024 22:02:37 +1000 (AEST) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH 0/6] RFC: Clean up tap-side event handling Date: Tue, 3 Sep 2024 22:02:29 +1000 Message-ID: <20240903120235.1688429-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.46.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: R5IA7CUR5VPLTAQJ235XO7XH5ULZXUQO X-Message-ID-Hash: R5IA7CUR5VPLTAQJ235XO7XH5ULZXUQO 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: This is a draft patch working towards adding EPOLLOUT handling to the tap code, which could then be used to "unstick" flows which have unsent data from the socket side. For now that's just a stub, but makes what I think are some worthwhile cleanups to the tap side event handling in the meantime. David Gibson (6): tap: Split out handling of EPOLLIN events tap: Improve handling of EINTR in tap_passt_input() tap: Restructure in tap_pasta_input() tap: Don't risk truncating frames on full buffer in tap_pasta_input() tap: Re-introduce EPOLLET for tap connections tap: Stub EPOLLOUT handling tap.c | 131 +++++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 88 insertions(+), 43 deletions(-) -- 2.46.0