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.
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -73,6 +73,7 @@ enum uverbs_methods_device { · 72 unmodified lines | ||
| 73 | 73 | UVERBS_METHOD_QUERY_CONTEXT, |
| 74 | 74 | UVERBS_METHOD_QUERY_GID_TABLE, |
| 75 | 75 | UVERBS_METHOD_QUERY_GID_ENTRY, |
| 76 | + UVERBS_METHOD_QUERY_PORT_SPEED, | |
| 76 | 77 | }; |
| 77 | 78 | |
| 78 | 79 | enum uverbs_attrs_invoke_write_cmd_attr_ids { |
| @@ -86,6 +87,11 @@ enum uverbs_attrs_query_port_cmd_attr_ids { · 7 unmodified lines | ||
| 86 | 87 | UVERBS_ATTR_QUERY_PORT_RESP, |
| 87 | 88 | }; |
| 88 | 89 | |
| 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 | + | |
| 89 | 95 | enum uverbs_attrs_get_context_attr_ids { |
| 90 | 96 | UVERBS_ATTR_GET_CONTEXT_NUM_COMP_VECTORS, |
| 91 | 97 | UVERBS_ATTR_GET_CONTEXT_CORE_SUPPORT, |