IB/hfi1, rdmavt: Update copy_sge to use boolean arguments
authorBrian Welty <brian.welty@intel.com>
Wed, 8 Feb 2017 13:27:31 +0000 (05:27 -0800)
committerDoug Ledford <dledford@redhat.com>
Sun, 19 Feb 2017 14:18:41 +0000 (09:18 -0500)
commit0128fceaf934dbfca4537d4eb8c3a5f7e84562c8
tree08988e2aed15cc813361d12954c0bb5307a55472
parentb4238e70579cb1edf32c56ee512f84cbad01ac27
IB/hfi1, rdmavt: Update copy_sge to use boolean arguments

Convert copy_sge and related SGE state functions to use boolean.
For determining if QP is in user mode, add helper function in rdmavt_qp.h.
This is used to determine if QP needs the last byte ordering.
While here, change rvt_pd.user to a boolean.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Brian Welty <brian.welty@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/rc.c
drivers/infiniband/hw/hfi1/ruc.c
drivers/infiniband/hw/hfi1/uc.c
drivers/infiniband/hw/hfi1/ud.c
drivers/infiniband/hw/hfi1/verbs.c
drivers/infiniband/hw/hfi1/verbs.h
drivers/infiniband/sw/rdmavt/pd.c
include/rdma/rdma_vt.h
include/rdma/rdmavt_qp.h