numam-dpdk/drivers
Matan Azrad f3b10f1d24 net/mlx4: fix flow creation before start
The corrupted code causes segmentation fault when user creates
flow with drop action before device starting.

For example, failsafe PMD recreates all the flows before calling
dev_start in plug-in sequence and mlx4 allocated its flow drop
queue in dev_start.
Hence, when failsafe created flow with drop action after plug-in
event, mlx4 tried to dereference flow drop queue which was
uninitialized.

The fix added check to the drop qp accessible and conditioned the
ibv_create_flow calling on device starting.

Fixes: 642fe56a1b ("net/mlx4: use a single drop queue for all drop flows")
Fixes: 46d5736a70 ("net/mlx4: support basic flow items and actions")
Cc: stable@dpdk.org

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
2017-07-31 19:58:41 +02:00
..
bus bus/fslmc: remove workaround for smmu mapping 2017-07-19 08:26:08 +03:00
crypto crypto/armv8: fix HMAC supported key sizes 2017-07-30 18:51:25 +02:00
event event/dpaa2: advertise burst mode capability 2017-07-20 07:19:35 +03:00
mempool mempool/dpaa2: fix freeing bp list 2017-07-21 09:28:22 +03:00
net net/mlx4: fix flow creation before start 2017-07-31 19:58:41 +02:00
Makefile drivers: add bus dependency for eventdev 2017-07-07 09:24:29 +02:00