diff options
author | Damjan Marion <damarion@cisco.com> | 2022-01-04 20:15:59 +0100 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2022-01-05 10:42:58 +0000 |
commit | 70e808b1bfc25d1664ddb917457040b419e123c8 (patch) | |
tree | b5d34b718052c905a91ac77656de8287d5c69f0a /src/plugins/dpdk/device/format.c | |
parent | 7dc6f7fb497e9c9eac96057b2528fb072225a809 (diff) |
dpdk: remove "convenience" vars
It is actually longer and slower...
Type: refactor
Change-Id: I0f126d4cdb13ecc60a2d370409f23820d7f7eb72
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/dpdk/device/format.c')
-rw-r--r-- | src/plugins/dpdk/device/format.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/dpdk/device/format.c b/src/plugins/dpdk/device/format.c index eb98730113d..430ab392594 100644 --- a/src/plugins/dpdk/device/format.c +++ b/src/plugins/dpdk/device/format.c @@ -555,9 +555,10 @@ format_dpdk_device (u8 * s, va_list * args) u32 dev_instance = va_arg (*args, u32); int verbose = va_arg (*args, int); dpdk_main_t *dm = &dpdk_main; + vlib_main_t *vm = vlib_get_main (); dpdk_device_t *xd = vec_elt_at_index (dm->devices, dev_instance); u32 indent = format_get_indent (s); - f64 now = vlib_time_now (dm->vlib_main); + f64 now = vlib_time_now (vm); struct rte_eth_dev_info di; struct rte_eth_burst_mode mode; |