nat: use proper type for counters 79/29279/2
authorKlement Sekera <ksekera@cisco.com>
Wed, 7 Oct 2020 12:19:44 +0000 (12:19 +0000)
committerDamjan Marion <dmarion@me.com>
Thu, 8 Oct 2020 06:21:41 +0000 (06:21 +0000)
Type: improvement
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: I330822c5d675cdfa57ab75ceb0223f11e0ebb7d2

src/plugins/nat/nat.h

index 99ac70b..123bea5 100644 (file)
@@ -279,8 +279,8 @@ typedef struct
   u32 fib_index;
 /* *INDENT-OFF* */
 #define _(N, i, n, s) \
-  u16 busy_##n##_ports; \
-  u16 * busy_##n##_ports_per_thread; \
+  u32 busy_##n##_ports; \
+  u32 * busy_##n##_ports_per_thread; \
   u32 busy_##n##_port_refcounts[65535];
   foreach_nat_protocol
 #undef _