aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-06-08 11:41:41 -0400
committerDavid S. Miller <davem@davemloft.net>2017-06-08 11:41:41 -0400
commit7eca9cc53987fc496186e0e5fd1ecd573f5a03a1 (patch)
tree62ecee18dbc2a8a4df695f743da699ff4265e247 /drivers/net/dsa
parentMerge branch 'qrtr-features' (diff)
parentrxrpc: Provide a cmsg to specify the amount of Tx data for a call (diff)
downloadlinux-dev-7eca9cc53987fc496186e0e5fd1ecd573f5a03a1.tar.xz
linux-dev-7eca9cc53987fc496186e0e5fd1ecd573f5a03a1.zip
Merge tag 'rxrpc-rewrite-20170607-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs
David Howells says: ==================== rxrpc: Tx length parameter Here's a set of patches that allows someone initiating a client call with AF_RXRPC to indicate upfront the total amount of data that will be transmitted. This will allow AF_RXRPC to encrypt directly from source buffer to packet rather than having to copy into the buffer and only encrypt when it's full (the encrypted portion of the packet starts with a length and so we can't encrypt until we know what the length will be). The three patches are: (1) Provide a means of finding out what control message types are actually supported. EINVAL is reported if an unsupported cmsg type is seen, so we don't want to set the new cmsg unless we know it will be accepted. (2) Consolidate some stuff into a struct to reduce the parameter count on the function that parses the cmsg buffer. (3) Introduce the RXRPC_TX_LENGTH cmsg. This can be provided on the first sendmsg() that contributes data to a client call request or a service call reply. If provided, the user must provide exactly that amount of data or an error will be incurred. Changes in version 2: (*) struct rxrpc_send_params::tx_total_len should be s64 not u64. Thanks to Julia Lawall for reporting this. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa')
0 files changed, 0 insertions, 0 deletions