net/mlx5: fix crash on null operation
authorMoti Haimovsky <motih@mellanox.com>
Mon, 1 Jul 2019 09:34:21 +0000 (12:34 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 4 Jul 2019 23:52:02 +0000 (01:52 +0200)
commit8f0fa0c0adf5dac18641af89143eabea0662f5a2
tree6d9c192ec3994ce4e2cec8b7f437655a15e7eb44
parent2e0b193da80134663ab405b0888cec6b90c83e0f
net/mlx5: fix crash on null operation

mlx5 implements mlx5_flow_null_drv_ops to be used when a specific
flow typei/driver is not available or invalid.
This routines return error without modifying the rte_flow_error
parameter passed to them which causes testpmd, for example, to crash.
This commit addresses the issue by modifying the rte_flow_error
parameter in theses routines.

Fixes: 0c76d1c9a18d ("net/mlx5: add abstraction for multiple flow drivers")
Fixes: 684dafe795d0 ("net/mlx5: add flow query abstraction interface")
Cc: stable@dpdk.org
Signed-off-by: Moti Haimovsky <motih@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_flow.c