aboutgitcodebugslistschat
path: root/flow_table.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-01-16 11:50:40 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-01-22 23:35:29 +0100
commitfb7c00169d49a99ea2d14dae05bf0c8190f0971c (patch)
treef44225965c30a3cb4a87981ab7dccfa0da875493 /flow_table.h
parent7f37bf4cd51fc73441aeee1acf0129f4802e0cba (diff)
downloadpasst-fb7c00169d49a99ea2d14dae05bf0c8190f0971c.tar
passt-fb7c00169d49a99ea2d14dae05bf0c8190f0971c.tar.gz
passt-fb7c00169d49a99ea2d14dae05bf0c8190f0971c.tar.bz2
passt-fb7c00169d49a99ea2d14dae05bf0c8190f0971c.tar.lz
passt-fb7c00169d49a99ea2d14dae05bf0c8190f0971c.tar.xz
passt-fb7c00169d49a99ea2d14dae05bf0c8190f0971c.tar.zst
passt-fb7c00169d49a99ea2d14dae05bf0c8190f0971c.zip
flow: Move flow_count from context structure to a global
In general, the passt code is a bit haphazard about what's a true global variable and what's in the quasi-global 'context structure'. The flow_count field is one such example: it's in the context structure, although it's really part of the same data structure as flowtab[], which is a genuine global. Move flow_count to be a regular global to match. For now it needs to be public, rather than static, but we expect to be able to change that in future. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'flow_table.h')
-rw-r--r--flow_table.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/flow_table.h b/flow_table.h
index e805f10..4aa2398 100644
--- a/flow_table.h
+++ b/flow_table.h
@@ -22,6 +22,7 @@ union flow {
};
/* Global Flow Table */
+extern unsigned flow_count;
extern union flow flowtab[];