]> git.openfabrics.org - ~shefty/libibverbs.git/commit
Add link_layer field port attribute
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 20 Jul 2011 19:37:24 +0000 (19:37 +0000)
committerRoland Dreier <roland@purestorage.com>
Tue, 26 Jul 2011 20:15:33 +0000 (13:15 -0700)
commite5df8c64df6877facc045608a25f4d4fecd5f2b0
tree387a883afca1a33e3801e8f637243a49d3ff7526
parenta24a54a1ed810270c7c798eff74b2e5e90442319
Add link_layer field port attribute

The new field has three possible values: IBV_LINK_LAYER_UNSPECIFIED,
IBV_LINK_LAYER_INFINIBAND, IBV_LINK_LAYER_ETHERNET.  It can be used by
applications to know the link layer used by the port, which can be
either InfiniBand or Ethernet.

The addition of the new field does not change the size of struct
ibv_port_attr due to alignment of the preceding fields.  Binary
compatibility between the library to applications is kept, since old
apps running over new library do not read this field, and new apps
running over old library will determine the link layer as unspecified
and hence take their IB code path.

The solution was suggested by Roland Dreier <roland@purestorage.com>
and Jason Gunthorpe <jgunthorpe@obsidianresearch.com>

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.co.il>
Signed-off-by: Eli Cohen <eli@mellanox.co.il>
include/infiniband/verbs.h
man/ibv_query_port.3