linux/drivers/infiniband/hw/nes
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 RDMA/nes: Replace LRO with GRO 2016-02-29 17:11:57 -05:00
Makefile
nes_cm.c RDMA/nes: use designated initializers 2017-01-12 11:38:41 -05:00
nes_cm.h iw_nes: remove port mapper related code 2016-03-16 13:48:11 -04:00
nes_context.h RDMA/nes: Copyright update 2012-01-30 16:18:07 -08:00
nes_hw.c IB/nes: Remove debug prints after allocation failure 2016-12-03 13:12:52 -05:00
nes_hw.h RDMA/nes: Replace LRO with GRO 2016-02-29 17:11:57 -05:00
nes_mgt.c IB/nes: Remove debug prints after allocation failure 2016-12-03 13:12:52 -05:00
nes_mgt.h RDMA/nes: Copyright update 2012-01-30 16:18:07 -08:00
nes_nic.c Updates for 4.10 kernel merge window 2016-12-15 12:03:32 -08:00
nes_utils.c RDMA/nes: replace custom print_hex_dump() 2016-05-13 19:40:01 -04:00
nes_verbs.c IB: Replace ib_umem page_size by page_shift 2017-04-25 15:40:28 -04:00
nes_verbs.h RDMA/nes: Adding queue drain functions 2016-05-13 19:39:59 -04:00
nes.c Updates for 4.10 kernel merge window 2016-12-15 12:03:32 -08:00
nes.h drivers: add explicit interrupt.h includes 2017-03-30 11:05:34 -07:00