Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
c5c788b
)
ethernet: fix coverity warning
55/26955/2
author
Dave Barach
<dave@barachs.net>
Fri, 8 May 2020 12:16:06 +0000
(08:16 -0400)
committer
Florin Coras
<florin.coras@gmail.com>
Fri, 8 May 2020 14:35:33 +0000
(14:35 +0000)
Type: fix
Ticket: VPP-1837
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I20daa023eed50f8b42e8dc2d17e47a54aa16ae31
src/vnet/ethernet/p2p_ethernet_api.c
patch
|
blob
|
history
diff --git
a/src/vnet/ethernet/p2p_ethernet_api.c
b/src/vnet/ethernet/p2p_ethernet_api.c
index
2c75a51
..
8321f8d
100644
(file)
--- a/
src/vnet/ethernet/p2p_ethernet_api.c
+++ b/
src/vnet/ethernet/p2p_ethernet_api.c
@@
-52,7
+52,7
@@
vl_api_p2p_ethernet_add_t_handler (vl_api_p2p_ethernet_add_t * mp)
u32 parent_if_index = htonl (mp->parent_if_index);
u32 sub_id = htonl (mp->subif_id);
- u32 p2pe_if_index;
+ u32 p2pe_if_index
= ~0
;
u8 remote_mac[6];
if (!vnet_sw_if_index_is_api_valid (parent_if_index))