From 324f01417f17a5347c102179f3d2277a77b116ce Mon Sep 17 00:00:00 2001 From: Juraj Linkeš Date: Fri, 30 Jul 2021 10:11:12 +0200 Subject: FIX: init interfaces for rdma-core driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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š --- resources/libraries/python/InterfaceUtil.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'resources/libraries') diff --git a/resources/libraries/python/InterfaceUtil.py b/resources/libraries/python/InterfaceUtil.py index 6703e6a910..af34c64501 100644 --- a/resources/libraries/python/InterfaceUtil.py +++ b/resources/libraries/python/InterfaceUtil.py @@ -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 -- cgit 1.2.3-korg