i40iw: Fix parsing of query/commit FPM buffers
authorChien Tin Tung <chien.tin.tung@intel.com>
Wed, 9 Aug 2017 01:38:43 +0000 (20:38 -0500)
committerDoug Ledford <dledford@redhat.com>
Wed, 16 Aug 2017 15:27:44 +0000 (11:27 -0400)
commitf67ace2d8868d06710ceea1b10b124eead5040da
tree4ac7ede457cbb693c120d646ab6b84f54bb7c42d
parenta7d2e03928c1936004750c56faf7534c8534f875
i40iw: Fix parsing of query/commit FPM buffers

Parsing of commit/query Host Memory Cache Function Private Memory
is not skipping over reserved fields and incorrectly assigning
those values into object's base/cnt/max_cnt fields. Skip over
reserved fields and set correct values. Also correct memory
alignment requirement for commit/query FPM buffers.

Signed-off-by: Chien Tin Tung <chien.tin.tung@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Christopher N Bednarz <christopher.n.bednarz@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_d.h