RDMA/mlx5: Don't overwrite action if already set
authorMark Bloch <markb@mellanox.com>
Thu, 6 Sep 2018 14:27:04 +0000 (17:27 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 11 Sep 2018 15:28:06 +0000 (09:28 -0600)
commit501f14e37ba099f9d3a530c9d3a03cc4dbad103f
treeae3e592365ab0f6f09674e5575bc8777d3b5a5ea
parent2ea262039015ba7e74dcaff91e70c547a45437c7
RDMA/mlx5: Don't overwrite action if already set

We support only a single action type per flow rule, in case the user passes
the same type of flow actions fail the flow creation.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c