net/mlx5: fix flow query routine in Direct Verbs
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Wed, 14 Nov 2018 13:47:19 +0000 (13:47 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 16 Nov 2018 09:45:38 +0000 (10:45 +0100)
commita3166356ab28770e2958a494e9a1923b5c52664a
tree3218e02db474870c99f30668015ae9e719aba8db
parent0c15f3c010322853078c20a2a9926d3fb5986548
net/mlx5: fix flow query routine in Direct Verbs

The flow_dv_query() just returns -ENOTSUP value and does not
set provided error parameter structure, that crashes the
port_flow_query(). The patch fixes flow_db_query(), now it
sets an error parameter structure.

Fixes: 684dafe795d0 ("net/mlx5: add flow query abstraction interface")

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c