From 0b9315e16642bc554427d47f20ee9ba8590fe625 Mon Sep 17 00:00:00 2001 From: Deepak S Date: Sun, 3 Jun 2018 03:36:25 +0530 Subject: Temp Fix for vFW perf issue Change-Id: I324fcac7a65c0d221d5d422f419deb9c0f864172 Signed-off-by: Deepak S --- common/VIL/l2l3_stack/lib_arp.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'common/VIL/l2l3_stack/lib_arp.c') diff --git a/common/VIL/l2l3_stack/lib_arp.c b/common/VIL/l2l3_stack/lib_arp.c index d59f4b79..9ea57d77 100644 --- a/common/VIL/l2l3_stack/lib_arp.c +++ b/common/VIL/l2l3_stack/lib_arp.c @@ -294,20 +294,12 @@ struct arp_entry_data *get_dest_mac_addr_ipv4(const uint32_t nhip, uint32_t phy_port, struct ether_addr *hw_addr) { struct arp_entry_data *ret_arp_data = NULL; - struct ether_addr *x; uint8_t index; /* as part of optimization we store mac address in cache * & thus can be sent without having to retrieve */ - if (arp_cache_dest_mac_present(phy_port)) { - x = get_local_cache_hw_addr(phy_port, nhip); - if (!x) { - printf("local copy of address not stored\n"); - return NULL; - } - - ether_addr_copy(x, hw_addr); + if (likely(arp_cache_dest_mac_present(phy_port))) { return &arp_entry_data_default; } -- cgit 1.2.3-korg