net/mlx5: Mkey creation command adjustments
authorAriel Levkovich <lariel@mellanox.com>
Thu, 5 Apr 2018 15:53:28 +0000 (18:53 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 5 Apr 2018 19:04:49 +0000 (13:04 -0600)
commitcdbd0d2bae14566cf875595180b91527b4431df8
treeba0a04ffe881ff7d8acf5726ea98bcaf2232b76d
parent24da00164f7a9c247d2224a54494d0e955199630
net/mlx5: Mkey creation command adjustments

This change updates the mlx5 interface to create mkey
on the device.

The updates in the command mailbox include increasing the
access mode type field to 5 bits in order to support additional
types such as MLX5_MKC_ACCESS_MODE_MEMIC which represents device
memory access type and will be used when registering MR on allocated
device memory.

All the places that use the old access mode format are adjusted as
well.

Signed-off-by: Ariel Levkovich <lariel@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/mr.c
drivers/net/ethernet/mellanox/mlx5/core/en_common.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c
include/linux/mlx5/mlx5_ifc.h