include/rdma/opa_addr.h: Fix an endianness issue
authorBart Van Assche <bart.vanassche@wdc.com>
Mon, 2 Jul 2018 17:06:51 +0000 (10:06 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 3 Jul 2018 20:11:34 +0000 (14:11 -0600)
commit4eefd62c17a9a5e7576207e84f3d2b4f73aba750
treea89998c8182291c75fc4e61af664340cfe13502c
parent1c77483e4c50339b0306572167ccbff6b55d051b
include/rdma/opa_addr.h: Fix an endianness issue

IB_MULTICAST_LID_BASE is defined as follows:

  #define IB_MULTICAST_LID_BASE   cpu_to_be16(0xC000)

Hence use be16_to_cpu() to convert it to CPU endianness. Compile-tested
only.

Fixes: af808ece5ce9 ("IB/SA: Check dlid before SA agent queries for ClassPortInfo")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Venkata Sandeep Dhanalakota <venkata.s.dhanalakota@intel.com>
Cc: Mike Marciniszyn <mike.marciniszyn@intel.com>
Cc: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/rdma/opa_addr.h