Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DPDK MANA CentOS 7 changes #3373

Open
wants to merge 9 commits into
base: mcgov/dpdk-mana-merge
Choose a base branch
from
Prev Previous commit
Next Next commit
dpdk: check enable_{drivers,app} support
Signed-off-by: Pavel Boldin <pboldin@cloudlinux.com>
  • Loading branch information
paboldin committed Aug 10, 2024
commit 30a2987d1955e7f31b2e6dfca98e80a99b39b45a
20 changes: 15 additions & 5 deletions microsoft/testsuites/dpdk/dpdktestpmd.py
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@
from lisa.nic import NicInfo
from lisa.operating_system import Debian, Fedora, Suse, Ubuntu, Redhat
from lisa.tools import (
Cat,
Chmod,
Dmesg,
Echo,
@@ -794,11 +795,20 @@ def _install(self) -> bool:
# add mana driver to build if needed
if self.vf_helper.is_mana():
drivers_to_build += ",net/mana"
# shrink build
build_flags += [
f"-Denable_drivers={drivers_to_build}",
"-Denable_apps=app/test-pmd",
]

# shrink build, if supported
cat = node.tools[Cat]
meson_options_content = cat.run("meson_options.txt",
cwd=self.dpdk_path, shell=True).stdout
if "enable_drivers" in meson_options_content:
build_flags += [
f"-Denable_drivers={drivers_to_build}"
]

if "enable_apps" in meson_options_content:
build_flags += [
"-Denable_apps=app/test-pmd"
]

node.execute(
f"meson setup {' '.join(build_flags)} build",