output.c (f2a676d10038e8f3913dc576397b9c9efb190afd) | output.c (f7fa52421f76309c574f2575701660bc3ea3a705) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* RxRPC packet transmission 3 * 4 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. 5 * Written by David Howells (dhowells@redhat.com) 6 */ 7 8#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt --- 416 unchanged lines hidden (view full) --- 425 why = rxrpc_reqack_small_txwin; 426 else if (call->peer->rtt_count < 3 && sp->hdr.seq & 1) 427 why = rxrpc_reqack_more_rtt; 428 else if (ktime_before(ktime_add_ms(call->peer->rtt_last_req, 1000), ktime_get_real())) 429 why = rxrpc_reqack_old_rtt; 430 else 431 goto dont_set_request_ack; 432 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* RxRPC packet transmission 3 * 4 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. 5 * Written by David Howells (dhowells@redhat.com) 6 */ 7 8#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt --- 416 unchanged lines hidden (view full) --- 425 why = rxrpc_reqack_small_txwin; 426 else if (call->peer->rtt_count < 3 && sp->hdr.seq & 1) 427 why = rxrpc_reqack_more_rtt; 428 else if (ktime_before(ktime_add_ms(call->peer->rtt_last_req, 1000), ktime_get_real())) 429 why = rxrpc_reqack_old_rtt; 430 else 431 goto dont_set_request_ack; 432 |
433 rxrpc_inc_stat(call->rxnet, stat_why_req_ack[why]); |
|
433 trace_rxrpc_req_ack(call->debug_id, sp->hdr.seq, why); 434 if (why != rxrpc_reqack_no_srv_last) 435 whdr.flags |= RXRPC_REQUEST_ACK; 436dont_set_request_ack: 437 438 if (IS_ENABLED(CONFIG_AF_RXRPC_INJECT_LOSS)) { 439 static int lose; 440 if ((lose++ & 7) == 7) { --- 260 unchanged lines hidden --- | 434 trace_rxrpc_req_ack(call->debug_id, sp->hdr.seq, why); 435 if (why != rxrpc_reqack_no_srv_last) 436 whdr.flags |= RXRPC_REQUEST_ACK; 437dont_set_request_ack: 438 439 if (IS_ENABLED(CONFIG_AF_RXRPC_INJECT_LOSS)) { 440 static int lose; 441 if ((lose++ & 7) == 7) { --- 260 unchanged lines hidden --- |