summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Simonart <xavier.simonart@intel.com>2019-02-07 14:02:42 +0100
committerXavier Simonart <xavier.simonart@intel.com>2019-02-07 14:02:42 +0100
commite4210b8daea3ac4094562005400df2987d727f71 (patch)
treea4d0403677627deb3dd81c36f73b82efff3c0a65
parent06d71cb8ceab4d531a29b09c589eeda7bd4e6311 (diff)
Fixed typo in setting up ARP timers
Change-Id: I5b550a42b27d697f77c4bafab890ba57279f8d13 Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
-rw-r--r--VNFs/DPPD-PROX/packet_utils.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/VNFs/DPPD-PROX/packet_utils.c b/VNFs/DPPD-PROX/packet_utils.c
index 06a9ba64..4ab7c9c9 100644
--- a/VNFs/DPPD-PROX/packet_utils.c
+++ b/VNFs/DPPD-PROX/packet_utils.c
@@ -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));