RDMA/mlx5: Init dest_type when create flow
authorDaria Velikovsky <daria@mellanox.com>
Tue, 7 Jul 2020 11:02:59 +0000 (14:02 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 16 Jul 2020 17:11:53 +0000 (14:11 -0300)
commit0829d2da608c6ce225052a99b1bc7a2a1c421173
tree775c3070577b8715adf0ce10b9233704cdf8f0f6
parent420bd9e2d93e4a4121d5bdf3a051b0ddefa9c1cc
RDMA/mlx5: Init dest_type when create flow

When using action drop dest_type was never assigned to any value.  Add
initialization of dest_type to -1 since 0 is valid.

Fixes: f29de9eee782 ("RDMA/mlx5: Add support for drop action in DV steering")
Link: https://lore.kernel.org/r/20200707110259.882276-1-leon@kernel.org
Signed-off-by: Daria Velikovsky <daria@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/fs.c