summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/i40iw/i40iw_type.h
diff options
context:
space:
mode:
authorHenry Orosco <henry.orosco@intel.com>2016-11-19 20:26:25 -0600
committerDoug Ledford <dledford@redhat.com>2016-12-05 16:09:28 -0500
commit68583ca2a183c6368f4c333fa989685fba7cf325 (patch)
tree7298427f47b4684022919666dd09b141dd6fe7e2 /drivers/infiniband/hw/i40iw/i40iw_type.h
parent7cba2cc13e12c824ad7e414b3834dc3df05fbf46 (diff)
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>
Diffstat (limited to 'drivers/infiniband/hw/i40iw/i40iw_type.h')
-rw-r--r--drivers/infiniband/hw/i40iw/i40iw_type.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_type.h b/drivers/infiniband/hw/i40iw/i40iw_type.h
index d1847e693025..928d91b956a8 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_type.h
+++ b/drivers/infiniband/hw/i40iw/i40iw_type.h
@@ -74,6 +74,11 @@ struct i40iw_priv_qp_ops;
struct i40iw_priv_cq_ops;
struct i40iw_hmc_ops;
+enum i40iw_page_size {
+ I40IW_PAGE_SIZE_4K,
+ I40IW_PAGE_SIZE_2M
+};
+
enum i40iw_resource_indicator_type {
I40IW_RSRC_INDICATOR_TYPE_ADAPTER = 0,
I40IW_RSRC_INDICATOR_TYPE_CQ,