RE: Splice status

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ofer Heifetz
Date: Monday, July 5, 2010 - 3:52 am

I am using Samba, so from my understanding of the source code, it loops and performs splice(sock, pipe) and splice(pipe, fd). There is no flush of any sort in between.

When you say drain you mean to flush all data to pipe?

-Ofer

-----Original Message-----
From: Changli Gao [mailto:xiaosuo@gmail.com] 
Sent: Monday, July 05, 2010 12:59 PM
To: Ofer Heifetz
Cc: netdev@vger.kernel.org
Subject: Re: Splice status

On Mon, Jul 5, 2010 at 5:26 PM, Ofer Heifetz <oferh@marvell.com> wrote:

Did you drain the pipe before calling splice(2) to move data from
socket to pipe?

-- 
Regards,
Changli Gao(xiaosuo@gmail.com)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Splice status, Ofer Heifetz, (Mon Jul 5, 2:26 am)
Re: Splice status, Changli Gao, (Mon Jul 5, 2:59 am)
RE: Splice status, Ofer Heifetz, (Mon Jul 5, 3:52 am)
Re: Splice status, Changli Gao, (Mon Jul 5, 5:08 am)
RE: Splice status, Eric Dumazet, (Mon Jul 5, 5:50 am)
RE: Splice status, Ofer Heifetz, (Mon Jul 5, 6:47 am)
RE: Splice status, Eric Dumazet, (Mon Jul 5, 8:34 am)
Re: Splice status, Changli Gao, (Mon Jul 5, 7:01 pm)
RE: Splice status, Ofer Heifetz, (Mon Jul 5, 7:36 pm)
Re: Splice status, Eric Dumazet, (Mon Jul 5, 8:56 pm)
Re: Splice status, Changli Gao, (Sun Jul 11, 6:08 am)
RE: Splice status, Ofer Heifetz, (Tue Jul 13, 4:41 am)
Re: Splice status, Changli Gao, (Tue Jul 13, 5:32 am)
RE: Splice status, Ofer Heifetz, (Tue Jul 13, 5:42 am)
Re: Splice status, Changli Gao, (Tue Jul 13, 6:58 am)
RE: Splice status, Eric Dumazet, (Tue Jul 13, 7:11 am)
RE: Splice status, Ofer Heifetz, (Tue Jul 13, 7:40 am)
RE: Splice status, Ofer Heifetz, (Wed Jul 14, 8:08 am)
RE: Splice status, Ofer Heifetz, (Wed Jul 14, 8:47 pm)
RE: Splice status, Ofer Heifetz, (Sun Jul 25, 7:47 am)
Re: Splice status, Changli Gao, (Mon Jul 26, 12:41 am)
Re: Splice status, Jarek Poplawski, (Mon Jul 26, 1:37 pm)
Re: Splice status, Eric Dumazet, (Mon Jul 26, 1:50 pm)