]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3dee825950f889c4c4931c8e141bc10e62873ed9
treede8c28625958592b5015d30c0c2101d5f7508b07
parentbf261dc368e0242e4d28548681a96c7f0a5609db
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