]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Support accessing SA in virtualized environment
authorEli Cohen <eli@mellanox.com>
Fri, 11 Mar 2016 20:58:37 +0000 (22:58 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 21 Mar 2016 20:34:06 +0000 (16:34 -0400)
commit901f9141fd8005b3a1561d3ad98b4b87b5e620d7
tree22388370391416e1535a45b1d0fe89205a7ade03
parent4e944213f7ef76e166ac5f6918fe8f7d2d9a31af
IB/core: Support accessing SA in virtualized environment

Per the ongoing standardisation process, when virtual HCAs are present
in a network, traffic is routed based on a destination GID. In order to
access the SA we use the well known SA GID.

We also add a GRH required boolean field to the port attributes which is
used to report to the verbs consumer whether this port is connected to a
virtual network. We use this field to realize whether we need to create
an address vector with GRH to access the subnet administrator. We clear
the port attributes struct before calling the hardware driver to make
sure the default remains that GRH is not required.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/sa_query.c
include/rdma/ib_verbs.h