OSDN Git Service

IB/{hfi1,qib}: Cleanup open coded sge sizing
authorMichael J. Ruhl <michael.j.ruhl@intel.com>
Thu, 24 Jan 2019 03:08:19 +0000 (19:08 -0800)
committerDoug Ledford <dledford@redhat.com>
Wed, 30 Jan 2019 19:22:32 +0000 (14:22 -0500)
commit87fc34b575fdb90994c6063541d79cd18b31b14d
tree6342aba95b4ca52e658f75b1c46a3114c2b6d67a
parented0bc2658e1b7c083fc7f49cc6b56ea66f5ed350
IB/{hfi1,qib}: Cleanup open coded sge sizing

Sge sizing is done in several places using an open coded method.

This can cause maintenance issues.  The open coded method is
encapsulated in a helper routine.  The helper was introduced with
commit:

1198fcea8a78 ("IB/hfi1, rdmavt: Move SGE state helper routines into
rdmavt")

Update all call sites that have the open coded path with the helper
routine.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/verbs.c
drivers/infiniband/hw/qib/qib_ud.c
drivers/infiniband/hw/qib/qib_verbs.c