net/mlx5: Query device memory capabilities
authorAriel Levkovich <lariel@mellanox.com>
Thu, 5 Apr 2018 15:53:26 +0000 (18:53 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 5 Apr 2018 19:04:48 +0000 (13:04 -0600)
commite72bd817aee2bd867a90aac68aca07d99addcb55
tree2507417360321af20b5b2357117011022d368310
parentbe934cca9e987e73eb20e3c80731a9580d5acc79
net/mlx5: Query device memory capabilities

This patch adds querying of device memory capabilities by the mlx5_core
driver during initialization.

Device memory capabilities is a new capability type and structure
which contains the necessary data that is needed for future device
memory allocation.

The presence of this new capabilities struct is indicated in the
general capabilities struct which is queried first by the driver.
If the presence bit is set, the driver will also query the new
capabilities struct and save it in the device context.

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/net/ethernet/mellanox/mlx5/core/fw.c
include/linux/mlx5/device.h
include/linux/mlx5/mlx5_ifc.h