]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Expose dump and fill memory key
authorYonatan Cohen <yonatanc@mellanox.com>
Tue, 19 Jun 2018 05:47:24 +0000 (08:47 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 4 Jul 2018 19:16:04 +0000 (13:16 -0600)
commit0731b3382908510be6bb095c1b069e198b389260
treeb94e9aecd9f3a65e2bdbaafaba15a7b784b73323
parent798a2eb70eefe2bc882793f91ef5cb9bee41a31b
IB/mlx5: Expose dump and fill memory key

MLX5 IB HCA offers the memory key, dump_fill_mkey to boost
performance, when used in a send or receive operations.

It is used to force local HCA operations to skip the PCI bus access,
while keeping track of the processed length in the ibv_sge handling.

Meaning, instead of a PCI write access the HCA leaves the target
memory untouched, and skips filling that packet section. Similar
behavior is done upon send, the HCA skips data in memory relevant
to this key and saves PCI bus access.

This functionality saves PCI read/write operations.

Signed-off-by: Yonatan Cohen <yonatanc@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Guy Levi <guyle@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/uapi/rdma/mlx5-abi.h