IB/mlx5: Implement the ODP capability query verb
authorHaggai Eran <haggaie@mellanox.com>
Thu, 11 Dec 2014 15:04:20 +0000 (17:04 +0200)
committerRoland Dreier <roland@purestorage.com>
Tue, 16 Dec 2014 02:19:02 +0000 (18:19 -0800)
commit8cdd312cfed706b067d7ea952603e28cc33c40cc
treec9372550bc0430d23f87862451a405038dbf0d93
parente420f0c0f3d1022789fcb59b2a0c4b979ce311ba
IB/mlx5: Implement the ODP capability query verb

The patch adds infrastructure to query ODP capabilities in the mlx5
driver. The code will read the capabilities from the device, and
enable only those capabilities that both the driver and the device
supports.  At this point ODP is not supported, so no capability is
copied from the device, but the patch exposes the global ODP device
capability bit.

Signed-off-by: Shachar Raindel <raindel@mellanox.com>
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx5/Makefile
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/odp.c [new file with mode: 0644]