From: Haggai Eran Date: Sun, 8 Feb 2015 11:28:51 +0000 (+0200) Subject: IB/core: Add on demand paging caps to ib_uverbs_ex_query_device X-Git-Tag: fixes-v4.0-rc1~31^2^7~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4056bfd8ccff4475417078d6e5456dfa1962dd3;p=pandora-kernel.git 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 Reviewed-by: Yann Droneaud Signed-off-by: Roland Dreier --- Reading git-diff-tree failed