[dpdk-dev] [PATCH v4 1/2] common/mlx5: refactor multi-process IPC handling codes to common driver

2020-04-13 Thread Vu Pham
Refactor common multi-process handling codes from net PMD to common driver. Using tuple mp_id{name, port_id} as standard input parameter for all multi-process IPC APIs instead of using rte_eth_dev. Modify net PMD to use multi-process APIs from common driver. Signed-off-by: Vu Pham --- drivers

[dpdk-dev] [PATCH v4 2/2] common/mlx5: refactor memory management codes

2020-04-13 Thread Vu Pham
. Signed-off-by: Vu Pham --- drivers/common/mlx5/Makefile|1 + drivers/common/mlx5/meson.build |1 + drivers/common/mlx5/mlx5_common_mr.c| 1108 + drivers/common/mlx5/mlx5_common_mr.h| 160 drivers/common

[dpdk-dev] [PATCH v4 0/2] refactor multi-process IPC and memory management codes to common driver

2020-04-13 Thread Vu Pham
on to refactor and move multi-process IPC APIs to mlx5 common driver and make it become the base commit, then refactor and move common MR codes to common driver in subsequent patch. Vu Pham (2): common/mlx5: refactor multi-process IPC handling codes to common driver common/mlx5: refactor m

[dpdk-dev] [PATCH v3 4/4] net/mlx5: modify net PMD to use common MR driver

2020-04-07 Thread Vu Pham
Modify mlx5 net pmd driver to use MR management APIs from common driver. Signed-off-by: Vu Pham --- drivers/common/mlx5/Makefile |1 + drivers/common/mlx5/meson.build |1 + drivers/net/mlx5/mlx5.c |4 +- drivers/net/mlx5/mlx5.h | 12 +- drivers/net/mlx5

[dpdk-dev] [PATCH v3 1/4] common/mlx5: refactor multi-process IPC handling codes to common driver

2020-04-07 Thread Vu Pham
Refactor common multi-process handling codes from net PMD to common driver. Using tuple mp_id{name, port_id} as standard input parameter for all multi-process IPC APIs instead of using rte_eth_dev. Signed-off-by: Vu Pham --- drivers/common/mlx5/mlx5_common_mp.c| 188

[dpdk-dev] [PATCH v3 3/4] common/mlx5: refactor memory management codes

2020-04-07 Thread Vu Pham
Refactor common memory btree and cache management to common driver. Replace some input parameters of MR APIs to more common datastructure like PD, port_id, share_cache,... so that muliptle PMD drivers can use those MR APIs. Signed-off-by: Vu Pham --- drivers/common/mlx5/mlx5_common_mr.c

[dpdk-dev] [PATCH v3 0/4] refactor multi-process IPC and memory management codes to common driver

2020-04-07 Thread Vu Pham
on to move multi-process IPC APIs to mlx5 common driver and make it become the base commit. Vu Pham (4): common/mlx5: refactor multi-process IPC handling codes to common driver net/mlx5: modify net PMD to use common multi-process APIs common/mlx5: refactor memory management codes net

[dpdk-dev] [PATCH v3 2/4] net/mlx5: modify net PMD to use common multi-process APIs

2020-04-07 Thread Vu Pham
Modify net PMD to use multi-process APIs from common driver. Signed-off-by: Vu Pham --- drivers/common/mlx5/Makefile| 3 +- drivers/common/mlx5/meson.build | 1 + drivers/net/mlx5/mlx5.c | 15 ++- drivers/net/mlx5/mlx5.h | 43 +--- drivers/net/mlx5/mlx5_mp.c

[dpdk-dev] [PATCH v2 3/4] common/mlx5: refactor memory management codes

2020-04-07 Thread Vu Pham
Refactor common memory btree and cache management to common driver. Replace some input parameters of MR APIs to more common datastructure like PD, port_id, share_cache,... so that muliptle PMD drivers can use those MR APIs. Signed-off-by: Vu Pham --- drivers/common/mlx5/mlx5_common_mr.c

