FIX: init interfaces for rdma-core driver 85/33285/1
authorJuraj Linkeš <juraj.linkes@pantheon.tech>
Fri, 30 Jul 2021 08:11:12 +0000 (10:11 +0200)
committerPeter Mikus <pmikus@cisco.com>
Wed, 4 Aug 2021 06:24:43 +0000 (06:24 +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>
(cherry picked from commit 324f01417f17a5347c102179f3d2277a77b116ce)

resources/libraries/python/InterfaceUtil.py

index 59652c7..c1c03aa 100644 (file)
@@ -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