From 503480d772158d404987aca60c94f96505991d4e Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Sat, 24 Jun 2023 18:57:17 -0700 Subject: tcp: avoid initializing counters multiple times Type: fix Signed-off-by: Florin Coras Change-Id: Ia98dae5fdde16426d5457742aff0a1b04db4d034 --- src/vnet/tcp/tcp.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/vnet/tcp/tcp.h') diff --git a/src/vnet/tcp/tcp.h b/src/vnet/tcp/tcp.h index 962324e2eaf..2362a8bb857 100644 --- a/src/vnet/tcp/tcp.h +++ b/src/vnet/tcp/tcp.h @@ -240,6 +240,9 @@ typedef struct _tcp_main /** Flag that indicates if stack is on or off */ u8 is_enabled; + /** Set if counters on stats segment initialized */ + u8 counters_init; + /** Flag that indicates if v4 punting is enabled */ u8 punt_unknown4; -- cgit 1.2.3-korg