net/mlx5: fix Multi-Packet RQ mempool name
authorYongseok Koh <yskoh@mellanox.com>
Mon, 6 May 2019 23:21:58 +0000 (16:21 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 8 May 2019 15:29:31 +0000 (17:29 +0200)
commit4594487b7822c3418a5fc5f1a94129471c2e5622
treef5220ba331e5db06f17395f080f0ff039b6e8b6a
parent09ba4c58e510b58527fe957d9ca5aabf43b48a87
net/mlx5: fix Multi-Packet RQ mempool name

Currently, the name of MPRQ mempool is set by
snprintf(name, sizeof(name), "%s-mprq", dev->device->name);
For port representor, the name is duplicate of its master and failed to
create such a mempool having the same name. Port ID is used in the name
instead.

Fixes: 7d6bf6b866b8 ("net/mlx5: add Multi-Packet Rx support")
Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_rxq.c