net/mlx5: fix reusing Rx/Tx queues
authorYongseok Koh <yskoh@mellanox.com>
Tue, 21 Mar 2017 17:50:51 +0000 (10:50 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 16:59:46 +0000 (18:59 +0200)
commit69a3d576f0c7f4e5ecf905a04e6e24eff6967fb0
tree53dd55c7a1759a3f51bf5270cda9f4be43527e8e
parent9f0645cd147c8819deb8d844850c577b433f6b6a
net/mlx5: fix reusing Rx/Tx queues

When configuring Rx/Tx queue, if queue already exists, it is reused. But if
the queue size is changed, it must be resized to not access/overwrite
invalid memory.

Fixes: 2e22920b85d9 ("mlx5: support non-scattered Tx and Rx")
Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_rxq.c
drivers/net/mlx5/mlx5_txq.c