FIX: init interfaces for rdma-core driver 10/33310/3
authorJuraj Linkeš <juraj.linkes@pantheon.tech>
Fri, 30 Jul 2021 08:11:12 +0000 (10:11 +0200)
committerPeter Mikus <pmikus@cisco.com>
Mon, 2 Aug 2021 07:03:46 +0000 (07:03 +0000)
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>
resources/libraries/python/InterfaceUtil.py

index 6703e6a..af34c64 100644 (file)
@@ -1791,6 +1791,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