common/mlx5: refactor memory management
authorVu Pham <vuhuong@mellanox.com>
Mon, 13 Apr 2020 21:17:48 +0000 (14:17 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:08 +0000 (13:57 +0200)
commitb8dc6b0e29d86bfda4b635aa6e12469728c46e63
tree21994e71f117ff6327b1002dafddf299e16697cb
parenta4de9586acb845cb85309cbf16fc974b8a985453
common/mlx5: refactor memory management

Refactor common memory btree and cache management to common driver.
Replace some input parameters of MR APIs to more common data structure
like PD, port_id, share_cache,... so that multiple PMD drivers can
use those MR APIs.

Modify mlx5 net pmd driver to use MR management APIs from common driver.

Signed-off-by: Vu Pham <vuhuong@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
15 files changed:
drivers/common/mlx5/Makefile
drivers/common/mlx5/meson.build
drivers/common/mlx5/mlx5_common_mr.c [new file with mode: 0644]
drivers/common/mlx5/mlx5_common_mr.h [new file with mode: 0644]
drivers/common/mlx5/rte_common_mlx5_version.map
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_mp.c
drivers/net/mlx5/mlx5_mr.c
drivers/net/mlx5/mlx5_mr.h
drivers/net/mlx5/mlx5_rxtx.c
drivers/net/mlx5/mlx5_rxtx.h
drivers/net/mlx5/mlx5_rxtx_vec.h
drivers/net/mlx5/mlx5_trigger.c
drivers/net/mlx5/mlx5_txq.c