1
0
Fork 0
alistair23-linux/drivers/infiniband/hw/i40iw
Artemy Kovalyov 3e7e1193e2 IB: Replace ib_umem page_size by page_shift
Size of pages are held by struct ib_umem in page_size field.

It is better to store it as an exponent, because page size by nature
is always power-of-two and used as a factor, divisor or ilog2's argument.

The conversion of page_size to be page_shift allows to have portable
code and avoid following error while compiling on ARM:

  ERROR: "__aeabi_uldivmod" [drivers/infiniband/core/ib_core.ko] undefined!

CC: Selvin Xavier <selvin.xavier@broadcom.com>
CC: Steve Wise <swise@chelsio.com>
CC: Lijun Ou <oulijun@huawei.com>
CC: Shiraz Saleem <shiraz.saleem@intel.com>
CC: Adit Ranadive <aditr@vmware.com>
CC: Dennis Dalessandro <dennis.dalessandro@intel.com>
CC: Ram Amrani <Ram.Amrani@Cavium.com>
Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Acked-by: Ram Amrani <Ram.Amrani@cavium.com>
Acked-by: Shiraz Saleem <shiraz.saleem@intel.com>
Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
Acked-by: Adit Ranadive <aditr@vmware.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-04-25 15:40:28 -04:00
..
Kconfig i40iw: Kconfig and Makefile for iwarp module 2016-03-16 13:50:54 -04:00
Makefile i40iw: Kconfig and Makefile for iwarp module 2016-03-16 13:50:54 -04:00
i40iw.h i40iw: Reorganize structures to align with HW capabilities 2016-12-12 17:20:29 -05:00
i40iw_cm.c Merge branches 'chelsio', 'debug-cleanup', 'hns' and 'i40iw' into merge-test 2016-12-14 14:43:14 -05:00
i40iw_cm.h i40iw: Set TOS field in IP header 2016-12-05 16:09:42 -05:00
i40iw_ctrl.c i40iw: Set maj_err and min_err in i40iw_sc_cqp_create 2017-01-24 16:20:37 -05:00
i40iw_d.h i40iw: Reorganize structures to align with HW capabilities 2016-12-12 17:20:29 -05:00
i40iw_hmc.c i40iw: add hmc resource files 2016-02-29 17:10:53 -05:00
i40iw_hmc.h i40iw: add hmc resource files 2016-02-29 17:10:53 -05:00
i40iw_hw.c i40iw: Reorganize structures to align with HW capabilities 2016-12-12 17:20:29 -05:00
i40iw_main.c Merge branches 'chelsio', 'debug-cleanup', 'hns' and 'i40iw' into merge-test 2016-12-14 14:43:14 -05:00
i40iw_osdep.h i40iw: Reorganize structures to align with HW capabilities 2016-12-12 17:20:29 -05:00
i40iw_p.h i40iw: Reorganize structures to align with HW capabilities 2016-12-12 17:20:29 -05:00
i40iw_pble.c i40iw: Code cleanup, remove check of PBLE pages 2016-12-05 16:09:44 -05:00
i40iw_pble.h i40iw: add pble resource files 2016-02-29 17:10:53 -05:00
i40iw_puda.c i40iw: Set 128B as the only supported RQ WQE size 2016-12-22 11:36:12 -05:00
i40iw_puda.h i40iw: Reorganize structures to align with HW capabilities 2016-12-12 17:20:29 -05:00
i40iw_register.h i40iw: add X722 register file 2016-03-16 13:50:53 -04:00
i40iw_status.h RDMA/i40iw: Fix for checking if the QP is destroyed 2016-04-28 16:32:55 -04:00
i40iw_type.h i40iw: Set 128B as the only supported RQ WQE size 2016-12-22 11:36:12 -05:00
i40iw_ucontext.h i40iw: Set 128B as the only supported RQ WQE size 2016-12-22 11:36:12 -05:00
i40iw_uk.c RDMA/i40iw: use designated initializers 2017-01-12 11:38:41 -05:00
i40iw_user.h i40iw: Set 128B as the only supported RQ WQE size 2016-12-22 11:36:12 -05:00
i40iw_utils.c i40iw: Receive netdev events post INET_NOTIFIER state 2017-03-24 16:23:29 -04:00
i40iw_verbs.c IB: Replace ib_umem page_size by page_shift 2017-04-25 15:40:28 -04:00
i40iw_verbs.h i40iw: Set 128B as the only supported RQ WQE size 2016-12-22 11:36:12 -05:00
i40iw_vf.c i40iw: constify i40iw_vf_cqp_ops structure 2016-05-13 13:47:07 -04:00
i40iw_vf.h i40iw: constify i40iw_vf_cqp_ops structure 2016-05-13 13:47:07 -04:00
i40iw_virtchnl.c i40iw: Reorganize structures to align with HW capabilities 2016-12-12 17:20:29 -05:00
i40iw_virtchnl.h i40iw: virtual channel handling files 2016-03-16 13:50:53 -04:00