aboutsummaryrefslogtreecommitdiffstats
path: root/net/rxrpc/ar-ack.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-01-06 20:22:09 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-06 20:22:09 -0500
commit9753dfe19a85e7e45a34a56f4cb2048bb4f50e27 (patch)
treec017a1b4a70b8447c71b01d8b320e071546b5c9d /net/rxrpc/ar-ack.c
parentedf7c8148ec40c0fd27c0ef3f688defcc65e3913 (diff)
parent9f42f126154786e6e76df513004800c8c633f020 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1958 commits) net: pack skb_shared_info more efficiently net_sched: red: split red_parms into parms and vars net_sched: sfq: extend limits cnic: Improve error recovery on bnx2x devices cnic: Re-init dev->stats_addr after chip reset net_sched: Bug in netem reordering bna: fix sparse warnings/errors bna: make ethtool_ops and strings const xgmac: cleanups net: make ethtool_ops const vmxnet3" make ethtool ops const xen-netback: make ops structs const virtio_net: Pass gfp flags when allocating rx buffers. ixgbe: FCoE: Add support for ndo_get_fcoe_hbainfo() call netdev: FCoE: Add new ndo_get_fcoe_hbainfo() call igb: reset PHY after recovering from PHY power down igb: add basic runtime PM support igb: Add support for byte queue limits. e1000: cleanup CE4100 MDIO registers access e1000: unmap ce4100_gbe_mdio_base_virt in e1000_remove ...
Diffstat (limited to 'net/rxrpc/ar-ack.c')
-rw-r--r--net/rxrpc/ar-ack.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/rxrpc/ar-ack.c b/net/rxrpc/ar-ack.c
index f99cfce7ca97..c3126e864f3c 100644
--- a/net/rxrpc/ar-ack.c
+++ b/net/rxrpc/ar-ack.c
@@ -195,7 +195,7 @@ static void rxrpc_resend(struct rxrpc_call *call)
195 sp = rxrpc_skb(txb); 195 sp = rxrpc_skb(txb);
196 196
197 if (sp->need_resend) { 197 if (sp->need_resend) {
198 sp->need_resend = 0; 198 sp->need_resend = false;
199 199
200 /* each Tx packet has a new serial number */ 200 /* each Tx packet has a new serial number */
201 sp->hdr.serial = 201 sp->hdr.serial =
@@ -216,7 +216,7 @@ static void rxrpc_resend(struct rxrpc_call *call)
216 } 216 }
217 217
218 if (time_after_eq(jiffies + 1, sp->resend_at)) { 218 if (time_after_eq(jiffies + 1, sp->resend_at)) {
219 sp->need_resend = 1; 219 sp->need_resend = true;
220 resend |= 1; 220 resend |= 1;
221 } else if (resend & 2) { 221 } else if (resend & 2) {
222 if (time_before(sp->resend_at, resend_at)) 222 if (time_before(sp->resend_at, resend_at))
@@ -265,7 +265,7 @@ static void rxrpc_resend_timer(struct rxrpc_call *call)
265 if (sp->need_resend) { 265 if (sp->need_resend) {
266 ; 266 ;
267 } else if (time_after_eq(jiffies + 1, sp->resend_at)) { 267 } else if (time_after_eq(jiffies + 1, sp->resend_at)) {
268 sp->need_resend = 1; 268 sp->need_resend = true;
269 resend |= 1; 269 resend |= 1;
270 } else if (resend & 2) { 270 } else if (resend & 2) {
271 if (time_before(sp->resend_at, resend_at)) 271 if (time_before(sp->resend_at, resend_at))
@@ -314,11 +314,11 @@ static int rxrpc_process_soft_ACKs(struct rxrpc_call *call,
314 314
315 switch (sacks[loop]) { 315 switch (sacks[loop]) {
316 case RXRPC_ACK_TYPE_ACK: 316 case RXRPC_ACK_TYPE_ACK:
317 sp->need_resend = 0; 317 sp->need_resend = false;
318 *p_txb |= 1; 318 *p_txb |= 1;
319 break; 319 break;
320 case RXRPC_ACK_TYPE_NACK: 320 case RXRPC_ACK_TYPE_NACK:
321 sp->need_resend = 1; 321 sp->need_resend = true;
322 *p_txb &= ~1; 322 *p_txb &= ~1;
323 resend = 1; 323 resend = 1;
324 break; 324 break;
@@ -344,13 +344,13 @@ static int rxrpc_process_soft_ACKs(struct rxrpc_call *call,
344 344
345 if (*p_txb & 1) { 345 if (*p_txb & 1) {
346 /* packet must have been discarded */ 346 /* packet must have been discarded */
347 sp->need_resend = 1; 347 sp->need_resend = true;
348 *p_txb &= ~1; 348 *p_txb &= ~1;
349 resend |= 1; 349 resend |= 1;
350 } else if (sp->need_resend) { 350 } else if (sp->need_resend) {
351 ; 351 ;
352 } else if (time_after_eq(jiffies + 1, sp->resend_at)) { 352 } else if (time_after_eq(jiffies + 1, sp->resend_at)) {
353 sp->need_resend = 1; 353 sp->need_resend = true;
354 resend |= 1; 354 resend |= 1;
355 } else if (resend & 2) { 355 } else if (resend & 2) {
356 if (time_before(sp->resend_at, resend_at)) 356 if (time_before(sp->resend_at, resend_at))