diff mbox series

[rdma-core,3/3] pyverbs: Extend support of NDR rates

Message ID 20211229085502.167651-4-yishaih@nvidia.com (mailing list archive)
State Not Applicable
Headers show
Series Add NDR support | expand

Commit Message

Yishai Hadas Dec. 29, 2021, 8:55 a.m. UTC
From: Edward Srouji <edwards@nvidia.com>

Add new NDR speed definitions/enums to support the new data rates.

Signed-off-by: Edward Srouji <edwards@nvidia.com>
---
 pyverbs/device.pyx           | 3 ++-
 pyverbs/libibverbs_enums.pxd | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/pyverbs/device.pyx b/pyverbs/device.pyx
index 55d708e..6f68a68 100644
--- a/pyverbs/device.pyx
+++ b/pyverbs/device.pyx
@@ -1091,7 +1091,8 @@  def translate_port_cap_flags2(flags):
          e.IBV_PORT_VIRT_SUP: 'IBV_PORT_VIRT_SUP',
          e.IBV_PORT_SWITCH_PORT_STATE_TABLE_SUP: 'IBV_PORT_SWITCH_PORT_STATE_TABLE_SUP',
          e.IBV_PORT_LINK_WIDTH_2X_SUP: 'IBV_PORT_LINK_WIDTH_2X_SUP',
-         e.IBV_PORT_LINK_SPEED_HDR_SUP: 'IBV_PORT_LINK_SPEED_HDR_SUP'}
+         e.IBV_PORT_LINK_SPEED_HDR_SUP: 'IBV_PORT_LINK_SPEED_HDR_SUP',
+         e.IBV_PORT_LINK_SPEED_NDR_SUP: 'IBV_PORT_LINK_SPEED_NDR_SUP'}
     return str_from_flags(flags, l)
 
 
diff --git a/pyverbs/libibverbs_enums.pxd b/pyverbs/libibverbs_enums.pxd
index 93a0f13..b3ea226 100644
--- a/pyverbs/libibverbs_enums.pxd
+++ b/pyverbs/libibverbs_enums.pxd
@@ -74,6 +74,7 @@  cdef extern from '<infiniband/verbs.h>':
         IBV_PORT_SWITCH_PORT_STATE_TABLE_SUP
         IBV_PORT_LINK_WIDTH_2X_SUP
         IBV_PORT_LINK_SPEED_HDR_SUP
+        IBV_PORT_LINK_SPEED_NDR_SUP
 
     cpdef enum ibv_mtu:
         IBV_MTU_256