diff options
author | Deepak S <deepak.s@linux.intel.com> | 2018-06-29 06:53:01 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-06-29 06:53:01 +0000 |
commit | f9b2f62739b38b65195ff44e4a47ac310407ac49 (patch) | |
tree | 182e90f7bf46af24650412470731422443e04d36 /common/VIL/l2l3_stack/lib_arp.c | |
parent | 56d346c9b5faf21654b1a72eca53389c9dbd8add (diff) | |
parent | 552f5992678ad6a226e0c8216eafed9a795c96ee (diff) |
Merge "Temp Fix for vFW perf issue"
Diffstat (limited to 'common/VIL/l2l3_stack/lib_arp.c')
-rw-r--r-- | common/VIL/l2l3_stack/lib_arp.c | 10 |
1 files changed, 1 insertions, 9 deletions
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; } |