]> git.baikalelectronics.ru Git - kernel.git/commit
mlx5: Use enum to indicate adapter page size
authorEli Cohen <eli@dev.mellanox.co.il>
Thu, 24 Oct 2013 09:01:03 +0000 (12:01 +0300)
committerRoland Dreier <roland@purestorage.com>
Fri, 8 Nov 2013 22:43:01 +0000 (14:43 -0800)
commitc3cee5cba15ccc1640c8175343fee4974786da09
tree7f2e6dfe67f82b37c17e83a73dd5f00751a47505
parentcd730953ab6271287c622135ec9c5aaa8e9dab1d
mlx5: Use enum to indicate adapter page size

The Connect-IB adapter has an inherent page size which equals 4K.
Define an new enum that equals the page shift and use it instead of
using the value 12 throughout the code.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx5/cq.c
drivers/infiniband/hw/mlx5/qp.c
drivers/infiniband/hw/mlx5/srq.c
drivers/net/ethernet/mellanox/mlx5/core/eq.c
include/linux/mlx5/device.h