]> asedeno.scripts.mit.edu Git - linux.git/commit
i40iw: Reinitialize add_sd_cnt
authorMustafa Ismail <mustafa.ismail@intel.com>
Fri, 8 Dec 2017 20:34:29 +0000 (14:34 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 11 Dec 2017 23:19:44 +0000 (16:19 -0700)
commit24b9abab15896c30f7e4a8f752245cfd45ce7fbf
tree489b7ebd4e0789fe606dc6e3d0119d175b1d4929
parent807e005ab8b3e1be5739e8df7d8c79913ed0ac83
i40iw: Reinitialize add_sd_cnt

add_sd_cnt in info structure passed to i40iw_create_hmc_obj_type
must be 0 and since it is modified during the call, it must be
reset in the loop. This avoids unnecessarily reprogramming the
SDs multiple times with the same values.

Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/i40iw/i40iw_main.c