Skip to content

Commit

Permalink
rfs: call sock_rps_record_flow() in tcp_splice_read()
Browse files Browse the repository at this point in the history
rfs: call sock_rps_record_flow() in tcp_splice_read()

call sock_rps_record_flow() in tcp_splice_read(), so the applications using
splice(2) or sendfile(2) can utilize RFS.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
----
 net/ipv4/tcp.c |    1 +
 1 file changed, 1 insertion(+)
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Changli Gao authored and David S. Miller committed Jul 14, 2010
1 parent d809ec8 commit 3a047bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv4/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ ssize_t tcp_splice_read(struct socket *sock, loff_t *ppos,
ssize_t spliced;
int ret;

sock_rps_record_flow(sk);
/*
* We can't seek on a socket input
*/
Expand Down

0 comments on commit 3a047bf

Please sign in to comment.