summaryrefslogtreecommitdiffstats
path: root/include/rdma/opa_addr.h
diff options
context:
space:
mode:
authorDasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>2017-06-08 19:37:47 +0200
committerDoug Ledford <dledford@redhat.com>2017-08-08 20:50:25 +0200
commit582faf3150f57b8364ac9d2aa731d7368ada7a4b (patch)
tree948506df3db3b3850f829adb6220fe2feb81f58f /include/rdma/opa_addr.h
parentIB/mad: Change slid in RMPP recv from 16 to 32 bits (diff)
downloadlinux-582faf3150f57b8364ac9d2aa731d7368ada7a4b.tar.xz
linux-582faf3150f57b8364ac9d2aa731d7368ada7a4b.zip
IB/core: Change port_attr.lid size from 16 to 32 bits
lid field in struct ib_port_attr is increased to 32 bits. This enables core components to use larger LIDs if needed. The user ABI is unchanged and return 16 bit values when queried. Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Don Hiatt <don.hiatt@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/opa_addr.h')
-rw-r--r--include/rdma/opa_addr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/rdma/opa_addr.h b/include/rdma/opa_addr.h
index eace28f1555d..46d0567fffea 100644
--- a/include/rdma/opa_addr.h
+++ b/include/rdma/opa_addr.h
@@ -50,7 +50,8 @@
#define OPA_SPECIAL_OUI (0x00066AULL)
#define OPA_MAKE_ID(x) (cpu_to_be64(OPA_SPECIAL_OUI << 40 | (x)))
-
+#define OPA_TO_IB_UCAST_LID(x) (((x) >= be16_to_cpu(IB_MULTICAST_LID_BASE)) \
+ ? 0 : x)
/**
* ib_is_opa_gid: Returns true if the top 24 bits of the gid
* contains the OPA_STL_OUI identifier. This identifies that