Fixed typo in setting up ARP timers 89/66889/1
authorXavier Simonart <xavier.simonart@intel.com>
Thu, 7 Feb 2019 13:02:42 +0000 (14:02 +0100)
committerXavier Simonart <xavier.simonart@intel.com>
Thu, 7 Feb 2019 13:02:42 +0000 (14:02 +0100)
Change-Id: I5b550a42b27d697f77c4bafab890ba57279f8d13
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
VNFs/DPPD-PROX/packet_utils.c

index 06a9ba6..4ab7c9c 100644 (file)
@@ -183,7 +183,6 @@ int write_dst_mac(struct task_base *tbase, struct rte_mbuf *mbuf, uint32_t *ip_d
                        } else if (tsc > l3->arp_table[ret].arp_update_time) {
                                // ARP not sent since a long time, send ARP
                                l3->arp_table[ret].arp_update_time = tsc + l3->arp_update_time * hz / 1000;
-                               l3->arp_table[ret].arp_update_time = tsc + hz;
                                if (tsc < l3->arp_table[ret].arp_timeout) {
                                        // MAC still valid => send also MBUF
                                        memcpy(mac, &l3->arp_table[ret].mac, sizeof(struct ether_addr));