History

IB/core: Add query_port_speed verb

Add new ibv_query_port_speed() verb to enable applications to query the effective bandwidth of a port. This verb is particularly useful when the speed is not a multiplication of IB speed and width where width is 2^n.

Or Har-Toov committed 11 months ago

Commit 51a07ce1 parent d4adeff4 files · +51 −0Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/rdma/ib_user_ioctl_cmds.h+6−0
@@ -73,6 +73,7 @@ enum uverbs_methods_device { · 72 unmodified lines
7373 UVERBS_METHOD_QUERY_CONTEXT,
7474 UVERBS_METHOD_QUERY_GID_TABLE,
7575 UVERBS_METHOD_QUERY_GID_ENTRY,
76+ UVERBS_METHOD_QUERY_PORT_SPEED,
7677 };
7778
7879 enum uverbs_attrs_invoke_write_cmd_attr_ids {
@@ -86,6 +87,11 @@ enum uverbs_attrs_query_port_cmd_attr_ids { · 7 unmodified lines
8687 UVERBS_ATTR_QUERY_PORT_RESP,
8788 };
8889
90+enum uverbs_attrs_query_port_speed_cmd_attr_ids {
91+ UVERBS_ATTR_QUERY_PORT_SPEED_PORT_NUM,
92+ UVERBS_ATTR_QUERY_PORT_SPEED_RESP,
93+};
94+
8995 enum uverbs_attrs_get_context_attr_ids {
9096 UVERBS_ATTR_GET_CONTEXT_NUM_COMP_VECTORS,
9197 UVERBS_ATTR_GET_CONTEXT_CORE_SUPPORT,