IB: Report using RoCE IP based gids in port caps
authorMoni Shoua <monis@mellanox.co.il>
Sun, 9 Feb 2014 09:54:34 +0000 (11:54 +0200)
committerRoland Dreier <roland@purestorage.com>
Thu, 13 Feb 2014 22:46:03 +0000 (14:46 -0800)
commitb4a26a27287a7f81933ba016aeed6c69dd155323
treea9090b1f8deb04e0ec20dcd19286349130f91e62
parent38dbfb59d1175ef458d006556061adeaa8751b72
IB: Report using RoCE IP based gids in port caps

For userspace RoCE UD QPs we need to know the GID format that the
kernel uses, e.g when working over older kernels. For that end, add a
new port capability IB_PORT_IP_BASED_GIDS and report it when query
port is issued.

Signed-off-by: Moni Shoua <monis@mellanox.co.il>
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
include/rdma/ib_verbs.h