net/mlx5: refactor external memory registration
authorShahaf Shuler <shahafs@mellanox.com>
Sun, 10 Mar 2019 08:28:01 +0000 (10:28 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 30 Mar 2019 15:48:57 +0000 (16:48 +0100)
commit0f132546a8743d7629924754390229306e0bd550
treef0e6aff9c5e013afd25214f69765f0d1c1b0fb96
parentc33a675b6276306db3d06e0e5b0f128ec994669c
net/mlx5: refactor external memory registration

Move the memory region creation to a separate function to
prepare the ground for the reuse of it on the PCI driver map and unmap
functions.

Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_mr.c