]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Generate completions in software
authorHaggai Eran <haggaie@mellanox.com>
Mon, 29 Feb 2016 13:45:08 +0000 (15:45 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 1 Mar 2016 16:04:07 +0000 (11:04 -0500)
commit7551fac931529f351c2c18e3ffa0b38198121e54
treeb727559092760dfd37cb4bac47583e28508c3131
parentbff925db34a011d0617f358e2ed3f67c44d96304
IB/mlx5: Generate completions in software

The GSI QP emulation requires also emulating completions for transmitted
MADs. The CQ on which these completions are generated can also be used by
the hardware, and the MAD layer is free to use any CQ of the device for the
GSI QP.

Add a method for generating software completions to each mlx5 CQ. Software
completions are polled first, and generate calls to the completion handler
callback if necessary.

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/cq.c
drivers/infiniband/hw/mlx5/mlx5_ib.h