]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Add GSI QP wrapper
authorHaggai Eran <haggaie@mellanox.com>
Mon, 29 Feb 2016 13:45:05 +0000 (15:45 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 1 Mar 2016 16:03:41 +0000 (11:03 -0500)
commiteadb61ef07fe4aee730773bcee28ddbfe5d2cede
tree5e0fe7689ca919bafd1c3431aaa08c8f4004a4eb
parent49976fd81d127a38b000f3cfffd811ee968a356b
IB/mlx5: Add GSI QP wrapper

mlx5 creates special GSI QPs that has limited ability to control the P_Key
of transmitted packets. The sent P_Key is taken from the QP object,
similarly to what happens with regular UD QPs.

Create a software wrapper around GSI QPs that with the following patches
will be able to emulate the functionality of a GSI QP including control of
the P_Key per work request.

Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/Makefile
drivers/infiniband/hw/mlx5/gsi.c [new file with mode: 0644]
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c