* rdma_reg_read()
@ 2013-11-08 0:17 Steve Wise
[not found] ` <527C2D99.9050407-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Steve Wise @ 2013-11-08 0:17 UTC (permalink / raw)
To: Hefty, Sean
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Troy Leedberg,
Felix Marti
Hey Sean:
static inline struct ibv_mr *
rdma_reg_read(struct rdma_cm_id *id, void *addr, size_t length)
{
return ibv_reg_mr(id->pd, addr, length, IBV_ACCESS_LOCAL_WRITE |
IBV_ACCESS_REMOTE_READ);
}
Should this be used for the registering sink memory of an rdma read? If
so, it won't work for iWARP, which requires REMOTE_WRITE for the sink.
Should this code look at the transport type and set REMOTE_WRITE for
iwarp transports?
Steve.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <527C2D99.9050407-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>]
* RE: rdma_reg_read() [not found] ` <527C2D99.9050407-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org> @ 2013-11-08 0:21 ` Hefty, Sean [not found] ` <1828884A29C6694DAF28B7E6B8A8237388CF63E9-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Hefty, Sean @ 2013-11-08 0:21 UTC (permalink / raw) To: Steve Wise Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Troy Leedberg, Felix Marti > static inline struct ibv_mr * > rdma_reg_read(struct rdma_cm_id *id, void *addr, size_t length) > { > return ibv_reg_mr(id->pd, addr, length, IBV_ACCESS_LOCAL_WRITE | > IBV_ACCESS_REMOTE_READ); > } > > Should this be used for the registering sink memory of an rdma read? If > so, it won't work for iWARP, which requires REMOTE_WRITE for the sink. > Should this code look at the transport type and set REMOTE_WRITE for > iwarp transports? This is to register memory as the target of an RDMA read operation. I.e. the memory being read. Is that the same as your 'sink'? -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <1828884A29C6694DAF28B7E6B8A8237388CF63E9-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>]
* Re: rdma_reg_read() [not found] ` <1828884A29C6694DAF28B7E6B8A8237388CF63E9-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org> @ 2013-11-08 0:33 ` Steve Wise [not found] ` <527C316E.50805-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Steve Wise @ 2013-11-08 0:33 UTC (permalink / raw) To: Hefty, Sean Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Troy Leedberg, Felix Marti On 11/7/2013 6:21 PM, Hefty, Sean wrote: >> static inline struct ibv_mr * >> rdma_reg_read(struct rdma_cm_id *id, void *addr, size_t length) >> { >> return ibv_reg_mr(id->pd, addr, length, IBV_ACCESS_LOCAL_WRITE | >> IBV_ACCESS_REMOTE_READ); >> } >> >> Should this be used for the registering sink memory of an rdma read? If >> so, it won't work for iWARP, which requires REMOTE_WRITE for the sink. >> Should this code look at the transport type and set REMOTE_WRITE for >> iwarp transports? > This is to register memory as the target of an RDMA read operation. I.e. the memory being read. Is that the same as your 'sink'? No, I would call that the 'source' of the read. Basically the mr to-which the read data is placed needs REMOTE_WRITE for iWARP. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <527C316E.50805-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>]
* RE: rdma_reg_read() [not found] ` <527C316E.50805-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org> @ 2013-11-08 1:04 ` Hefty, Sean 0 siblings, 0 replies; 4+ messages in thread From: Hefty, Sean @ 2013-11-08 1:04 UTC (permalink / raw) To: Steve Wise Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Troy Leedberg, Felix Marti > On 11/7/2013 6:21 PM, Hefty, Sean wrote: > >> static inline struct ibv_mr * > >> rdma_reg_read(struct rdma_cm_id *id, void *addr, size_t length) > >> { > >> return ibv_reg_mr(id->pd, addr, length, IBV_ACCESS_LOCAL_WRITE > | > >> IBV_ACCESS_REMOTE_READ); > >> } > >> > >> Should this be used for the registering sink memory of an rdma read? If > >> so, it won't work for iWARP, which requires REMOTE_WRITE for the sink. > >> Should this code look at the transport type and set REMOTE_WRITE for > >> iwarp transports? > > This is to register memory as the target of an RDMA read operation. I.e. > the memory being read. Is that the same as your 'sink'? > > No, I would call that the 'source' of the read. Basically the mr > to-which the read data is placed needs REMOTE_WRITE for iWARP. Then I think that maps to the rdma_reg_write() call. -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-08 1:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-08 0:17 rdma_reg_read() Steve Wise
[not found] ` <527C2D99.9050407-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2013-11-08 0:21 ` rdma_reg_read() Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A8237388CF63E9-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-11-08 0:33 ` rdma_reg_read() Steve Wise
[not found] ` <527C316E.50805-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2013-11-08 1:04 ` rdma_reg_read() Hefty, Sean
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.