summaryrefslogtreecommitdiffstats
path: root/net/rxrpc/call_event.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-09-22 00:29:32 +0100
committerDavid Howells <dhowells@redhat.com>2016-09-22 08:49:22 +0100
commitfc943f67773487bb85131273f39b5f183caafe95 (patch)
tree57f7622b67a8a4d64d9e82eb17229b3b122babcb /net/rxrpc/call_event.c
parent0d4b103c008ac9f6f438d2618c155f6e868e5a67 (diff)
downloadop-kernel-dev-fc943f67773487bb85131273f39b5f183caafe95.zip
op-kernel-dev-fc943f67773487bb85131273f39b5f183caafe95.tar.gz
rxrpc: Reduce the number of PING ACKs sent
We don't want to send a PING ACK for every new incoming call as that just adds to the network traffic. Instead, we send a PING ACK to the first three that we receive and then once per second thereafter. This could probably be made adjustable in future. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/call_event.c')
-rw-r--r--net/rxrpc/call_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/call_event.c b/net/rxrpc/call_event.c
index adb2ec6..6e2ea8f 100644
--- a/net/rxrpc/call_event.c
+++ b/net/rxrpc/call_event.c
@@ -142,7 +142,7 @@ static void rxrpc_resend(struct rxrpc_call *call)
struct rxrpc_skb_priv *sp;
struct sk_buff *skb;
rxrpc_seq_t cursor, seq, top;
- ktime_t now = ktime_get_real(), max_age, oldest, resend_at;
+ ktime_t now = ktime_get_real(), max_age, oldest, resend_at;
int ix;
u8 annotation, anno_type;
OpenPOWER on IntegriCloud