summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/packet_utils.h
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2019-02-07 10:38:20 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-02-07 10:38:20 +0000
commitc32ac3003b7c109c6e7cb3f1018ea99821989bf8 (patch)
treee2685afba912804e770923d8c29c79947b146633 /VNFs/DPPD-PROX/packet_utils.h
parent2aa21bfc505f582b11754c3086685a2fa355fee2 (diff)
parentfd72a6505e18c66a31843708bb69a41739b97a84 (diff)
Merge "Add support for configurable arp timers in L3 mode"
Diffstat (limited to 'VNFs/DPPD-PROX/packet_utils.h')
-rw-r--r--VNFs/DPPD-PROX/packet_utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/packet_utils.h b/VNFs/DPPD-PROX/packet_utils.h
index 74a3f60e..cb4dc913 100644
--- a/VNFs/DPPD-PROX/packet_utils.h
+++ b/VNFs/DPPD-PROX/packet_utils.h
@@ -33,6 +33,8 @@ enum {
SEND_ARP,
DROP_MBUF
};
+#define DEFAULT_ARP_TIMEOUT (1000 * 3600 * 24 * 15) // ~15 days = disabled by default
+#define DEFAULT_ARP_UPDATE_TIME (1000) // 1 second
struct task_base;
struct task_args;
@@ -50,6 +52,8 @@ struct l3_base {
uint8_t reachable_port_id;
uint8_t core_id;
uint8_t task_id;
+ uint32_t arp_timeout;
+ uint32_t arp_update_time;
struct arp_table gw;
struct arp_table optimized_arp_table[4];
struct rte_hash *ip_hash;