summaryrefslogtreecommitdiffstats
path: root/src/vnet/hash
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2021-09-21 11:05:15 +0000
committerDamjan Marion <dmarion@me.com>2021-09-22 09:59:49 +0000
commitef356f57b54b948d990b293514f062aebf86da72 (patch)
tree03c579adaef60f06d75bf26b92bcfd9c5d13a324 /src/vnet/hash
parent6e4cfb506806a0e214a5498952c2587e128b4870 (diff)
hash: fix the initialization warning error on gcc-10
Type: fix Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: Ic7d99154def71cd06e8faa64180912e5b844424e
Diffstat (limited to 'src/vnet/hash')
-rw-r--r--src/vnet/hash/crc32_5tuple.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vnet/hash/crc32_5tuple.c b/src/vnet/hash/crc32_5tuple.c
index 69ee63a59df..29d92a96938 100644
--- a/src/vnet/hash/crc32_5tuple.c
+++ b/src/vnet/hash/crc32_5tuple.c
@@ -80,7 +80,7 @@ vnet_crc32c_5tuple_ip_func (void **p, u32 *hash, u32 n_packets)
while (n_left_from >= 8)
{
- crc32c_5tuple_key_t key[4];
+ crc32c_5tuple_key_t key[4] = {};
clib_prefetch_load (p[4]);
clib_prefetch_load (p[5]);
@@ -104,7 +104,7 @@ vnet_crc32c_5tuple_ip_func (void **p, u32 *hash, u32 n_packets)
while (n_left_from > 0)
{
- crc32c_5tuple_key_t key;
+ crc32c_5tuple_key_t key = {};
compute_ip_key (p[0], &key);
@@ -158,7 +158,7 @@ vnet_crc32c_5tuple_ethernet_func (void **p, u32 *hash, u32 n_packets)
while (n_left_from >= 8)
{
- crc32c_5tuple_key_t key[4];
+ crc32c_5tuple_key_t key[4] = {};
clib_prefetch_load (p[4]);
clib_prefetch_load (p[5]);
@@ -182,7 +182,7 @@ vnet_crc32c_5tuple_ethernet_func (void **p, u32 *hash, u32 n_packets)
while (n_left_from > 0)
{
- crc32c_5tuple_key_t key;
+ crc32c_5tuple_key_t key = {};
compute_ethernet_key (p[0], &key);