]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Use hard-coded 4K page size for RQ/SQ/CQ
authorAchiad Shochat <achiad@mellanox.com>
Wed, 29 Jul 2015 12:05:40 +0000 (15:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2015 06:04:46 +0000 (23:04 -0700)
commit12b5bd06697889311c82b80b31cae6b1ccb552ac
treed2932b6cf76ee643db5fe8a5e06f498300157a14
parentdc28d94e517e23ceebfe278123fff57d065d6182
net/mlx5e: Use hard-coded 4K page size for RQ/SQ/CQ

The page size of the device's RQ/SQ/CQ objects is defined in 4K
units regardless of the system pages size.
Thus using the Linux's PAGE_SHIFT macro yields wrong device
configuration in systems where PAGE_SHIFT!=12.

Signed-off-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c