diff options
author | Neale Ranns <nranns@cisco.com> | 2017-02-20 14:19:51 -0800 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-04-03 08:45:12 +0000 |
commit | fa5d19829759cef45cc34efe844d9471f5a1fc61 (patch) | |
tree | 5ee804ee3707f766bd5ab13bf3a1db54abecde2a /src/vnet/adj/adj.c | |
parent | 3e350af5d3e9744a4529a28dd293b2d4601442f7 (diff) |
Adjacency layout change and move to vnet/adj
Change-Id: I03195a86c69f84a301051c6b3ab64456bbf28645
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/adj/adj.c')
-rw-r--r-- | src/vnet/adj/adj.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vnet/adj/adj.c b/src/vnet/adj/adj.c index c1d036a0e8b..7cf9e9d081d 100644 --- a/src/vnet/adj/adj.c +++ b/src/vnet/adj/adj.c @@ -48,7 +48,7 @@ adj_alloc (fib_protocol_t proto) { ip_adjacency_t *adj; - pool_get(adj_pool, adj); + pool_get_aligned(adj_pool, adj, CLIB_CACHE_LINE_BYTES); adj_poison(adj); @@ -58,7 +58,6 @@ adj_alloc (fib_protocol_t proto) adj_get_index(adj)); adj->rewrite_header.sw_if_index = ~0; - adj->n_adj = 1; adj->lookup_next_index = 0; fib_node_init(&adj->ia_node, |