]> 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)
commitb252f78f00ee872e35e7ab1f746e8da107942f89
treed2932b6cf76ee643db5fe8a5e06f498300157a14
parentd8875ba0f89ad276c11cae340819613c61688929
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