OSDN Git Service

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)
commit68583ca2a183c6368f4c333fa989685fba7cf325
tree7298427f47b4684022919666dd09b141dd6fe7e2
parent7cba2cc13e12c824ad7e414b3834dc3df05fbf46
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