Re: [RFC PATCH v2 15/21] net/tcp: add MSG_NETDMA flag for sendmsg()

2020-07-27 Thread Christoph Hellwig
On Mon, Jul 27, 2020 at 07:17:51PM -0700, Eric Dumazet wrote: > > The thing is, the existing zero copy code is zero-copy to /host/ memory, > > which is not the same thing as zero-copy to other memory areas. > > You have to really explain what difference it makes, and why current > stuff can not be

Re: [RFC PATCH v2 15/21] net/tcp: add MSG_NETDMA flag for sendmsg()

2020-07-27 Thread Jonathan Lemon
On Mon, Jul 27, 2020 at 07:17:51PM -0700, Eric Dumazet wrote: > On Mon, Jul 27, 2020 at 7:11 PM Jonathan Lemon > wrote: > > > > On Mon, Jul 27, 2020 at 10:44:59AM -0700, Eric Dumazet wrote: > > > On Mon, Jul 27, 2020 at 10:35 AM Jonathan Lemon > > > wrote: > > > > > > > > On Mon, Jul 27, 2020 at

Re: [RFC PATCH v2 15/21] net/tcp: add MSG_NETDMA flag for sendmsg()

2020-07-27 Thread Jonathan Lemon
On Mon, Jul 27, 2020 at 10:44:59AM -0700, Eric Dumazet wrote: > On Mon, Jul 27, 2020 at 10:35 AM Jonathan Lemon > wrote: > > > > On Mon, Jul 27, 2020 at 09:09:48AM -0700, Eric Dumazet wrote: > > > On Mon, Jul 27, 2020 at 8:56 AM Jonathan Lemon > > > wrote: > > > > > > > > On Mon, Jul 27, 2020 at

Re: [RFC PATCH v2 15/21] net/tcp: add MSG_NETDMA flag for sendmsg()

2020-07-27 Thread Jonathan Lemon
On Mon, Jul 27, 2020 at 09:09:48AM -0700, Eric Dumazet wrote: > On Mon, Jul 27, 2020 at 8:56 AM Jonathan Lemon > wrote: > > > > On Mon, Jul 27, 2020 at 08:19:43AM -0700, Eric Dumazet wrote: > > > On Mon, Jul 27, 2020 at 12:51 AM Jonathan Lemon > > > wrote: > > > > > > > > This flag indicates tha

Re: [RFC PATCH v2 15/21] net/tcp: add MSG_NETDMA flag for sendmsg()

2020-07-27 Thread Jonathan Lemon
On Mon, Jul 27, 2020 at 08:19:43AM -0700, Eric Dumazet wrote: > On Mon, Jul 27, 2020 at 12:51 AM Jonathan Lemon > wrote: > > > > This flag indicates that the attached data is a zero-copy send, > > and the pages should be retrieved from the netgpu module. The > > socket should should already have