]> git.baikalelectronics.ru Git - kernel.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)
commit01b43ee7ba503377cb3d24dec2cd2d2c227b2a32
tree489b7ebd4e0789fe606dc6e3d0119d175b1d4929
parent5a71fba5fb98b1d24bb39d0466f09ff4e57ee412
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