]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Report correctly tag matching rendezvous capability
authorDanit Goldberg <danitg@mellanox.com>
Fri, 5 Jul 2019 16:21:57 +0000 (19:21 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 8 Jul 2019 17:26:37 +0000 (14:26 -0300)
commit8d0b0a9f3c174bc71376b6df639e633847488219
tree1c391de45ce67230703b5b68727d235ed8700f41
parent205ba203ed4691dfc7085c3f66d85ba345b83cdc
IB/mlx5: Report correctly tag matching rendezvous capability

Userspace expects the IB_TM_CAP_RC bit to indicate that the device
supports RC transport tag matching with rendezvous offload. However the
firmware splits this into two capabilities for eager and rendezvous tag
matching.

Only if the FW supports both modes should userspace be told the tag
matching capability is available.

Cc: <stable@vger.kernel.org> # 4.13
Fixes: 8980b172d62e ("IB/mlx5: Fill XRQ capabilities")
Signed-off-by: Danit Goldberg <danitg@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
include/rdma/ib_verbs.h