aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorJasvinder Singh <jasvinder.singh@intel.com>2016-11-12 11:49:10 +0000
committerDave Barach <openvpp@barachs.net>2016-11-15 13:56:08 +0000
commit51f80fc0c2c8ec6efd7d54701e861359ac76b443 (patch)
tree5f65343ee5af39d121f9765b3b005df5fd42563a /vnet
parentdac225e5e49e136e8700c7815d13d08ce52e9a76 (diff)
DPDK_HQoS: fix coverity warnings on uninitialized variables
Change-Id: I76437b76619a280a44e4def4d6c048eaf3926102 Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/devices/dpdk/cli.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/vnet/vnet/devices/dpdk/cli.c b/vnet/vnet/devices/dpdk/cli.c
index c8a1d067a1c..8f99b272ad8 100644
--- a/vnet/vnet/devices/dpdk/cli.c
+++ b/vnet/vnet/devices/dpdk/cli.c
@@ -1150,7 +1150,10 @@ set_dpdk_if_hqos_tctbl (vlib_main_t * vm, unformat_input_t * input,
vnet_hw_interface_t *hw;
dpdk_device_t *xd;
u32 hw_if_index = (u32) ~ 0;
- u32 entry, tc, queue, val, i;
+ u32 tc = (u32) ~ 0;
+ u32 queue = (u32) ~ 0;
+ u32 entry = (u32) ~ 0;
+ u32 val, i;
if (!unformat_user (input, unformat_line_input, line_input))
return 0;
@@ -1237,8 +1240,9 @@ set_dpdk_if_hqos_pktfield (vlib_main_t * vm, unformat_input_t * input,
int worker_thread_count = tr->count;
/* Packet field configuration */
- u64 mask;
- u32 id, offset;
+ u64 mask = (u64) ~ 0;
+ u32 id = (u32) ~ 0;
+ u32 offset = (u32) ~ 0;
/* HQoS params */
u32 n_subports_per_port, n_pipes_per_subport, tctbl_size;