OSDN Git Service

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)
commita0c1b2a3508714281f604db818fa0cc83c2f9b6a
tree22388370391416e1535a45b1d0fe89205a7ade03
parentfad61ad4e755f5dd13c7702a87cd907207392534
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