From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by passt.top (Postfix, from userid 1000) id 4ECC85A0623; Tue, 28 Jan 2025 00:15:32 +0100 (CET) From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 4/7] flow_table: Use size in extern declaration for flowtab Date: Tue, 28 Jan 2025 00:15:29 +0100 Message-ID: <20250127231532.672363-5-sbrivio@redhat.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250127231532.672363-1-sbrivio@redhat.com> References: <20250127231532.672363-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: HPH4J36LGV7DGKP5YB3OQUHMINZFGD4B X-Message-ID-Hash: HPH4J36LGV7DGKP5YB3OQUHMINZFGD4B X-MailFrom: sbrivio@passt.top 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: Laurent Vivier , 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: ...so that we can use sizeof() on it. Signed-off-by: Stefano Brivio --- flow_table.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow_table.h b/flow_table.h index 007f4dd..a85cab5 100644 --- a/flow_table.h +++ b/flow_table.h @@ -48,7 +48,7 @@ static_assert(sizeof(union flow) == 128, "union flow should be 128-byte wide"); /* Global Flow Table */ extern unsigned flow_first_free; -extern union flow flowtab[]; +extern union flow flowtab[FLOW_MAX]; /** * flow_foreach_sidei() - 'for' type macro to step through each side of flow -- 2.43.0