]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit68cdf5d6e91068c98d6091b193dc7a5ab7dcf5eb
treed2932b6cf76ee643db5fe8a5e06f498300157a14
parentc928ed55171b3aa5e14a9474ffe60f31590b89ff
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