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>
This commit is contained in:

committed by
David S. Miller

parent
2ef4f27ad0
commit
9014db202c
@@ -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 */
|
||||
|
Reference in New Issue
Block a user