summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-09-06 20:46:26 (GMT)
committerDavid S. Miller <davem@davemloft.net>2016-09-06 20:46:26 (GMT)
commit0122c6d5faa3c2bb2523119aa1e20ac5a2f10dd7 (patch)
tree7d7c4254ff7f02a9aa3a6cdc1ba9181c53113529 /include
parent5e1e61a33f987eb5d87c5acb199da99b6a9da93d (diff)
parent434e6120036d1dd1004cadf5a99941cdd9c1a59f (diff)
downloadlinux-0122c6d5faa3c2bb2523119aa1e20ac5a2f10dd7.tar.xz
Merge tag 'rxrpc-rewrite-20160904-1' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs
David Howells says: ==================== rxrpc: Small fixes Here's a set of small fix patches: (1) Fix some uninitialised variables. (2) Set the client call state before making it live by attaching it to the conn struct. (3) Randomise the epoch and starting client conn ID values, and don't change the epoch when the client conn ID rolls round. (4) Replace deprecated create_singlethread_workqueue() calls. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/rxrpc/packet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rxrpc/packet.h b/include/rxrpc/packet.h
index b201744..3c6128e 100644
--- a/include/rxrpc/packet.h
+++ b/include/rxrpc/packet.h
@@ -24,6 +24,7 @@ typedef __be32 rxrpc_serial_net_t; /* on-the-wire Rx message serial number */
*/
struct rxrpc_wire_header {
__be32 epoch; /* client boot timestamp */
+#define RXRPC_RANDOM_EPOCH 0x80000000 /* Random if set, date-based if not */
__be32 cid; /* connection and channel ID */
#define RXRPC_MAXCALLS 4 /* max active calls per conn */