]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Fix flow destination setting for RDMA TX flow table
authorMichael Guralnik <michaelgur@mellanox.com>
Mon, 3 Aug 2020 05:58:49 +0000 (08:58 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 6 Aug 2020 00:09:39 +0000 (21:09 -0300)
commitfdb3680a5a3347572f99a447c83b5fe5c9252879
treee45e129fbeef145985d7257fe8f83f292d9cbe2c
parentbc42d217aa1a9cd1c962bf73714c7462b5f5af4d
RDMA/mlx5: Fix flow destination setting for RDMA TX flow table

For RDMA TX flow table, set destination type to be 'port' and prevent
creation of flows with TIR destination.

As RDMA TX is an egress flow table the rules on this flow table should
not forward traffic back to the NIC and should set the destination to be
the port.

Without the setting of this destination type flow rules on the RDMA TX
flow tables are not created as FW invokes a syndrome for undefined
destination for the rule.

Fixes: c48a8b5f9565 ("net/mlx5: Add support for RDMA TX steering")
Link: https://lore.kernel.org/r/20200803055849.14947-1-leon@kernel.org
Signed-off-by: Michael Guralnik <michaelgur@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/fs.c