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 6672C5A0274 for ; Wed, 6 Mar 2024 06:34:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202312; t=1709703270; bh=g3UM0lJC4hgPsMVEnoXp6rcno1yICRRgffRzw6mAkRI=; h=From:To:Cc:Subject:Date:From; b=nZyMgoar0w9MDnqCdxIzahN3m05orcdNEe7YMPpp6lqfjF1Y/cxi+YIIdcQhtEaaz /miJn7frj+OkS5zVGI45BvqXSllX2x+8r/p4FOCqS1MYBxHu0gJQ3zszKLhN6v6RS+ q8u62MzYqVEXbXIlgagijdAIuQ2x7zQqlZUbqj5vXUuP3to7v68LnLvtjkQSCGist/ 146AmeW0y0wfoKGAdCHLSktcBh5Y2xjMjhyEGfd6Vl/MlCrfoshYpuNAz/SMNG1Wbe hjkTU9nCW8xlQDDEfbFJd8POFadOVsMHAWdEPJOBU2kUZDRpzJyN7ZHNuq7z0IyMIs h/yf3i+6rMs3A== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4TqLj23fMdz4wcF; Wed, 6 Mar 2024 16:34:30 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH v2 0/6] udp: Small cleanups Date: Wed, 6 Mar 2024 16:34:22 +1100 Message-ID: <20240306053428.1176129-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.44.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: DBRMHOAFPNE7VGIUUM6J5TS5B5464AYR X-Message-ID-Hash: DBRMHOAFPNE7VGIUUM6J5TS5B5464AYR 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: Following on from the recent set of small fixes for UDP, here are a number of small cleanups to the UDP code, which will simplify later more complex fixes and improvements. Laurent, I expect this will have some conflicts with part 2 of your vhost-user work, though I hope they won't be too bad. This is now based on part 1 of Laurent's vhost-user series (specifically the version I posted with the static checker regressions fixed). Changes since v1: * Rebased on Laurent's vhost-user part 1 patches * Some improved commit messages David Gibson (6): udp: Refactor udp_sock[46]_iov_init() udp: Consistent port variable names in udp_update_hdr[46] udp: Pass data length explicitly to to udp_update_hdr[46] udp: Re-order udp_update_hdr[46] for clarity and brevity udp: Avoid unnecessary pointer in udp_update_hdr4() udp: Use existing helper for UDP checksum on inbound IPv6 packets udp.c | 211 +++++++++++++++++++++++++++------------------------------- 1 file changed, 99 insertions(+), 112 deletions(-) -- 2.44.0