diff options
author | Neale Ranns <neale.ranns@cisco.com> | 2018-08-29 10:23:58 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-08-30 17:43:48 +0000 |
commit | c8352bc43dfa02707e8806e1ae5b310bbdb4d302 (patch) | |
tree | 2db2f1a8772869ad350f53fbb04a124d8f71fe70 /src/vnet/ip/ip4.h | |
parent | 2ce8bd9621902b8078fdcd9a95fd366f24d56ab3 (diff) |
Refactor the ARP throttle into a common type so it can be reused
Change-Id: Ic7f7af983d5b6d756748023aa0c650f53e9285cf
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vnet/ip/ip4.h')
-rw-r--r-- | src/vnet/ip/ip4.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vnet/ip/ip4.h b/src/vnet/ip/ip4.h index e3cbe27dd89..9cb54bdfc41 100644 --- a/src/vnet/ip/ip4.h +++ b/src/vnet/ip/ip4.h @@ -45,6 +45,7 @@ #include <vnet/buffer.h> #include <vnet/feature/feature.h> #include <vnet/ip/icmp46_packet.h> +#include <vnet/util/throttle.h> typedef struct ip4_mfib_t { @@ -156,9 +157,7 @@ typedef struct ip4_main_t void *mtrie_mheap; /** ARP throttling */ - uword **arp_throttle_bitmaps; - u32 *arp_throttle_seeds; - f64 *arp_throttle_last_seed_change_time; + throttle_t arp_throttle; } ip4_main_t; |