Linux CIFS filesystem development
 help / color / mirror / Atom feed
* cifs RDMA restrictions
@ 2025-04-01 16:55 David Howells
  2025-04-01 18:02 ` Tom Talpey
  0 siblings, 1 reply; 9+ messages in thread
From: David Howells @ 2025-04-01 16:55 UTC (permalink / raw)
  To: Tom Talpey
  Cc: dhowells, Steve French, Stefan Metzmacher, Paulo Alcantara,
	Matthew Wilcox, linux-cifs

Hi Tom,

I'm looking at cleaning up the "struct page" instances in smbdirect.c as much
as possible.  Can you tell me what are the restrictions on the size of a
segment attached to an SGE?  For instance, by:

	static bool smb_set_sge(struct smb_extract_to_rdma *rdma,
				struct page *lowest_page, size_t off, size_t len)
	{
		struct ib_sge *sge = &rdma->sge[rdma->nr_sge];
		u64 addr;

		addr = ib_dma_map_page(rdma->device, lowest_page,
				       off, len, rdma->direction);
		if (ib_dma_mapping_error(rdma->device, addr))
			return false;

		sge->addr   = addr;
		sge->length = len;
		sge->lkey   = rdma->local_dma_lkey;
		rdma->nr_sge++;
		return true;
	}

Thanks,
David


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-04-02 19:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-01 16:55 cifs RDMA restrictions David Howells
2025-04-01 18:02 ` Tom Talpey
2025-04-01 19:34   ` David Howells
2025-04-02 17:02     ` Tom Talpey
2025-04-02 17:09       ` David Howells
     [not found]         ` <CAH2r5ms2J06tJr4VEVDgmcj_1uqOnhYzbC1ybrMWDm=f8wVDoA@mail.gmail.com>
2025-04-02 18:04           ` Tom Talpey
2025-04-02 19:26             ` David Howells
2025-04-02 19:36               ` Tom Talpey
2025-04-02 19:54                 ` [RFC PATCH] cifs: Collapse smbd_recv_*() into smbd_recv() and just use copy_to_iter() David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox