summaryrefslogtreecommitdiffstats
path: root/include/linux/rxrpc.h
diff options
context:
space:
mode:
authorDavid Howells2017-06-07 13:40:03 +0200
committerDavid Howells2017-06-07 18:15:46 +0200
commite754eba685aac2a9b5538176fa2d254ad25f464d (patch)
treec8e650d72b8451f7d4ab93cd92eaed6549e84ae5 /include/linux/rxrpc.h
parentrxrpc: Consolidate sendmsg parameters (diff)
downloadkernel-qcow2-linux-e754eba685aac2a9b5538176fa2d254ad25f464d.tar.gz
kernel-qcow2-linux-e754eba685aac2a9b5538176fa2d254ad25f464d.tar.xz
kernel-qcow2-linux-e754eba685aac2a9b5538176fa2d254ad25f464d.zip
rxrpc: Provide a cmsg to specify the amount of Tx data for a call
Provide a control message that can be specified on the first sendmsg() of a client call or the first sendmsg() of a service response to indicate the total length of the data to be transmitted for that call. Currently, because the length of the payload of an encrypted DATA packet is encrypted in front of the data, the packet cannot be encrypted until we know how much data it will hold. By specifying the length at the beginning of the transmit phase, each DATA packet length can be set before we start loading data from userspace (where several sendmsg() calls may contribute to a particular packet). An error will be returned if too little or too much data is presented in the Tx phase. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'include/linux/rxrpc.h')
-rw-r--r--include/linux/rxrpc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/rxrpc.h b/include/linux/rxrpc.h
index bdd3175b9a48..7343f71783dc 100644
--- a/include/linux/rxrpc.h
+++ b/include/linux/rxrpc.h
@@ -57,6 +57,7 @@ enum rxrpc_cmsg_type {
RXRPC_ACCEPT = 9, /* s-: [Service] accept request */
RXRPC_EXCLUSIVE_CALL = 10, /* s-: Call should be on exclusive connection */
RXRPC_UPGRADE_SERVICE = 11, /* s-: Request service upgrade for client call */
+ RXRPC_TX_LENGTH = 12, /* s-: Total length of Tx data */
RXRPC__SUPPORTED
};