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 53F0A5A0268 for ; Fri, 27 Jan 2023 06:11:17 +0100 (CET) Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4P35Jd4JyNz4xGq; Fri, 27 Jan 2023 16:11:13 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=201602; t=1674796273; bh=u3blVGl1KqWDLtNl2KbA5zsqlTIbqJErlDRVdRXB3OE=; h=From:To:Cc:Subject:Date:From; b=B2kHWi+SDtXqa782qk9RNSBRFb1R19XLEYghiJ2T2kgw0o4MWiLfPGxkfTbDxtiA3 hl3Q2xtRAFd6nmc1OoqeF9GqV4fFyXupsphIM4RyL1ZRKZxIzzQ/5Tbsr9AyHDAWkr QYbuhxk12QVsi6asB6MEoPnQZ0fzDzzYNzZbnt6g= From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH 0/4] RFC: Some cleanups to tap and tcp Date: Fri, 27 Jan 2023 16:11:06 +1100 Message-Id: <20230127051110.2513363-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.39.1 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: WJBH2VZCBJLTT6DZ5NIJFJXV5FT5HSFU X-Message-ID-Hash: WJBH2VZCBJLTT6DZ5NIJFJXV5FT5HSFU 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.3 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 handful of simple cleanups which I made while investigating https://bugs.passt.top/show_bug.cgi?id=41. Note that these don't themselves actually address that bug, they're just unrelated cleanups that happen to be in adjacent code. These are barely tested at all. I've had some crises right before going away that mean I haven't had a chance to plish these. I'm posting them so they're out there rather than waiting until I'm back in two weeks. These are based on my tap send unification series and the TCP socket pool cleanup series. David Gibson (4): tap: Don't pcap frames that didn't get sent tap: Eliminate goto from tap_handler() tcp: Remove 'recvmsg' goto from tcp_data_from_sock tcp: Remove 'zero_len' goto from tcp_data_from_sock tap.c | 49 +++++++++++++++++++++++++++---------------------- tcp.c | 37 +++++++++++++++++-------------------- 2 files changed, 44 insertions(+), 42 deletions(-) -- 2.39.1