IB/core: Simplify sa_path_set_[sd]lid() calls
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 6 Oct 2017 20:06:17 +0000 (13:06 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 10 Oct 2017 14:49:44 +0000 (10:49 -0400)
commit9d18717790c43c904fabe9da7a4c6b2ebed2c4d8
treede8c28625958592b5015d30c0c2101d5f7508b07
parent9cc12ad6db55d7d902260fead28a91710dd5dbe5
IB/core: Simplify sa_path_set_[sd]lid() calls

Instead of making every caller convert the second argument of
sa_path_set_slid() and sa_path_set_dlid() to big endian format,
make these two functions accept LIDs in CPU endian format.
This patch does not change any functionality.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Sean Hefty <sean.hefty@intel.com>
Cc: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Cc: Don Hiatt <don.hiatt@intel.com>
Cc: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cm.c
drivers/infiniband/core/uverbs_marshall.c
drivers/infiniband/ulp/srp/ib_srp.c
include/rdma/ib_sa.h