RDMA/core: Update query_gid documentation for HCA drivers
authorParav Pandit <parav@mellanox.com>
Sun, 1 Apr 2018 12:08:18 +0000 (15:08 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 4 Apr 2018 03:09:01 +0000 (21:09 -0600)
query_gid() should return right GID value for iWarp and IB link layers.
It is a no-op for RoCE link layer.  Update the documentation to reflect
this.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/rdma/ib_verbs.h

index 48f416fabe0cf70bb648b5c033d3e44dc74dfd89..a2f658125795de899252840144bb892b325676fd 100644 (file)
@@ -2141,6 +2141,10 @@ struct ib_device {
         */
        struct net_device         *(*get_netdev)(struct ib_device *device,
                                                 u8 port_num);
+       /* query_gid should be return GID value for @device, when @port_num
+        * link layer is either IB or iWarp. It is no-op if @port_num port
+        * is RoCE link layer.
+        */
        int                        (*query_gid)(struct ib_device *device,
                                                u8 port_num, int index,
                                                union ib_gid *gid);