From bcb03a50f7c16d7dc4a040d28d2f3e04a0d3ef80 Mon Sep 17 00:00:00 2001 From: Peter Mikus Date: Wed, 11 Apr 2018 09:28:50 +0200 Subject: Add more verbose DPDK logs Change-Id: I98a07fa88d4959ab05996e053c5c02ef9bda5039 Signed-off-by: Peter Mikus --- resources/libraries/python/VppConfigGenerator.py | 9 +++++++++ resources/libraries/robot/shared/default.robot | 1 + 2 files changed, 10 insertions(+) diff --git a/resources/libraries/python/VppConfigGenerator.py b/resources/libraries/python/VppConfigGenerator.py index f21f027ba4..88776fe3f1 100644 --- a/resources/libraries/python/VppConfigGenerator.py +++ b/resources/libraries/python/VppConfigGenerator.py @@ -281,6 +281,15 @@ class VppConfigGenerator(object): path = ['dpdk', 'dev default', 'num-tx-desc'] self.add_config_item(self._nodeconfig, value, path) + def add_dpdk_log_level(self, value): + """Add DPDK log-level configuration. + + :param value: Log level. + :type value: str + """ + path = ['dpdk', 'log-level'] + self.add_config_item(self._nodeconfig, value, path) + def add_dpdk_socketmem(self, value): """Add DPDK socket memory configuration. diff --git a/resources/libraries/robot/shared/default.robot b/resources/libraries/robot/shared/default.robot index e2b7344675..6f2334877c 100644 --- a/resources/libraries/robot/shared/default.robot +++ b/resources/libraries/robot/shared/default.robot @@ -125,6 +125,7 @@ | | | Run keyword | ${dut}.Add API segment API size | 1G | | | Run keyword | ${dut}.Add DPDK Socketmem | "1024,1024" | | | Run keyword | ${dut}.Add DPDK No Tx Checksum Offload +| | | Run keyword | ${dut}.Add DPDK Log Level | debug | | | Run keyword | ${dut}.Add Heapsize | "4G" | | | Run keyword | ${dut}.Add Plugin Disable | @{plugins_to_disable} | | | Run keyword | ${dut}.Add IP6 Hash Buckets | "2000000" -- cgit 1.2.3-korg