diff options
author | David Howells <dhowells@redhat.com> | 2017-10-18 11:36:39 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2017-10-18 11:37:20 +0100 |
commit | a68f4a27f55f1d54e35c270aff89383da4b1b656 (patch) | |
tree | 72d70f77bee499627425bfaf8df64693320dbc67 /include/net/af_rxrpc.h | |
parent | 8a5f2166a6288ee4b5a393f1ebc8cfb26b0510f0 (diff) | |
download | linux-stable-a68f4a27f55f1d54e35c270aff89383da4b1b656.tar.gz linux-stable-a68f4a27f55f1d54e35c270aff89383da4b1b656.tar.bz2 linux-stable-a68f4a27f55f1d54e35c270aff89383da4b1b656.zip |
rxrpc: Support service upgrade from a kernel service
Provide support for a kernel service to make use of the service upgrade
facility. This involves:
(1) Pass an upgrade request flag to rxrpc_kernel_begin_call().
(2) Make rxrpc_kernel_recv_data() return the call's current service ID so
that the caller can detect service upgrade and see what the service
was upgraded to.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'include/net/af_rxrpc.h')
-rw-r--r-- | include/net/af_rxrpc.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/net/af_rxrpc.h b/include/net/af_rxrpc.h index 3ac79150291f..820dd365a08e 100644 --- a/include/net/af_rxrpc.h +++ b/include/net/af_rxrpc.h @@ -49,12 +49,13 @@ struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *, unsigned long, s64, gfp_t, - rxrpc_notify_rx_t); + rxrpc_notify_rx_t, + bool); int rxrpc_kernel_send_data(struct socket *, struct rxrpc_call *, struct msghdr *, size_t, rxrpc_notify_end_tx_t); int rxrpc_kernel_recv_data(struct socket *, struct rxrpc_call *, - void *, size_t, size_t *, bool, u32 *); + void *, size_t, size_t *, bool, u32 *, u16 *); bool rxrpc_kernel_abort_call(struct socket *, struct rxrpc_call *, u32, int, const char *); void rxrpc_kernel_end_call(struct socket *, struct rxrpc_call *); |