diff options
author | Eli Cohen <eli@mellanox.com> | 2016-03-11 22:58:36 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-03-21 16:34:06 -0400 |
commit | fad61ad4e755f5dd13c7702a87cd907207392534 (patch) | |
tree | a8f2df35c806be02cc3353abab8b6df956e83654 /include/rdma/ib_verbs.h | |
parent | d603c809ef91fa2d211bde5e95be417847410379 (diff) | |
download | talos-op-linux-fad61ad4e755f5dd13c7702a87cd907207392534.tar.gz talos-op-linux-fad61ad4e755f5dd13c7702a87cd907207392534.zip |
IB/core: Add subnet prefix to port info
The subnet prefix is a part of the port_info MAD returned and should be
available at the ib_port_attr struct. We define it here and provide a
default implementation in case the hardware driver does not provide one.
The subnet prefix is required when creating the address vector to access
the SA in networks where GRH must be used.
Signed-off-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/ib_verbs.h')
-rw-r--r-- | include/rdma/ib_verbs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index c9b62344d22e..7239b9a4499e 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -490,6 +490,7 @@ union rdma_protocol_stats { | RDMA_CORE_CAP_OPA_MAD) struct ib_port_attr { + u64 subnet_prefix; enum ib_port_state state; enum ib_mtu max_mtu; enum ib_mtu active_mtu; |