net/mlx4: enable secondary process to register DMA memory
authorYongseok Koh <yskoh@mellanox.com>
Mon, 1 Apr 2019 21:17:57 +0000 (14:17 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 5 Apr 2019 15:45:22 +0000 (17:45 +0200)
commit0b259b8e965575cdbd622c48b6ae5b04bed7aa73
treecdf84adb0e63acff13142e779737ac2b53a23eb9
parentf4efc0eb9703ad275a6f7a37c9592151af55aaaf
net/mlx4: enable secondary process to register DMA memory

The Memory Region (MR) for DMA memory can't be created from secondary
process due to lib/driver limitation. Whenever it is needed, secondary
process can make a request to primary process through the EAL IPC
channel (rte_mp_msg) which is established on initialization. Once a MR
is created by primary process, it is immediately visible to secondary
process because the MR list is global per a device. Thus, secondary
process can look up the list after the request is successfully returned.

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
doc/guides/nics/mlx4.rst
drivers/net/mlx4/mlx4.h
drivers/net/mlx4/mlx4_mp.c
drivers/net/mlx4/mlx4_mr.c
drivers/net/mlx4/mlx4_mr.h