diff options
author | Damjan Marion <damarion@cisco.com> | 2018-03-05 20:08:28 +0100 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-03-05 20:02:41 +0000 |
commit | 88c062119b5e94ef19e02f007e38ee119b02218f (patch) | |
tree | 319e63d64e6217db698674e92ed5a18c1728a44e /src/vlib/physmem_funcs.h | |
parent | 3cf2d6403dd90083fe2c678c03565f6f483de9e3 (diff) |
physmem: keep only one physmem_main
We don't need per vlib_main physmem_main, so keep it separatelly instead
of trying to keep them in sync.
Change-Id: I0fbeecf4d9672d31af7a43c640a7d8f05dd6e46f
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/physmem_funcs.h')
-rw-r--r-- | src/vlib/physmem_funcs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vlib/physmem_funcs.h b/src/vlib/physmem_funcs.h index 0013c2f70cd..bff66aa5726 100644 --- a/src/vlib/physmem_funcs.h +++ b/src/vlib/physmem_funcs.h @@ -43,7 +43,7 @@ always_inline vlib_physmem_region_t * vlib_physmem_get_region (vlib_main_t * vm, u8 index) { - vlib_physmem_main_t *vpm = &vm->physmem_main; + vlib_physmem_main_t *vpm = &physmem_main; return pool_elt_at_index (vpm->regions, index); } @@ -129,7 +129,7 @@ always_inline u64 vlib_physmem_virtual_to_physical (vlib_main_t * vm, vlib_physmem_region_index_t idx, void *mem) { - vlib_physmem_main_t *vpm = &vm->physmem_main; + vlib_physmem_main_t *vpm = &physmem_main; vlib_physmem_region_t *pr = pool_elt_at_index (vpm->regions, idx); uword o = mem - pr->mem; return vlib_physmem_offset_to_physical (vm, idx, o); |