[dpdk-dev] [PATCH v2 1/4] common/mlx5: refactor MP IPC handling codes to common driver

2020-04-07 Thread Vu Pham
Refactor common mp handling codes from net pmd to common driver. Using port_id as standard input parameter for all MP IPC APIs instead of using rte_eth_dev. Signed-off-by: Vu Pham --- drivers/common/mlx5/mlx5_common_mp.c| 188 drivers/common/mlx5

[dpdk-dev] [PATCH v2 0/4] refactor multi-process IPC and memory management codes to common driver

2020-04-07 Thread Vu Pham
on to move multi-process IPC APIs to mlx5 common driver and make it become the base commit. Vu Pham (4): common/mlx5: refactor MP IPC handling codes to common driver net/mlx5: modify net pmd to use common multi-process APIs common/mlx5: refactor memory management codes net/mlx5: modify net p

[dpdk-dev] [PATCH v2 4/4] net/mlx5: modify net pmd to use common MR driver

2020-04-07 Thread Vu Pham
Modify mlx5 net pmd driver to use MR managment APIs from common driver. Signed-off-by: Vu Pham --- drivers/common/mlx5/Makefile |1 + drivers/common/mlx5/meson.build |1 + drivers/net/mlx5/mlx5.c |4 +- drivers/net/mlx5/mlx5.h | 12 +- drivers/net/mlx5

[dpdk-dev] [PATCH v2 2/4] net/mlx5: modify net pmd to use common multi-process APIs

2020-04-07 Thread Vu Pham
Modify net pmd to use common Multi-Process APIs from common driver. Signed-off-by: Vu Pham --- drivers/common/mlx5/Makefile| 3 +- drivers/common/mlx5/meson.build | 1 + drivers/net/mlx5/mlx5.c | 15 ++- drivers/net/mlx5/mlx5.h | 43 +--- drivers/net/mlx5/mlx5_mp.c

[dpdk-dev] [PATCH 2/4] net/mlx5: modify net PMD to use common multi-process APIs

2020-04-02 Thread Vu Pham
From: Vu Pham Modify net PMD to use multi-process IPC APIs from common driver. Signed-off-by: Vu Pham Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/Makefile| 3 +- drivers/common/mlx5/meson.build | 1 + drivers/net/mlx5/mlx5.c | 15 ++- drivers/net/mlx5/mlx5.h

[dpdk-dev] [PATCH 4/4] net/mlx5: modify net PMD to use common memory management driver

2020-04-02 Thread Vu Pham
From: Vu Pham Modify mlx5 net PMD driver to use memory managment APIs from common driver. Signed-off-by: Vu Pham Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/Makefile |1 + drivers/common/mlx5/meson.build |1 + drivers/net/mlx5/mlx5.c |4 +- drivers/net

[dpdk-dev] [PATCH 0/4] refactor multi-process IPC and memory management codes to common driver

2020-04-02 Thread Vu Pham
From: Vu Pham Current mlx5 net PMD and future mlx5(regex,...) PMDs that run and share the same HCAs need to use common memory management driver. Memory management codes embeddedly use multi-process IPC for primary/secondary processes to register and sync on memory registrations MRs. That'

[dpdk-dev] [PATCH 3/4] common/mlx5: refactor memory management codes

2020-04-02 Thread Vu Pham
From: Vu Pham Refactor common memory btree and cache management to common driver. Replace some input parameters of MR APIs to more common datastructure like PD, port_id, share_cache,... so that muliptle PMD drivers can use those MR APIs. Signed-off-by: Vu Pham Acked-by: Viacheslav Ovsiienko

[dpdk-dev] [PATCH 1/4] common/mlx5: refactor multi-process IPC handling codes to common driver

2020-04-02 Thread Vu Pham
From: Vu Pham Refactor common multi-process handling codes from net PMD to common driver. Using tuple mp_id{name, port_id} as standard input parameter for all multi-process IPC APIs instead of using rte_eth_dev. Signed-off-by: Vu Pham Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5