糖尿病康复,内容丰富有趣,生活中的好帮手!
糖尿病康复 > 【verbs】ibv_query_port()

【verbs】ibv_query_port()

时间:2022-10-07 05:43:29

相关推荐

【verbs】ibv_query_port()

描述

ibv_query_port()返回RDMA设备上下文(context)的端口的属性。

这是struct ibv_port_attr的完整描述:

* supported, but not really relevant

Most of the port attributes, returned byibv_query_port(), aren't constant and may be changed, mainly by the SM (in InfiniBand), or by the Hardware. It is highly recommended avoiding saving the result of this query, or to flush them when a new SM (re)configures the subnet.

Parameters

Return Values

Examples

Query a port attributes:

show_port_attr.c

FAQs

I'm using iWarp/IBoE, do I need all of the values that ibv_query_port() returns?

No. Check the protocol columns, to understand which attributes are relevant for you.

I'm using IB, do I need all of the valuesthatibv_query_port() returns?

No. There are fields that you will use more often (such as state), some you may use when debugging problems (the counters) and some of them are informative for other services.

Calling every time toibv_query_port() when I need a port attribute takes time, can I cache some of the attributes?

Actually, yes. The attributes, which indicates the port supported attributes (such as supported table length and capabilities) won't change, but others, which are configured by the SM, state and counters may change.

In InfiniBand, if you want, you can cache the returned structure and query it only when an unaffiliated asynchronous event occurred (this will be discussed later on in other posts).

如果觉得《【verbs】ibv_query_port()》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。
相关阅读
12. RDMA之Verbs

12. RDMA之Verbs

2019-01-14

HD Verb Table

HD Verb Table

2022-07-02

短语动词(Phrasal Verb)

短语动词(Phrasal Verb)

2021-01-05

§ Transitive  Intransitive Verb

§ Transitive Intransitive Verb

2022-08-12