net/mlx4: use virt2memseg instead of iteration
authorAnatoly Burakov <anatoly.burakov@intel.com>
Wed, 11 Apr 2018 12:30:18 +0000 (13:30 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 11 Apr 2018 17:55:00 +0000 (19:55 +0200)
commitc2fe5823224ab5031e1cc63229047d7d3a418422
treef1447c5971f3c6083acb433d559e191fb2eb568b
parent29f3c9e55d96cbeebc39a78c0da4d8db560f7d5e
net/mlx4: use virt2memseg instead of iteration

Reduce dependency on internal details of EAL memory subsystem, and
simplify code.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Tested-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Tested-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Tested-by: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
drivers/net/mlx4/Makefile
drivers/net/mlx4/mlx4_mr.c