Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Thread-safe ARP / ND throttling
[vpp.git]
/
src
/
vnet
/
ip
/
ip4.h
diff --git
a/src/vnet/ip/ip4.h
b/src/vnet/ip/ip4.h
index
fcef559
..
e3cbe27
100644
(file)
--- a/
src/vnet/ip/ip4.h
+++ b/
src/vnet/ip/ip4.h
@@
-154,8
+154,16
@@
typedef struct ip4_main_t
/** The memory heap for the mtries */
void *mtrie_mheap;
/** The memory heap for the mtries */
void *mtrie_mheap;
+
+ /** ARP throttling */
+ uword **arp_throttle_bitmaps;
+ u32 *arp_throttle_seeds;
+ f64 *arp_throttle_last_seed_change_time;
+
} ip4_main_t;
} ip4_main_t;
+#define ARP_THROTTLE_BITS (512)
+
/** Global ip4 main structure. */
extern ip4_main_t ip4_main;
/** Global ip4 main structure. */
extern ip4_main_t ip4_main;