diff options
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 438014d57610..218235de8963 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -46,7 +46,7 @@ | |||
46 | 46 | ||
47 | extern struct inet_hashinfo tcp_hashinfo; | 47 | extern struct inet_hashinfo tcp_hashinfo; |
48 | 48 | ||
49 | extern atomic_t tcp_orphan_count; | 49 | extern struct percpu_counter tcp_orphan_count; |
50 | extern void tcp_time_wait(struct sock *sk, int state, int timeo); | 50 | extern void tcp_time_wait(struct sock *sk, int state, int timeo); |
51 | 51 | ||
52 | #define MAX_TCP_HEADER (128 + MAX_HEADER) | 52 | #define MAX_TCP_HEADER (128 + MAX_HEADER) |
@@ -238,7 +238,7 @@ extern int sysctl_tcp_slow_start_after_idle; | |||
238 | extern int sysctl_tcp_max_ssthresh; | 238 | extern int sysctl_tcp_max_ssthresh; |
239 | 239 | ||
240 | extern atomic_t tcp_memory_allocated; | 240 | extern atomic_t tcp_memory_allocated; |
241 | extern atomic_t tcp_sockets_allocated; | 241 | extern struct percpu_counter tcp_sockets_allocated; |
242 | extern int tcp_memory_pressure; | 242 | extern int tcp_memory_pressure; |
243 | 243 | ||
244 | /* | 244 | /* |
@@ -472,8 +472,6 @@ extern void tcp_send_delayed_ack(struct sock *sk); | |||
472 | 472 | ||
473 | /* tcp_input.c */ | 473 | /* tcp_input.c */ |
474 | extern void tcp_cwnd_application_limited(struct sock *sk); | 474 | extern void tcp_cwnd_application_limited(struct sock *sk); |
475 | extern void tcp_skb_mark_lost_uncond_verify(struct tcp_sock *tp, | ||
476 | struct sk_buff *skb); | ||
477 | 475 | ||
478 | /* tcp_timer.c */ | 476 | /* tcp_timer.c */ |
479 | extern void tcp_init_xmit_timers(struct sock *); | 477 | extern void tcp_init_xmit_timers(struct sock *); |
@@ -590,7 +588,6 @@ struct tcp_skb_cb { | |||
590 | #define TCPCB_EVER_RETRANS 0x80 /* Ever retransmitted frame */ | 588 | #define TCPCB_EVER_RETRANS 0x80 /* Ever retransmitted frame */ |
591 | #define TCPCB_RETRANS (TCPCB_SACKED_RETRANS|TCPCB_EVER_RETRANS) | 589 | #define TCPCB_RETRANS (TCPCB_SACKED_RETRANS|TCPCB_EVER_RETRANS) |
592 | 590 | ||
593 | __u16 urg_ptr; /* Valid w/URG flags is set. */ | ||
594 | __u32 ack_seq; /* Sequence number ACK'd */ | 591 | __u32 ack_seq; /* Sequence number ACK'd */ |
595 | }; | 592 | }; |
596 | 593 | ||
@@ -764,8 +761,6 @@ static inline unsigned int tcp_packets_in_flight(const struct tcp_sock *tp) | |||
764 | return tp->packets_out - tcp_left_out(tp) + tp->retrans_out; | 761 | return tp->packets_out - tcp_left_out(tp) + tp->retrans_out; |
765 | } | 762 | } |
766 | 763 | ||
767 | extern int tcp_limit_reno_sacked(struct tcp_sock *tp); | ||
768 | |||
769 | /* If cwnd > ssthresh, we may raise ssthresh to be half-way to cwnd. | 764 | /* If cwnd > ssthresh, we may raise ssthresh to be half-way to cwnd. |
770 | * The exception is rate halving phase, when cwnd is decreasing towards | 765 | * The exception is rate halving phase, when cwnd is decreasing towards |
771 | * ssthresh. | 766 | * ssthresh. |
@@ -1195,6 +1190,11 @@ static inline struct sk_buff *tcp_write_queue_next(struct sock *sk, struct sk_bu | |||
1195 | return skb_queue_next(&sk->sk_write_queue, skb); | 1190 | return skb_queue_next(&sk->sk_write_queue, skb); |
1196 | } | 1191 | } |
1197 | 1192 | ||
1193 | static inline struct sk_buff *tcp_write_queue_prev(struct sock *sk, struct sk_buff *skb) | ||
1194 | { | ||
1195 | return skb_queue_prev(&sk->sk_write_queue, skb); | ||
1196 | } | ||
1197 | |||
1198 | #define tcp_for_write_queue(skb, sk) \ | 1198 | #define tcp_for_write_queue(skb, sk) \ |
1199 | skb_queue_walk(&(sk)->sk_write_queue, skb) | 1199 | skb_queue_walk(&(sk)->sk_write_queue, skb) |
1200 | 1200 | ||
@@ -1358,6 +1358,12 @@ extern void tcp_v4_destroy_sock(struct sock *sk); | |||
1358 | 1358 | ||
1359 | extern int tcp_v4_gso_send_check(struct sk_buff *skb); | 1359 | extern int tcp_v4_gso_send_check(struct sk_buff *skb); |
1360 | extern struct sk_buff *tcp_tso_segment(struct sk_buff *skb, int features); | 1360 | extern struct sk_buff *tcp_tso_segment(struct sk_buff *skb, int features); |
1361 | extern struct sk_buff **tcp_gro_receive(struct sk_buff **head, | ||
1362 | struct sk_buff *skb); | ||
1363 | extern struct sk_buff **tcp4_gro_receive(struct sk_buff **head, | ||
1364 | struct sk_buff *skb); | ||
1365 | extern int tcp_gro_complete(struct sk_buff *skb); | ||
1366 | extern int tcp4_gro_complete(struct sk_buff *skb); | ||
1361 | 1367 | ||
1362 | #ifdef CONFIG_PROC_FS | 1368 | #ifdef CONFIG_PROC_FS |
1363 | extern int tcp4_proc_init(void); | 1369 | extern int tcp4_proc_init(void); |