On 11/11/2015 10:08, Christoph Hellwig wrote:
On Tue, Nov 10, 2015 at 11:01:56AM -0700, Jason Gunthorpe wrote:
No need to change every driver.

I'd suggest something like

   unsigned int rdma_cap_rdma_read_mr_flags(const struct ib_pd *pd)
   {
      if (rdma_protocol_iwarp(pd->device, rdma_start_port(pd->device)))
            return IB_ACCESS_LOCAL_WRITE | IB_ACCESS_REMOTE_WRITE;
      return IB_ACCESS_LOCAL_WRITE;
   }

Yes, this looks good!

It does, but it doesn't look like something we'd want to check for each
IO...
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to