Эх сурвалжийг харах

rfs: call sock_rps_record_flow() in tcp_splice_read()

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>
Changli Gao 15 жил өмнө
parent
commit
3a047bf87b
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      net/ipv4/tcp.c

+ 1 - 0
net/ipv4/tcp.c

@@ -608,6 +608,7 @@ ssize_t tcp_splice_read(struct socket *sock, loff_t *ppos,
 	ssize_t spliced;
 	ssize_t spliced;
 	int ret;
 	int ret;
 
 
+	sock_rps_record_flow(sk);
 	/*
 	/*
 	 * We can't seek on a socket input
 	 * We can't seek on a socket input
 	 */
 	 */