RDMA/mlx5: Consider eswitch encap mode
authorMaor Gottlieb <maorg@mellanox.com>
Wed, 12 Jun 2019 12:20:13 +0000 (15:20 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 19 Jun 2019 02:44:52 +0000 (22:44 -0400)
commitcecae747b6208d40d08f8336393345093536b124
treee8aeabac9d352160297d051254d1a66b6b1cb64b
parent12dbc04db08dc225b0e06cc5bb99c2dfa8236df9
RDMA/mlx5: Consider eswitch encap mode

When flow steering is created, then the encap support should
consider the eswitch encap mode. If the eswitch flow table (FDB)
supports encap then it shouldn't be supported on NIC RX flow tables.

Fixes: 4adda1122c490 ('RDMA/mlx5: Enable decap and packet reformat on flow tables')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c