diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/percpu.h | 29 | ||||
| -rw-r--r-- | include/linux/tcp.h | 3 | ||||
| -rw-r--r-- | include/net/tcp.h | 5 |
3 files changed, 20 insertions, 17 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index 32cd1f67462e..21638ae14e07 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h | |||
| @@ -348,9 +348,9 @@ do { \ | |||
| 348 | #define _this_cpu_generic_to_op(pcp, val, op) \ | 348 | #define _this_cpu_generic_to_op(pcp, val, op) \ |
| 349 | do { \ | 349 | do { \ |
| 350 | unsigned long flags; \ | 350 | unsigned long flags; \ |
| 351 | local_irq_save(flags); \ | 351 | raw_local_irq_save(flags); \ |
| 352 | *__this_cpu_ptr(&(pcp)) op val; \ | 352 | *__this_cpu_ptr(&(pcp)) op val; \ |
| 353 | local_irq_restore(flags); \ | 353 | raw_local_irq_restore(flags); \ |
| 354 | } while (0) | 354 | } while (0) |
| 355 | 355 | ||
| 356 | #ifndef this_cpu_write | 356 | #ifndef this_cpu_write |
| @@ -449,10 +449,10 @@ do { \ | |||
| 449 | ({ \ | 449 | ({ \ |
| 450 | typeof(pcp) ret__; \ | 450 | typeof(pcp) ret__; \ |
| 451 | unsigned long flags; \ | 451 | unsigned long flags; \ |
| 452 | local_irq_save(flags); \ | 452 | raw_local_irq_save(flags); \ |
| 453 | __this_cpu_add(pcp, val); \ | 453 | __this_cpu_add(pcp, val); \ |
| 454 | ret__ = __this_cpu_read(pcp); \ | 454 | ret__ = __this_cpu_read(pcp); \ |
| 455 | local_irq_restore(flags); \ | 455 | raw_local_irq_restore(flags); \ |
| 456 | ret__; \ | 456 | ret__; \ |
| 457 | }) | 457 | }) |
| 458 | 458 | ||
| @@ -479,10 +479,10 @@ do { \ | |||
| 479 | #define _this_cpu_generic_xchg(pcp, nval) \ | 479 | #define _this_cpu_generic_xchg(pcp, nval) \ |
| 480 | ({ typeof(pcp) ret__; \ | 480 | ({ typeof(pcp) ret__; \ |
| 481 | unsigned long flags; \ | 481 | unsigned long flags; \ |
| 482 | local_irq_save(flags); \ | 482 | raw_local_irq_save(flags); \ |
| 483 | ret__ = __this_cpu_read(pcp); \ | 483 | ret__ = __this_cpu_read(pcp); \ |
| 484 | __this_cpu_write(pcp, nval); \ | 484 | __this_cpu_write(pcp, nval); \ |
| 485 | local_irq_restore(flags); \ | 485 | raw_local_irq_restore(flags); \ |
| 486 | ret__; \ | 486 | ret__; \ |
| 487 | }) | 487 | }) |
| 488 | 488 | ||
| @@ -507,11 +507,11 @@ do { \ | |||
| 507 | ({ \ | 507 | ({ \ |
| 508 | typeof(pcp) ret__; \ | 508 | typeof(pcp) ret__; \ |
| 509 | unsigned long flags; \ | 509 | unsigned long flags; \ |
| 510 | local_irq_save(flags); \ | 510 | raw_local_irq_save(flags); \ |
| 511 | ret__ = __this_cpu_read(pcp); \ | 511 | ret__ = __this_cpu_read(pcp); \ |
| 512 | if (ret__ == (oval)) \ | 512 | if (ret__ == (oval)) \ |
| 513 | __this_cpu_write(pcp, nval); \ | 513 | __this_cpu_write(pcp, nval); \ |
| 514 | local_irq_restore(flags); \ | 514 | raw_local_irq_restore(flags); \ |
| 515 | ret__; \ | 515 | ret__; \ |
| 516 | }) | 516 | }) |
| 517 | 517 | ||
| @@ -544,10 +544,10 @@ do { \ | |||
| 544 | ({ \ | 544 | ({ \ |
| 545 | int ret__; \ | 545 | int ret__; \ |
| 546 | unsigned long flags; \ | 546 | unsigned long flags; \ |
| 547 | local_irq_save(flags); \ | 547 | raw_local_irq_save(flags); \ |
| 548 | ret__ = __this_cpu_generic_cmpxchg_double(pcp1, pcp2, \ | 548 | ret__ = __this_cpu_generic_cmpxchg_double(pcp1, pcp2, \ |
| 549 | oval1, oval2, nval1, nval2); \ | 549 | oval1, oval2, nval1, nval2); \ |
| 550 | local_irq_restore(flags); \ | 550 | raw_local_irq_restore(flags); \ |
| 551 | ret__; \ | 551 | ret__; \ |
| 552 | }) | 552 | }) |
| 553 | 553 | ||
| @@ -718,12 +718,13 @@ do { \ | |||
| 718 | # ifndef __this_cpu_add_return_8 | 718 | # ifndef __this_cpu_add_return_8 |
| 719 | # define __this_cpu_add_return_8(pcp, val) __this_cpu_generic_add_return(pcp, val) | 719 | # define __this_cpu_add_return_8(pcp, val) __this_cpu_generic_add_return(pcp, val) |
| 720 | # endif | 720 | # endif |
| 721 | # define __this_cpu_add_return(pcp, val) __pcpu_size_call_return2(this_cpu_add_return_, pcp, val) | 721 | # define __this_cpu_add_return(pcp, val) \ |
| 722 | __pcpu_size_call_return2(__this_cpu_add_return_, pcp, val) | ||
| 722 | #endif | 723 | #endif |
| 723 | 724 | ||
| 724 | #define __this_cpu_sub_return(pcp, val) this_cpu_add_return(pcp, -(val)) | 725 | #define __this_cpu_sub_return(pcp, val) __this_cpu_add_return(pcp, -(val)) |
| 725 | #define __this_cpu_inc_return(pcp) this_cpu_add_return(pcp, 1) | 726 | #define __this_cpu_inc_return(pcp) __this_cpu_add_return(pcp, 1) |
| 726 | #define __this_cpu_dec_return(pcp) this_cpu_add_return(pcp, -1) | 727 | #define __this_cpu_dec_return(pcp) __this_cpu_add_return(pcp, -1) |
| 727 | 728 | ||
| 728 | #define __this_cpu_generic_xchg(pcp, nval) \ | 729 | #define __this_cpu_generic_xchg(pcp, nval) \ |
| 729 | ({ typeof(pcp) ret__; \ | 730 | ({ typeof(pcp) ret__; \ |
diff --git a/include/linux/tcp.h b/include/linux/tcp.h index 46a85c9e1f25..3c7ffdb40dc6 100644 --- a/include/linux/tcp.h +++ b/include/linux/tcp.h | |||
| @@ -412,7 +412,8 @@ struct tcp_sock { | |||
| 412 | 412 | ||
| 413 | struct tcp_sack_block recv_sack_cache[4]; | 413 | struct tcp_sack_block recv_sack_cache[4]; |
| 414 | 414 | ||
| 415 | struct sk_buff *highest_sack; /* highest skb with SACK received | 415 | struct sk_buff *highest_sack; /* skb just after the highest |
| 416 | * skb with SACKed bit set | ||
| 416 | * (validity guaranteed only if | 417 | * (validity guaranteed only if |
| 417 | * sacked_out > 0) | 418 | * sacked_out > 0) |
| 418 | */ | 419 | */ |
diff --git a/include/net/tcp.h b/include/net/tcp.h index 42c29bfbcee3..2d80c291fffb 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
| @@ -1364,8 +1364,9 @@ static inline void tcp_push_pending_frames(struct sock *sk) | |||
| 1364 | } | 1364 | } |
| 1365 | } | 1365 | } |
| 1366 | 1366 | ||
| 1367 | /* Start sequence of the highest skb with SACKed bit, valid only if | 1367 | /* Start sequence of the skb just after the highest skb with SACKed |
| 1368 | * sacked > 0 or when the caller has ensured validity by itself. | 1368 | * bit, valid only if sacked_out > 0 or when the caller has ensured |
| 1369 | * validity by itself. | ||
| 1369 | */ | 1370 | */ |
| 1370 | static inline u32 tcp_highest_sack_seq(struct tcp_sock *tp) | 1371 | static inline u32 tcp_highest_sack_seq(struct tcp_sock *tp) |
| 1371 | { | 1372 | { |
