diff options
author | Shesha Sreenivasamurthy <shesha@cisco.com> | 2016-01-14 14:11:38 -0800 |
---|---|---|
committer | Shesha Sreenivasamurthy <shesha@cisco.com> | 2016-01-14 14:12:26 -0800 |
commit | 49be7f0b906be2d818f5b4631d1f7aec45f4566b (patch) | |
tree | a54f77883bbd745b08c4c89714cc92260a30e021 /vnet | |
parent | b1ee7bde52b2adae10335774521ca09d57e32a0a (diff) |
hw0 used without initialization in when DPDK is undefined
Change-Id: I0d044669dbd57c9a25a4d917c0e3ab8fda5808aa
Signed-off-by: Shesha Sreenivasamurthy <shesha@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r-- | vnet/vnet/l2/l2_output.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vnet/vnet/l2/l2_output.c b/vnet/vnet/l2/l2_output.c index 02862138..31287645 100644 --- a/vnet/vnet/l2/l2_output.c +++ b/vnet/vnet/l2/l2_output.c @@ -474,11 +474,12 @@ u32 l2output_create_output_node_mapping ( u32 next; // index of next graph node vnet_hw_interface_t *hw0; u32 *node; -#if DPDK > 0 - uword cpu_number; hw0 = vnet_get_sup_hw_interface (vnet_main, sw_if_index); +#if DPDK > 0 + uword cpu_number; + cpu_number = os_get_cpu_number(); if (cpu_number) |