diff options
author | Stefan Raspl <stefan.raspl@linux.ibm.com> | 2018-05-03 18:12:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-04 17:45:06 +0200 |
commit | 9014db202cb764b8e14c53e7bacc81f9a1a2ba7f (patch) | |
tree | 2beb8b962fd2261b7f7d372d8e463777234fa7fc /net/smc/smc.h | |
parent | smc: allocate RMBs as compound pages (diff) | |
download | linux-9014db202cb764b8e14c53e7bacc81f9a1a2ba7f.tar.xz linux-9014db202cb764b8e14c53e7bacc81f9a1a2ba7f.zip |
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.h')
-rw-r--r-- | net/smc/smc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/smc/smc.h b/net/smc/smc.h index 2405e889b93d..ec209cd48d42 100644 --- a/net/smc/smc.h +++ b/net/smc/smc.h @@ -164,6 +164,9 @@ struct smc_connection { atomic_t bytes_to_rcv; /* arrived data, * not yet received */ + atomic_t splice_pending; /* number of spliced bytes + * pending processing + */ #ifndef KERNEL_HAS_ATOMIC64 spinlock_t acurs_lock; /* protect cursors */ #endif |