* [PATCH 1/2] rxrpc: terminate retrans loop when sending of skb fails
@ 2015-02-28 10:51 Florian Westphal
2015-02-28 10:51 ` [PATCH 2/2] rxrpc: don't multiply with HZ twice Florian Westphal
2015-03-01 19:01 ` [PATCH 1/2] rxrpc: terminate retrans loop when sending of skb fails David Miller
0 siblings, 2 replies; 4+ messages in thread
From: Florian Westphal @ 2015-02-28 10:51 UTC (permalink / raw)
To: netdev; +Cc: dhowells, linux-afs, Florian Westphal
Typo, 'stop' is never set to true.
Seems intent is to not attempt to retransmit more packets after sendmsg
returns an error.
This change is based on code inspection only.
Signed-off-by: Florian Westphal <fw@strlen.de>
---
net/rxrpc/ar-ack.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/net/rxrpc/ar-ack.c b/net/rxrpc/ar-ack.c
index c6be17a..4040418 100644
--- a/net/rxrpc/ar-ack.c
+++ b/net/rxrpc/ar-ack.c
@@ -218,7 +218,8 @@ static void rxrpc_resend(struct rxrpc_call *call)
struct rxrpc_header *hdr;
struct sk_buff *txb;
unsigned long *p_txb, resend_at;
- int loop, stop;
+ bool stop;
+ int loop;
u8 resend;
_enter("{%d,%d,%d,%d},",
@@ -226,7 +227,7 @@ static void rxrpc_resend(struct rxrpc_call *call)
atomic_read(&call->sequence),
CIRC_CNT(call->acks_head, call->acks_tail, call->acks_winsz));
- stop = 0;
+ stop = false;
resend = 0;
resend_at = 0;
@@ -255,7 +256,7 @@ static void rxrpc_resend(struct rxrpc_call *call)
_proto("Tx DATA %%%u { #%d }",
ntohl(sp->hdr.serial), ntohl(sp->hdr.seq));
if (rxrpc_send_packet(call->conn->trans, txb) < 0) {
- stop = 0;
+ stop = true;
sp->resend_at = jiffies + 3;
} else {
sp->resend_at =
--
2.0.5
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH 2/2] rxrpc: don't multiply with HZ twice
2015-02-28 10:51 [PATCH 1/2] rxrpc: terminate retrans loop when sending of skb fails Florian Westphal
@ 2015-02-28 10:51 ` Florian Westphal
2015-03-01 19:01 ` David Miller
2015-03-01 19:01 ` [PATCH 1/2] rxrpc: terminate retrans loop when sending of skb fails David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Florian Westphal @ 2015-02-28 10:51 UTC (permalink / raw)
To: netdev; +Cc: dhowells, linux-afs, Florian Westphal
rxrpc_resend_timeout has an initial value of 4 * HZ; use it as-is.
Signed-off-by: Florian Westphal <fw@strlen.de>
---
net/rxrpc/ar-ack.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/rxrpc/ar-ack.c b/net/rxrpc/ar-ack.c
index 4040418..e0547f5 100644
--- a/net/rxrpc/ar-ack.c
+++ b/net/rxrpc/ar-ack.c
@@ -260,7 +260,7 @@ static void rxrpc_resend(struct rxrpc_call *call)
sp->resend_at = jiffies + 3;
} else {
sp->resend_at =
- jiffies + rxrpc_resend_timeout * HZ;
+ jiffies + rxrpc_resend_timeout;
}
}
--
2.0.5
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 1/2] rxrpc: terminate retrans loop when sending of skb fails
2015-02-28 10:51 [PATCH 1/2] rxrpc: terminate retrans loop when sending of skb fails Florian Westphal
2015-02-28 10:51 ` [PATCH 2/2] rxrpc: don't multiply with HZ twice Florian Westphal
@ 2015-03-01 19:01 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2015-03-01 19:01 UTC (permalink / raw)
To: fw; +Cc: netdev, dhowells, linux-afs
From: Florian Westphal <fw@strlen.de>
Date: Sat, 28 Feb 2015 11:51:36 +0100
> Typo, 'stop' is never set to true.
> Seems intent is to not attempt to retransmit more packets after sendmsg
> returns an error.
>
> This change is based on code inspection only.
>
> Signed-off-by: Florian Westphal <fw@strlen.de>
Applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-03-01 19:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-28 10:51 [PATCH 1/2] rxrpc: terminate retrans loop when sending of skb fails Florian Westphal
2015-02-28 10:51 ` [PATCH 2/2] rxrpc: don't multiply with HZ twice Florian Westphal
2015-03-01 19:01 ` David Miller
2015-03-01 19:01 ` [PATCH 1/2] rxrpc: terminate retrans loop when sending of skb fails David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).