diff options
author | Damjan Marion <damarion@cisco.com> | 2019-06-17 20:25:54 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-05-19 19:05:56 +0000 |
commit | 2e212c2c727b1228f4a5c9b785a42c4a58c3f2d5 (patch) | |
tree | 3d9d13626b3b9850f9734a7e1ee1cdf5963f19f8 /src/plugins/avf/device.c | |
parent | fa3bd303779957c5af3350b1a51ceb8158e05282 (diff) |
avf: improve elogs
Change-Id: I6221e1a5924223865b3caf53590d3668965b564c
Type: fix
Fixes: b4ff07a
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/avf/device.c')
-rw-r--r-- | src/plugins/avf/device.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/avf/device.c b/src/plugins/avf/device.c index de470da9fbf..dbaf4a4a7f2 100644 --- a/src/plugins/avf/device.c +++ b/src/plugins/avf/device.c @@ -1614,7 +1614,10 @@ avf_create_if (vlib_main_t * vm, avf_create_if_args_t * args) ad->name = vec_dup (args->name); if (args->enable_elog) - ad->flags |= AVF_DEVICE_F_ELOG; + { + ad->flags |= AVF_DEVICE_F_ELOG; + avf_elog_init (); + } if ((error = vlib_pci_device_open (vm, &args->addr, avf_pci_device_ids, &h))) |