[V3,1/5] tests/l3fwd_base:use API to set dpdk config when use meson

Message ID 20200911161656.30238-2-weix.ling@intel.com (mailing list archive)
State Superseded, archived
Delegated to: LIjuan Tu
Headers
Series use API to set dpdk config when use meson |

Commit Message

Ling, WeiX Sept. 11, 2020, 4:16 p.m. UTC
  use API to set dpdk config when use meson

Signed-off-by: lingwei <weix.ling@intel.com>
---
 tests/l3fwd_base.py | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/tests/l3fwd_base.py b/tests/l3fwd_base.py
index 1eccc0e..6f7af8a 100644
--- a/tests/l3fwd_base.py
+++ b/tests/l3fwd_base.py
@@ -548,6 +548,7 @@  class L3fwdBase(object):
                      "CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=n/"
                      "CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=y/' "
                      "./config/common_base"))
+                self.dut.set_build_options({'RTE_LIBRTE_I40E_16BYTE_RX_DESC': 'y'})
                 self.dut.build_install_dpdk(self.target)
 
     def __restore_compilation(self):
@@ -558,6 +559,7 @@  class L3fwdBase(object):
                      "CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=y/"
                      "CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=n/' "
                      "./config/common_base"))
+                self.dut.set_build_options({'RTE_LIBRTE_I40E_16BYTE_RX_DESC': 'n'})
                 self.dut.build_install_dpdk(self.target)
 
     def __preset_compilation(self):