OSDN Git Service

IPoIB: use kvzalloc to allocate an array of bucket pointers
authorJan Dakinevich <jan.dakinevich@virtuozzo.com>
Mon, 9 Jul 2018 13:51:03 +0000 (16:51 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 23 Jul 2018 21:08:20 +0000 (15:08 -0600)
commit259e19145e1fa9bb9e502f625f7bce1a0c078fa0
tree43152cb90098db361a362250ad89be0c31a2f34a
parentc012691508f5fcc09b0a777fd1747f266093fe1b
IPoIB: use kvzalloc to allocate an array of bucket pointers

This table by default takes 32KiB which is 3rd memory order. Meanwhile,
this memory is not aimed for DMA operation and could be safely allocated
by vmalloc.

Signed-off-by: Jan Dakinevich <jan.dakinevich@virtuozzo.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c