IB/core: Add link layer property to ports
authorEli Cohen <eli@mellanox.co.il>
Tue, 28 Sep 2010 00:51:10 +0000 (17:51 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 28 Sep 2010 00:51:10 +0000 (17:51 -0700)
commita3f5adaf491490089215f863a61b9422fae902f8
treeab4bd1d3875a220cf752bd1a9fd233a1c14bd86e
parent252a52aa4fa22a668f019e55b3aac3ff71ec1c29
IB/core: Add link layer property to ports

This patch allows ports to have different link layers:
IB_LINK_LAYER_INFINIBAND or IB_LINK_LAYER_ETHERNET.  This is required
for adding IBoE (InfiniBand-over-Ethernet, aka RoCE) support.  For
devices that do not provide an implementation for querying the link
layer property of a port, we return a default value based on the
transport: RMA_TRANSPORT_IB nodes will return IB_LINK_LAYER_INFINIBAND
and RDMA_TRANSPORT_IWARP nodes will return IB_LINK_LAYER_ETHERNET.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/verbs.c
include/rdma/ib_verbs.h