net/mlx5: fix secondary process mempool registration
authorShahaf Shuler <shahafs@mellanox.com>
Thu, 25 Jan 2018 16:17:59 +0000 (18:17 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jan 2018 09:04:28 +0000 (10:04 +0100)
commita482a41a638749b2a5b9a1f37c8774453274a8f8
tree606043db824072bc59fff32ba1b9575e3c8f63f6
parent95086c654322861a10f9835233a333d7c2188df3
net/mlx5: fix secondary process mempool registration

Secondary process is not allowed to register mempools on the flight.

The code will return invalid memory key for such case.

Fixes: 87ec44ce1651 ("net/mlx5: add operations for secondary process")
Cc: stable@dpdk.org
Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Signed-off-by: Xueming Li <xuemingl@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
doc/guides/nics/mlx5.rst
drivers/net/mlx5/mlx5_mr.c