summaryrefslogtreecommitdiffstats
path: root/src/plugins/avf/device.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-06-17 20:25:54 +0200
committerFlorin Coras <florin.coras@gmail.com>2021-05-19 19:05:56 +0000
commit2e212c2c727b1228f4a5c9b785a42c4a58c3f2d5 (patch)
tree3d9d13626b3b9850f9734a7e1ee1cdf5963f19f8 /src/plugins/avf/device.c
parentfa3bd303779957c5af3350b1a51ceb8158e05282 (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.c5
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)))