From 06d82260d9913dbb6be98aef00830ef4967b1f55 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Wed, 21 Oct 2020 12:43:40 +0200 Subject: vlib: print logs to stderr if interactive or nosyslog set If VPP is started in interactive mode, instead of sending logs to syslog server we print them directly to stderr. Output is colorized, but that can be turned off with unix { nocolor } Type: improvement Change-Id: I9a0f0803e4cba2849a6efa0b6a86b9614ed33ced Signed-off-by: Damjan Marion --- src/plugins/dpdk/cryptodev/cryptodev.c | 5 +---- src/plugins/dpdk/cryptodev/cryptodev_dp_api.c | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'src/plugins/dpdk/cryptodev') diff --git a/src/plugins/dpdk/cryptodev/cryptodev.c b/src/plugins/dpdk/cryptodev/cryptodev.c index 68a9126c3ae..f58b54634a7 100644 --- a/src/plugins/dpdk/cryptodev/cryptodev.c +++ b/src/plugins/dpdk/cryptodev/cryptodev.c @@ -1201,10 +1201,7 @@ cryptodev_get_session_sz (vlib_main_t *vm, uint32_t n_workers) u32 sess_data_sz = 0, i; if (rte_cryptodev_count () == 0) - { - clib_warning ("No cryptodev device available"); - return -1; - } + return -1; for (i = 0; i < rte_cryptodev_count (); i++) { diff --git a/src/plugins/dpdk/cryptodev/cryptodev_dp_api.c b/src/plugins/dpdk/cryptodev/cryptodev_dp_api.c index 8fcfa2edf48..682295b703c 100644 --- a/src/plugins/dpdk/cryptodev/cryptodev_dp_api.c +++ b/src/plugins/dpdk/cryptodev/cryptodev_dp_api.c @@ -1348,10 +1348,7 @@ cryptodev_get_session_sz (vlib_main_t *vm, u32 n_workers) u32 sess_data_sz = 0, i; if (rte_cryptodev_count () == 0) - { - clib_warning ("Failed"); - return -1; - } + return -1; for (i = 0; i < rte_cryptodev_count (); i++) { -- cgit 1.2.3-korg