]> git.baikalelectronics.ru Git - kernel.git/commit
i40iw: Convert page_size to encoded value
authorHenry Orosco <henry.orosco@intel.com>
Sun, 20 Nov 2016 02:26:25 +0000 (20:26 -0600)
committerDoug Ledford <dledford@redhat.com>
Mon, 5 Dec 2016 21:09:28 +0000 (16:09 -0500)
commit0bb22fdb1795c6fcd2eabc54f9101ca457314183
tree7298427f47b4684022919666dd09b141dd6fe7e2
parenta17393ace8f71c1e803c4c9341f8a02d70d8440a
i40iw: Convert page_size to encoded value

Passed in page_size was used as encoded value for writing
the WQE and passed in value was usually 4096. This was
working out since bit 0 was 0 and implies 4KB pages,
but would not work for other page sizes.

Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Henry Orosco <henry.orosco@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_ctrl.c
drivers/infiniband/hw/i40iw/i40iw_type.h