Skip to content

Commit

Permalink
Nic: fix mana_ib kernel config entry
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgov committed Nov 13, 2024
1 parent 92e2a0c commit a0698b1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lisa/nic.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,8 @@ class ModuleInformation:
_device_module_map = {
"mlx5_core": ModuleInformation(["mlx5_ib"], "CONFIG_MLX5_CORE"),
"mlx4_core": ModuleInformation(["mlx4_en", "mlx4_ib"], "CONFIG_MLX4_CORE"),
"mana": ModuleInformation(
["mana", "mana_en", "mana_ib"], "CONFIG_MICROSOFT_MANA"
),
"mana": ModuleInformation(["mana"], "CONFIG_MICROSOFT_MANA"),
"mana_ib": ModuleInformation(["mana_ib"], "CONFIG_MANA_INFINIBAND"),
}

def __init__(self, node: "Node"):
Expand Down Expand Up @@ -455,6 +454,9 @@ def is_mana_device_present(self) -> bool:
def is_mana_driver_enabled(self) -> bool:
return self._node.tools[KernelConfig].is_enabled("CONFIG_MICROSOFT_MANA")

def is_mana_ib_driver_enabled(self) -> bool:
return self._node.tools[KernelConfig].is_enabled("CONFIG_MANA_INFINIBAND")

def _get_default_nic(self) -> None:
self.default_nic: str = ""
self.default_nic_route: str = ""
Expand Down

0 comments on commit a0698b1

Please sign in to comment.