]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Add on demand paging caps to ib_uverbs_ex_query_device
authorHaggai Eran <haggaie@mellanox.com>
Sun, 8 Feb 2015 11:28:51 +0000 (13:28 +0200)
committerRoland Dreier <roland@purestorage.com>
Wed, 18 Feb 2015 16:36:26 +0000 (08:36 -0800)
commit7e55974365eeff30dbb656805b7957faa732749a
tree55d91fc332726876bf87ca386c7a1308da13d6d7
parent2c2ac401dee1edc5b71bafb4bc3928bc2b9a35cd
IB/core: Add on demand paging caps to ib_uverbs_ex_query_device

Add on-demand paging capabilities reporting to the extended query device verb.

Yann Droneaud writes:

    Note: as offsetof() is used to retrieve the size of the lower chunk
    of the response, beware that it only works if the upper chunk
    is right after, without any implicit padding. And, as the size of
    the latter chunk is added to the base size, implicit padding at the
    end of the structure is not taken in account. Both point must be
    taken in account when extending the uverbs functionalities.

Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Reviewed-by: Yann Droneaud <ydroneaud@opteya.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/uverbs_cmd.c
include/uapi/rdma/ib_user_verbs.h