mlx: use aligned memory to register regions
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Thu, 3 Mar 2016 14:27:17 +0000 (15:27 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 17:52:17 +0000 (18:52 +0100)
commit0dc02cca8b40b5b5190c2679058672a65ab7218d
tree7cf1031c960277a8962592ed8fe31b44f95085b4
parenta859e8a904bd0798e456d8afd7f60b8020a8cefc
mlx: use aligned memory to register regions

The first and last memory pool elements are usually cache-aligned but not
page-aligned, particularly when using huge pages.

Hardware performance can be improved significantly by registering memory
regions starting and ending on page boundaries.

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4.c
drivers/net/mlx5/mlx5_rxq.c
drivers/net/mlx5/mlx5_rxtx.c
drivers/net/mlx5/mlx5_rxtx.h