summaryrefslogtreecommitdiff
path: root/net/smc/smc_rx.h
diff options
context:
space:
mode:
authorStefan Raspl <stefan.raspl@linux.ibm.com>2018-05-03 19:12:39 +0300
committerDavid S. Miller <davem@davemloft.net>2018-05-04 18:45:06 +0300
commit9014db202cb764b8e14c53e7bacc81f9a1a2ba7f (patch)
tree2beb8b962fd2261b7f7d372d8e463777234fa7fc /net/smc/smc_rx.h
parent2ef4f27ad00dc9d36cadb81fce9d07366d579451 (diff)
downloadlinux-9014db202cb764b8e14c53e7bacc81f9a1a2ba7f.tar.xz
smc: add support for splice()
Provide an implementation for splice() when we are using SMC. See smc_splice_read() for further details. Signed-off-by: Stefan Raspl <raspl@linux.ibm.com> Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>< Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_rx.h')
-rw-r--r--net/smc/smc_rx.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/smc/smc_rx.h b/net/smc/smc_rx.h
index 8f9f00997641..db823c97d824 100644
--- a/net/smc/smc_rx.h
+++ b/net/smc/smc_rx.h
@@ -18,8 +18,9 @@
#include "smc.h"
void smc_rx_init(struct smc_sock *smc);
-int smc_rx_recvmsg(struct smc_sock *smc, struct msghdr *msg, size_t len,
- int flags);
+
+int smc_rx_recvmsg(struct smc_sock *smc, struct msghdr *msg,
+ struct pipe_inode_info *pipe, size_t len, int flags);
int smc_rx_wait(struct smc_sock *smc, long *timeo,
int (*fcrit)(struct smc_connection *conn));
static inline int smc_rx_data_available(struct smc_connection *conn)
@@ -27,5 +28,4 @@ static inline int smc_rx_data_available(struct smc_connection *conn)
return atomic_read(&conn->bytes_to_rcv);
}
-
#endif /* SMC_RX_H */