]> git.baikalelectronics.ru Git - kernel.git/commit
IB/isert: use T10-PI check mask definitions from core layer
authorMax Gurtovoy <maxg@mellanox.com>
Thu, 31 May 2018 08:05:26 +0000 (11:05 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 4 Jun 2018 15:19:24 +0000 (09:19 -0600)
commit3d0def1701a8eca4b506d6d914ccdf31086988df
tree7f6674cc6d1b93f46b3d13a49a5bbe5522cdea9e
parentf85b35f3155ae5dfebe134ff4054cb9449f4c9df
IB/isert: use T10-PI check mask definitions from core layer

No reason to use hard-coded protection information checks in ib_isert
driver. Use check masks from RDMA core driver.
Also, while we here, reduce the number of instructions made for setting
the check mask (no need to do bitwise or with 0 since we zero the mask
in the beginning of the function).

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/isert/ib_isert.c