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=202502 header.b=KGTppg07; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id C536F5A0623 for ; Fri, 04 Apr 2025 12:15:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202502; t=1743761743; bh=A+/iGLap3zNO+WmQOWT2I8OeRmw7HBNsZae1QxvfOWs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KGTppg07TP7HmH/G5b5G5iCdzeHRoEGhDUYgCxKFzLWGRQsJzowN3pkdPCaYw9i+M NP2IJJTu8yhPr0Pbsfz4Gtavr6nzlnNOn5an+/RdHAwcDBy12u75r86NwiPyK3poqO Ll+MjC95cc0m/aadRBgMVyd6vgHuks1t3Hy+tswExgpvOcMx4E/lPJfS3/KXHsYbAn Kth5cYkwF4dG+f+EaOdq7To5yCopsZRGJdxvSol0D0Uf1gOtqjioxsxZw+Dvbw2fUb GAqw2Y/llZMTbb7sxTQ6bmBLfzRaAPuwO4KEbiV33G5nulzL33zp79nzwBaMgFig4T xlatl7zxyVVeQ== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4ZTZHg5ptZz4xNx; Fri, 4 Apr 2025 21:15:43 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 08/12] udp: Move UDP_MAX_FRAMES to udp.c Date: Fri, 4 Apr 2025 21:15:38 +1100 Message-ID: <20250404101542.3729316-9-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250404101542.3729316-1-david@gibson.dropbear.id.au> References: <20250404101542.3729316-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: LVWNPBB4BGXXQZ4SW5JXOHBK776OKXXS X-Message-ID-Hash: LVWNPBB4BGXXQZ4SW5JXOHBK776OKXXS 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: Recent changes mean that this define is no longer used anywhere except in udp.c. Move it back into udp.c from udp_internal.h. Signed-off-by: David Gibson --- udp.c | 2 ++ udp_internal.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/udp.c b/udp.c index f724b100..f6de2924 100644 --- a/udp.c +++ b/udp.c @@ -116,6 +116,8 @@ #include "udp_internal.h" #include "udp_vu.h" +#define UDP_MAX_FRAMES 32 /* max # of frames to receive at once */ + /* Maximum UDP data to be returned in ICMP messages */ #define ICMP4_MAX_DLEN 8 #define ICMP6_MAX_DLEN (IPV6_MIN_MTU \ diff --git a/udp_internal.h b/udp_internal.h index 02724e59..f7d84267 100644 --- a/udp_internal.h +++ b/udp_internal.h @@ -8,8 +8,6 @@ #include "tap.h" /* needed by udp_meta_t */ -#define UDP_MAX_FRAMES 32 /* max # of frames to receive at once */ - /** * struct udp_payload_t - UDP header and data for inbound messages * @uh: UDP header -- 2.49.0