]> asedeno.scripts.mit.edu Git - linux.git/commit
i40iw: Use sqsize to initialize cqp_requests elements
authorChien Tin Tung <chien.tin.tung@intel.com>
Fri, 8 Dec 2017 20:34:28 +0000 (14:34 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 11 Dec 2017 23:19:43 +0000 (16:19 -0700)
commit807e005ab8b3e1be5739e8df7d8c79913ed0ac83
tree90d7da4466715ab35a579e882ec6fe12ed319376
parentc55359a23c23d0ea9af6c0d5d443810551d3b99b
i40iw: Use sqsize to initialize cqp_requests elements

Use sqsize instead of I40IW_CQP_SW_SQSIZE_2048 to initialize
cqp_requests elements in the for-loop as sqsize is used
to allocate memory for cqp_requests.

Signed-off-by: Chien Tin Tung <chien.tin.tung@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