aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuraj Linkeš <juraj.linkes@pantheon.tech>2021-07-30 10:11:12 +0200
committerPeter Mikus <pmikus@cisco.com>2021-08-04 06:24:43 +0000
commit42475f556d9e9b627446b68743356ac42f1a38aa (patch)
tree0e5e051f223e53a063023bfba9b5fa7fe8fecba8
parentffcb55e760b5a56d11a32bac2fcb87f3e92717e0 (diff)
FIX: init interfaces for rdma-core driver
We're only initializing interfaces for avf and af_xdp VPP drivers. This causes issues for the rdma-core driver when the underlying mlnx kernel driver is not bound. Fix this so that all interfaces are properly bound to the kernel driver required by rdma-core. Change-Id: I204309a9bb61b56b96497a287178f0b1efe2f362 Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech> (cherry picked from commit 324f01417f17a5347c102179f3d2277a77b116ce)
-rw-r--r--resources/libraries/python/InterfaceUtil.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/resources/libraries/python/InterfaceUtil.py b/resources/libraries/python/InterfaceUtil.py
index 59652c742c..c1c03aacb3 100644
--- a/resources/libraries/python/InterfaceUtil.py
+++ b/resources/libraries/python/InterfaceUtil.py
@@ -1792,6 +1792,10 @@ class InterfaceUtil:
vf_keys = InterfaceUtil.init_generic_interface(
node, ifc_key, numvfs=numvfs, osi_layer=osi_layer
)
+ elif driver == u"rdma-core":
+ vf_keys = InterfaceUtil.init_generic_interface(
+ node, ifc_key, numvfs=numvfs, osi_layer=osi_layer
+ )
return vf_keys
@staticmethod