This series from Michael exposes the new field CapabilityMask2 defined by IBTA specification via the ibv_query_port() verb as port_cap_flags2. As an outcome of it, the new links speed (HDR) is exposed. This come together with new 2x link width, new rates are added to support various combinations of speeds and widths. The matching kernel part was already accepted. PR was sent: https://github.com/linux-rdma/rdma-core/pull/451 Yishai Jason Gunthorpe (1): verbs: Make ibv_query_port extendable Michael Guralnik (4): verbs: Migrate ibv_cmd_query_port to run over ioctl verbs: Expose port_cap_mask2 in ibv_query_port verbs: Added new rates derived from 2x and HDR support mlx5: Add translation of new IB rates to mlx5 rates Yishai Hadas (1): Update kernel headers kernel-headers/rdma/ib_user_ioctl_cmds.h | 7 +++ kernel-headers/rdma/ib_user_ioctl_verbs.h | 7 +++ kernel-headers/rdma/rdma_netlink.h | 3 + libibverbs/CMakeLists.txt | 1 + libibverbs/cmd.c | 41 ------------ libibverbs/cmd_device.c | 101 ++++++++++++++++++++++++++++++ libibverbs/device.c | 8 +++ libibverbs/dummy_ops.c | 2 +- libibverbs/examples/devinfo.c | 3 + libibverbs/ibverbs.h | 2 + libibverbs/man/ibv_query_port.3 | 1 + libibverbs/verbs.c | 69 +++++++++++++++++++- libibverbs/verbs.h | 44 ++++++++++--- providers/bnxt_re/verbs.c | 1 - providers/mlx5/verbs.c | 4 ++ 15 files changed, 242 insertions(+), 52 deletions(-) create mode 100644 libibverbs/cmd_device.c -- 1.8.3.1