From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by passt.top (Postfix, from userid 1000) id BF5785A0630; Fri, 31 Jan 2025 20:39:53 +0100 (CET) From: Stefano Brivio <sbrivio@redhat.com> To: passt-dev@passt.top Subject: [PATCH v3 05/20] flow_table: Use size in extern declaration for flowtab Date: Fri, 31 Jan 2025 20:39:38 +0100 Message-ID: <20250131193953.3034031-6-sbrivio@redhat.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250131193953.3034031-1-sbrivio@redhat.com> References: <20250131193953.3034031-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: QNPMYDLTUU7K36X6X6GDFGZU6X5OUSLT X-Message-ID-Hash: QNPMYDLTUU7K36X6X6GDFGZU6X5OUSLT 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 <lvivier@redhat.com>, David Gibson <david@gibson.dropbear.id.au> X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt <passt-dev.passt.top> Archived-At: <https://archives.passt.top/passt-dev/20250131193953.3034031-6-sbrivio@redhat.com/> Archived-At: <https://passt.top/hyperkitty/list/passt-dev@passt.top/message/QNPMYDLTUU7K36X6X6GDFGZU6X5OUSLT/> List-Archive: <https://archives.passt.top/passt-dev/> List-Archive: <https://passt.top/hyperkitty/list/passt-dev@passt.top/> List-Help: <mailto:passt-dev-request@passt.top?subject=help> List-Owner: <mailto:passt-dev-owner@passt.top> List-Post: <mailto:passt-dev@passt.top> List-Subscribe: <mailto:passt-dev-join@passt.top> List-Unsubscribe: <mailto:passt-dev-leave@passt.top> ...so that we can use sizeof() on it. Signed-off-by: Stefano Brivio <sbrivio@redhat.com> --- 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