i40iw: Zero-out consumer key on allocate stag for FMR
authorShiraz Saleem <shiraz.saleem@intel.com>
Fri, 12 Jan 2018 00:10:51 +0000 (18:10 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 17 Jan 2018 03:38:18 +0000 (20:38 -0700)
commit6376e926af1a8661dd1b2e6d0896e07f84a35844
tree2afbded4bf66a526eaa9ad1c0c30357d0e3c2376
parent23541b28e5a33a277f654dd6672484ded1050216
i40iw: Zero-out consumer key on allocate stag for FMR

If the application invalidates the MR before the FMR WR, HW parses the
consumer key portion of the stag and returns an invalid stag key
Asynchronous Event (AE) that tears down the QP.

Fix this by zeroing-out the consumer key portion of the allocated stag
returned to application for FMR.

Fixes: ee855d3b93f3 ("RDMA/i40iw: Add base memory management extensions")
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/i40iw/i40iw_verbs.c