]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Add steering SW ICM device memory type
authorAriel Levkovich <lariel@mellanox.com>
Sun, 5 May 2019 14:07:13 +0000 (17:07 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 6 May 2019 15:51:51 +0000 (12:51 -0300)
commit8480c2a7bdd69e66f2ca8d58ac3d3db9ce08a86e
tree394ccf193adba31c1ac13912aa91567012df602e
parent8c81353e0dbe83a4927a078220ef66daa5138e21
IB/mlx5: Add steering SW ICM device memory type

This patch adds support for allocating, deallocating and registering a new
device memory type, STEERING_SW_ICM.  This memory can be allocated and
used by a privileged user for direct rule insertion and management of the
device's steering tables.

The type is provided by the user via the dedicated attribute in the
alloc_dm ioctl command.

Signed-off-by: Ariel Levkovich <lariel@mellanox.com>
Reviewed-by: Eli Cohen <eli@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/cmd.c
drivers/infiniband/hw/mlx5/cmd.h
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c
include/uapi/rdma/mlx5_user_ioctl_verbs.h